File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,16 @@ async function getMarkdownContent(versions) {
102
102
// The file path will be content/rest/<category>/<subcategory>.md
103
103
for ( const subcategory of subcategories ) {
104
104
const filepath = path . join ( 'content/rest' , category , `${ subcategory } .md` )
105
+ // If the file already exists on disk, only the `versions` frontmatter
106
+ // property is updated. So the TODOCS placeholder values are only used
107
+ // when the file is newly created, which is the intention. When the TODOCS
108
+ // placeholder is added, it will fail the content linter CI test alerting
109
+ // the docs content reviewer to update the file before merging.
105
110
markdownUpdates [ filepath ] = {
106
111
data : {
107
- title : subcategory ,
108
- shortTitle : subcategory ,
109
- intro : '' ,
112
+ title : 'TODOCS' ,
113
+ shortTitle : 'TODOCS' ,
114
+ intro : 'TODOCS ' ,
110
115
versions : await convertVersionsToFrontmatter ( versions [ category ] [ subcategory ] . versions ) ,
111
116
...frontmatterDefaults ,
112
117
} ,
You can’t perform that action at this time.
0 commit comments