@@ -10,11 +10,25 @@ const getDocumentType = require('../../lib/get-document-type')
1010const linkString = / { % [ ^ } ] * ?l i n k .* ? ( \/ .* ?) ? % } / m
1111const linksArray = new RegExp ( linkString . source , 'gm' )
1212
13+ << < << << HEAD
1314// the product order is determined by data/products.yml
15+ === = ===
16+ // The product order is determined by data/products.yml
17+ >>> > >>> 088 aaf648c7a1addec3d05bb8598c3be8297a5b6
1418const productsFile = path . join ( process . cwd ( ) , 'data/products.yml' )
1519const productsYml = yaml . load ( fs . readFileSync ( productsFile , 'utf8' ) )
1620const sortedProductIds = productsYml . productsInOrder . concat ( '/early-access' )
1721
22+ << < << << HEAD
23+ === = ===
24+ // This script turns `{% link /<link> %} style content into children: [ -/<link> ] frontmatter arrays.
25+ //
26+ // It MUST be run after script/content-migrations/remove-map-topics.js.
27+ //
28+ // NOTE: The results won't work with the TOC handling currently in production, so the results must NOT
29+ // be committed until the updated handling is in place.
30+
31+ >>> > >>> 088 aaf648c7a1addec3d05bb8598c3be8297a5b6
1832walk ( path . join ( process . cwd ( ) , 'content' ) , { includeBasePath : true , directories : false } )
1933 . filter ( file => file . endsWith ( 'index.md' ) )
2034 . forEach ( file => {
@@ -45,7 +59,13 @@ walk(path.join(process.cwd(), 'content'), { includeBasePath: true, directories:
4559 newContent = newContent . replace ( linkItem , '' ) . trim ( )
4660 } )
4761
62+ << < << << HEAD
4863 newContent = newContent . replace ( / # # # ? T a b l e o f C o n t e n t s \n / i, '' )
64+ === = ===
65+ newContent = newContent
66+ . replace ( / # # # ? T a b l e o f C o n t e n t s \n / i, '' )
67+ . replace ( / < ! - - { 2 } - - > \n / g, '' )
68+ >>> > >>> 088 aaf648c7a1addec3d05bb8598c3be8297a5b6
4969
5070 // Fix this one weird file
5171 if ( relativePath === 'discussions/guides/index.md' ) {
0 commit comments