@@ -24,6 +24,9 @@ SOFTWARE.
24
24
25
25
*/
26
26
27
+
28
+ const link = ( text , link_ , ext = false ) => `<a href="${ link_ } "${ ext ? ' id="ext"' : '' } >${ text } </a>` ;
29
+ const span = ( text ) => `<span>${ text } </span>` ;
27
30
const template = {
28
31
"charset" : "utf-8" ,
29
32
"title" : "Documentation" ,
@@ -231,9 +234,6 @@ function hbuoclpMDtoHTML(text, maxBlockquoteLevel = 4) {
231
234
return resultTextArray . join ( '' ) ;
232
235
}
233
236
234
- const link = ( text , link_ , ext = false ) => `<a href="${ link_ } "${ ext ? ' id="ext"' : '' } >${ text } </a>` ;
235
- const span = ( text ) => `<span>${ text } </span>` ;
236
-
237
237
function findMarkdownFiles ( dir ) {
238
238
let results = [ ] ;
239
239
const list = fs . readdirSync ( dir ) ;
@@ -265,6 +265,7 @@ const yandexVerification = docsConfig ? docsConfig.yandex || undefined : undefin
265
265
const googleAnalytics = docsConfig ? docsConfig . googleAnalytics || undefined : undefined ;
266
266
const googleVerification = docsConfig ? docsConfig . google || undefined : undefined ;
267
267
const logoPath = docsConfig ? docsConfig . logo || undefined : undefined ;
268
+ const footer = docsConfig ? docsConfig . footer || template . footer : template . footer ;
268
269
269
270
const insertHTMLinHead = docsConfig ? docsConfig . insertInHTMLHead || '' : '' ;
270
271
@@ -363,6 +364,7 @@ markdownFiles.forEach(file => {
363
364
. replace ( 'REPLACE_NAME' , filterText ( name ) )
364
365
. replace ( 'REPLACE_PAGES' , filterText ( pages ) )
365
366
. replace ( 'REPLACE_CONTENTS' , filterText ( pageHeaders ) ) ;
367
+ . replace ( 'REPLACE_FOOTER' , filterText ( footer ) )
366
368
367
369
fs . writeFileSync ( outFilePath ( 'html' ) , outHTML . replace ( 'REPLACE_CONTENT' , toHTML ) , charset ) ;
368
370
fs . writeFileSync ( outFilePath ( 'css' ) , CSS , template . charset ) ;
0 commit comments