Skip to content

Commit 5669cc9

Browse files
committed
resolve conflict
1 parent e92a535 commit 5669cc9

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

script/content-migrations/update-tocs.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,18 @@ const getDocumentType = require('../../lib/get-document-type')
1010
const linkString = /{% [^}]*?link.*? (\/.*?) ?%}/m
1111
const linksArray = new RegExp(linkString.source, 'gm')
1212

13-
<<<<<<< HEAD
14-
// the product order is determined by data/products.yml
15-
=======
1613
// The product order is determined by data/products.yml
17-
>>>>>>> 088aaf648c7a1addec3d05bb8598c3be8297a5b6
1814
const productsFile = path.join(process.cwd(), 'data/products.yml')
1915
const productsYml = yaml.load(fs.readFileSync(productsFile, 'utf8'))
2016
const sortedProductIds = productsYml.productsInOrder.concat('/early-access')
2117

22-
<<<<<<< HEAD
23-
=======
2418
// This script turns `{% link /<link> %} style content into children: [ -/<link> ] frontmatter arrays.
2519
//
2620
// It MUST be run after script/content-migrations/remove-map-topics.js.
2721
//
2822
// NOTE: The results won't work with the TOC handling currently in production, so the results must NOT
2923
// be committed until the updated handling is in place.
3024

31-
>>>>>>> 088aaf648c7a1addec3d05bb8598c3be8297a5b6
3225
walk(path.join(process.cwd(), 'content'), { includeBasePath: true, directories: false })
3326
.filter(file => file.endsWith('index.md'))
3427
.forEach(file => {
@@ -59,13 +52,9 @@ walk(path.join(process.cwd(), 'content'), { includeBasePath: true, directories:
5952
newContent = newContent.replace(linkItem, '').trim()
6053
})
6154

62-
<<<<<<< HEAD
63-
newContent = newContent.replace(/###? Table of Contents\n/i, '')
64-
=======
6555
newContent = newContent
6656
.replace(/###? Table of Contents\n/i, '')
6757
.replace(/<!-- {2}-->\n/g, '')
68-
>>>>>>> 088aaf648c7a1addec3d05bb8598c3be8297a5b6
6958

7059
// Fix this one weird file
7160
if (relativePath === 'discussions/guides/index.md') {

0 commit comments

Comments
 (0)