@@ -10,25 +10,18 @@ const getDocumentType = require('../../lib/get-document-type')
1010const linkString = / { % [ ^ } ] * ?l i n k .* ? ( \/ .* ?) ? % } / m
1111const 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- >>> > >>> 088 aaf648c7a1addec3d05bb8598c3be8297a5b6
1814const productsFile = path . join ( process . cwd ( ) , 'data/products.yml' )
1915const productsYml = yaml . load ( fs . readFileSync ( productsFile , 'utf8' ) )
2016const 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- >>> > >>> 088 aaf648c7a1addec3d05bb8598c3be8297a5b6
3225walk ( 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 ( / # # # ? T a b l e o f C o n t e n t s \n / i, '' )
64- === = ===
6555 newContent = newContent
6656 . replace ( / # # # ? T a b l e o f C o n t e n t s \n / i, '' )
6757 . replace ( / < ! - - { 2 } - - > \n / g, '' )
68- >>> > >>> 088 aaf648c7a1addec3d05bb8598c3be8297a5b6
6958
7059 // Fix this one weird file
7160 if ( relativePath === 'discussions/guides/index.md' ) {
0 commit comments