File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ let tocText = '';
133
133
* @param {string } homeRaw
134
134
*/
135
135
function generateTempHomeMdFile ( tocRaw , homeRaw ) {
136
- const { toc } = yaml . safeLoad ( tocRaw ) ;
136
+ const { toc } = yaml . load ( tocRaw ) ;
137
137
let tocPageLines = [ homeRaw , '# API Reference' ] ;
138
138
toc . forEach ( group => {
139
139
tocPageLines . push ( `\n## [${ group . title } ](${ stripPath ( group . path ) } .html)` ) ;
@@ -259,7 +259,7 @@ function writeGeneratedFileList(htmlFiles) {
259
259
path : `${ devsitePath } ${ filename } `
260
260
} ;
261
261
} ) ;
262
- const generatedTocYAML = yaml . safeDump ( { toc : fileList } ) ;
262
+ const generatedTocYAML = yaml . dump ( { toc : fileList } ) ;
263
263
return fs
264
264
. writeFile ( `${ docPath } /_toc_autogenerated.yaml` , generatedTocYAML )
265
265
. then ( ( ) => htmlFiles ) ;
You can’t perform that action at this time.
0 commit comments