Skip to content

Commit 0250a22

Browse files
Update index.js
1 parent e3c531c commit 0250a22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/documentation/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ SOFTWARE.
2424
2525
*/
2626

27+
28+
const link = (text, link_, ext = false) => `<a href="${link_}"${ext ? ' id="ext"' : ''}>${text}</a>`;
29+
const span = (text) => `<span>${text}</span>`;
2730
const template = {
2831
"charset": "utf-8",
2932
"title": "Documentation",
@@ -231,9 +234,6 @@ function hbuoclpMDtoHTML(text, maxBlockquoteLevel = 4) {
231234
return resultTextArray.join('');
232235
}
233236

234-
const link = (text, link_, ext = false) => `<a href="${link_}"${ext ? ' id="ext"' : ''}>${text}</a>`;
235-
const span = (text) => `<span>${text}</span>`;
236-
237237
function findMarkdownFiles(dir) {
238238
let results = [];
239239
const list = fs.readdirSync(dir);
@@ -265,6 +265,7 @@ const yandexVerification = docsConfig ? docsConfig.yandex || undefined : undefin
265265
const googleAnalytics = docsConfig ? docsConfig.googleAnalytics || undefined : undefined;
266266
const googleVerification = docsConfig ? docsConfig.google || undefined : undefined;
267267
const logoPath = docsConfig ? docsConfig.logo || undefined : undefined;
268+
const footer = docsConfig ? docsConfig.footer || template.footer : template.footer;
268269

269270
const insertHTMLinHead = docsConfig ? docsConfig.insertInHTMLHead || '' : '';
270271

@@ -363,6 +364,7 @@ markdownFiles.forEach(file => {
363364
.replace('REPLACE_NAME', filterText(name))
364365
.replace('REPLACE_PAGES', filterText(pages))
365366
.replace('REPLACE_CONTENTS', filterText(pageHeaders));
367+
.replace('REPLACE_FOOTER', filterText(footer))
366368

367369
fs.writeFileSync(outFilePath('html'), outHTML.replace('REPLACE_CONTENT', toHTML), charset);
368370
fs.writeFileSync(outFilePath('css'), CSS, template.charset);

0 commit comments

Comments
 (0)