File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const archiver = require("archiver");
88const fg = require ( 'fast-glob' ) ;
99
1010const sanitize = require ( "./sanitze" ) ;
11+ const { title } = require ( "process" ) ;
1112
1213const cwd = process . cwd ( ) ;
1314
@@ -53,7 +54,8 @@ function getSteps(tutorialDir) {
5354 console . log ( `👉 Copying root README.md...` ) ;
5455 function rewriteLinks ( file ) {
5556 let permalink = file . split ( "dist/" ) [ 1 ] . replace ( ".md" , ".html" ) ;
56- let content = `---\npermalink: ${ permalink } \n---\n\n${ readFileSync ( file , { encoding : "utf8" } ) } ` ;
57+ const title = "UI5 Tutorials" ;
58+ let content = `---\ntitle:${ title } \npermalink: ${ permalink } \n---\n\n${ readFileSync ( file , { encoding : "utf8" } ) } ` ;
5759 content = content . replace ( / R E A D M E \. m d / g, "index.html" ) ;
5860 content = content . replace ( / \. \/ p a c k a g e s \/ / g, "./" ) ;
5961 content = content . replace ( / \[ L I C E N S E \] \( [ \. \/ \w ] * \) / g, "[LICENSE](https://github.com/UI5/tutorials/blob/-/LICENSE)" ) ;
You can’t perform that action at this time.
0 commit comments