diff --git a/Tools/build-website.js b/Tools/build-website.js index 8aba41c672..4c2e53b7d8 100644 --- a/Tools/build-website.js +++ b/Tools/build-website.js @@ -9,11 +9,11 @@ const headerHtml = ` !!! WARNING !!! -This file was auto-generated from {{sourceMarkdownFile}} and any manual change +This file was auto-generated from {{{sourceMarkdownFile}}} and any manual change made to it will be overwritten. To make a change to this file please modify -the source Markdown file: {{sourceMarkdownFile}} +the source Markdown file: -!!! WARNING !!! +https://github.com/laurent22/joplin/blob/master/{{{sourceMarkdownFile}}} --> @@ -500,20 +500,42 @@ async function main() { renderMdToHtml(makeHomePageMd(), rootDir + '/docs/index.html', {}); - renderFileToHtml(rootDir + '/readme/changelog.md', rootDir + '/docs/changelog/index.html', { title: 'Changelog (Desktop App)' }); - renderFileToHtml(rootDir + '/readme/changelog_cli.md', rootDir + '/docs/changelog_cli/index.html', { title: 'Changelog (CLI App)' }); - renderFileToHtml(rootDir + '/readme/clipper.md', rootDir + '/docs/clipper/index.html', { title: 'Web Clipper' }); - renderFileToHtml(rootDir + '/readme/debugging.md', rootDir + '/docs/debugging/index.html', { title: 'Debugging' }); - renderFileToHtml(rootDir + '/readme/desktop.md', rootDir + '/docs/desktop/index.html', { title: 'Desktop Application' }); - renderFileToHtml(rootDir + '/readme/donate.md', rootDir + '/docs/donate/index.html', { title: 'Donate' }); - renderFileToHtml(rootDir + '/readme/e2ee.md', rootDir + '/docs/e2ee/index.html', { title: 'End-To-End Encryption' }); - renderFileToHtml(rootDir + '/readme/faq.md', rootDir + '/docs/faq/index.html', { title: 'FAQ' }); - renderFileToHtml(rootDir + '/readme/mobile.md', rootDir + '/docs/mobile/index.html', { title: 'Mobile Application' }); - renderFileToHtml(rootDir + '/readme/spec.md', rootDir + '/docs/spec/index.html', { title: 'Specifications' }); - renderFileToHtml(rootDir + '/readme/stats.md', rootDir + '/docs/stats/index.html', { title: 'Statistics' }); - renderFileToHtml(rootDir + '/readme/terminal.md', rootDir + '/docs/terminal/index.html', { title: 'Terminal Application' }); - renderFileToHtml(rootDir + '/readme/api.md', rootDir + '/docs/api/index.html', { title: 'REST API' }); - renderFileToHtml(rootDir + '/readme/prereleases.md', rootDir + '/docs/prereleases/index.html', { title: 'Pre-releases' }); + const sources = [ + [ 'readme/changelog.md', 'docs/changelog/index.html', { title: 'Changelog (Desktop App)' } ], + [ 'readme/changelog_cli.md', 'docs/changelog_cli/index.html', { title: 'Changelog (CLI App)' } ], + [ 'readme/clipper.md', 'docs/clipper/index.html', { title: 'Web Clipper' } ], + [ 'readme/debugging.md', 'docs/debugging/index.html', { title: 'Debugging' } ], + [ 'readme/desktop.md', 'docs/desktop/index.html', { title: 'Desktop Application' } ], + [ 'readme/donate.md', 'docs/donate/index.html', { title: 'Donate' } ], + [ 'readme/e2ee.md', 'docs/e2ee/index.html', { title: 'End-To-End Encryption' } ], + [ 'readme/faq.md', 'docs/faq/index.html', { title: 'FAQ' } ], + [ 'readme/mobile.md', 'docs/mobile/index.html', { title: 'Mobile Application' } ], + [ 'readme/spec.md', 'docs/spec/index.html', { title: 'Specifications' } ], + [ 'readme/stats.md', 'docs/stats/index.html', { title: 'Statistics' } ], + [ 'readme/terminal.md', 'docs/terminal/index.html', { title: 'Terminal Application' } ], + [ 'readme/api.md', 'docs/api/index.html', { title: 'REST API' } ], + [ 'readme/prereleases.md', 'docs/prereleases/index.html', { title: 'Pre-releases' } ], + ]; + + for (const source of sources) { + source[2].sourceMarkdownFile = source[0]; + renderFileToHtml(rootDir + '/' + source[0], rootDir + '/' + source[1], source[2]); + } + + // renderFileToHtml(rootDir + '/readme/changelog.md', rootDir + '/docs/changelog/index.html', { title: 'Changelog (Desktop App)' }); + // renderFileToHtml(rootDir + '/readme/changelog_cli.md', rootDir + '/docs/changelog_cli/index.html', { title: 'Changelog (CLI App)' }); + // renderFileToHtml(rootDir + '/readme/clipper.md', rootDir + '/docs/clipper/index.html', { title: 'Web Clipper' }); + // renderFileToHtml(rootDir + '/readme/debugging.md', rootDir + '/docs/debugging/index.html', { title: 'Debugging' }); + // renderFileToHtml(rootDir + '/readme/desktop.md', rootDir + '/docs/desktop/index.html', { title: 'Desktop Application' }); + // renderFileToHtml(rootDir + '/readme/donate.md', rootDir + '/docs/donate/index.html', { title: 'Donate' }); + // renderFileToHtml(rootDir + '/readme/e2ee.md', rootDir + '/docs/e2ee/index.html', { title: 'End-To-End Encryption' }); + // renderFileToHtml(rootDir + '/readme/faq.md', rootDir + '/docs/faq/index.html', { title: 'FAQ' }); + // renderFileToHtml(rootDir + '/readme/mobile.md', rootDir + '/docs/mobile/index.html', { title: 'Mobile Application' }); + // renderFileToHtml(rootDir + '/readme/spec.md', rootDir + '/docs/spec/index.html', { title: 'Specifications' }); + // renderFileToHtml(rootDir + '/readme/stats.md', rootDir + '/docs/stats/index.html', { title: 'Statistics' }); + // renderFileToHtml(rootDir + '/readme/terminal.md', rootDir + '/docs/terminal/index.html', { title: 'Terminal Application' }); + // renderFileToHtml(rootDir + '/readme/api.md', rootDir + '/docs/api/index.html', { title: 'REST API' }); + // renderFileToHtml(rootDir + '/readme/prereleases.md', rootDir + '/docs/prereleases/index.html', { title: 'Pre-releases' }); } main().catch((error) => { diff --git a/docs/api/index.html b/docs/api/index.html index 145f1bf02d..64e5de62b8 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -1,5 +1,20 @@ + + + REST API | Joplin diff --git a/docs/changelog/index.html b/docs/changelog/index.html index 471d1587f3..6d01106c54 100644 --- a/docs/changelog/index.html +++ b/docs/changelog/index.html @@ -1,5 +1,20 @@ + + + Changelog (Desktop App) | Joplin diff --git a/docs/changelog_cli/index.html b/docs/changelog_cli/index.html index 826d3352df..249b61c084 100644 --- a/docs/changelog_cli/index.html +++ b/docs/changelog_cli/index.html @@ -1,5 +1,20 @@ + + + Changelog (CLI App) | Joplin diff --git a/docs/clipper/index.html b/docs/clipper/index.html index d6d25fa1a1..25683c8552 100644 --- a/docs/clipper/index.html +++ b/docs/clipper/index.html @@ -1,5 +1,20 @@ + + + Web Clipper | Joplin diff --git a/docs/debugging/index.html b/docs/debugging/index.html index 96a139695a..0c36857343 100644 --- a/docs/debugging/index.html +++ b/docs/debugging/index.html @@ -1,5 +1,20 @@ + + + Debugging | Joplin diff --git a/docs/desktop/index.html b/docs/desktop/index.html index 6dbf28f349..7960f2cf48 100644 --- a/docs/desktop/index.html +++ b/docs/desktop/index.html @@ -1,5 +1,20 @@ + + + Desktop Application | Joplin diff --git a/docs/donate/index.html b/docs/donate/index.html index 1d6985b4bd..f5ccf70731 100644 --- a/docs/donate/index.html +++ b/docs/donate/index.html @@ -1,5 +1,20 @@ + + + Donate | Joplin diff --git a/docs/e2ee/index.html b/docs/e2ee/index.html index e9e4bc9ee0..d8b28acac1 100644 --- a/docs/e2ee/index.html +++ b/docs/e2ee/index.html @@ -1,5 +1,20 @@ + + + End-To-End Encryption | Joplin diff --git a/docs/faq/index.html b/docs/faq/index.html index abdbc1a288..d5234c2b9a 100644 --- a/docs/faq/index.html +++ b/docs/faq/index.html @@ -1,5 +1,20 @@ + + + FAQ | Joplin diff --git a/docs/index.html b/docs/index.html index 974e6dff04..5c0d7cf6c2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,5 +1,20 @@ + + + Joplin - an open source note taking and to-do application with synchronisation capabilities diff --git a/docs/mobile/index.html b/docs/mobile/index.html index 6372eb6eb9..4340904872 100644 --- a/docs/mobile/index.html +++ b/docs/mobile/index.html @@ -1,5 +1,20 @@ + + + Mobile Application | Joplin diff --git a/docs/prereleases/index.html b/docs/prereleases/index.html index 23e799cd33..84913b2d9b 100644 --- a/docs/prereleases/index.html +++ b/docs/prereleases/index.html @@ -1,5 +1,20 @@ + + + Pre-releases | Joplin diff --git a/docs/spec/index.html b/docs/spec/index.html index 7fd7e6a3e8..707c73564e 100644 --- a/docs/spec/index.html +++ b/docs/spec/index.html @@ -1,5 +1,20 @@ + + + Specifications | Joplin diff --git a/docs/stats/index.html b/docs/stats/index.html index 2c7e6b0ee1..2a247db59e 100644 --- a/docs/stats/index.html +++ b/docs/stats/index.html @@ -1,5 +1,20 @@ + + + Statistics | Joplin diff --git a/docs/terminal/index.html b/docs/terminal/index.html index d13d0f9e17..bae42b4a0f 100644 --- a/docs/terminal/index.html +++ b/docs/terminal/index.html @@ -1,5 +1,20 @@ + + + Terminal Application | Joplin