From 896925ca496bc1d0a0d9fe213f03edf1a0820293 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 18 Nov 2019 08:49:01 +0000 Subject: [PATCH] Doc: Added link on website to improve doc --- Tools/build-website.js | 18 ++++++++++++++++-- docs/api/index.html | 17 +++++++++++++++-- docs/changelog/index.html | 17 +++++++++++++++-- docs/changelog_cli/index.html | 17 +++++++++++++++-- docs/clipper/index.html | 17 +++++++++++++++-- docs/debugging/index.html | 17 +++++++++++++++-- docs/desktop/index.html | 17 +++++++++++++++-- docs/donate/index.html | 17 +++++++++++++++-- docs/e2ee/index.html | 17 +++++++++++++++-- docs/faq/index.html | 17 +++++++++++++++-- docs/index.html | 17 +++++++++++++++-- docs/markdown/index.html | 17 +++++++++++++++-- docs/mobile/index.html | 17 +++++++++++++++-- docs/prereleases/index.html | 17 +++++++++++++++-- docs/spec/index.html | 17 +++++++++++++++-- docs/stats/index.html | 17 +++++++++++++++-- docs/terminal/index.html | 17 +++++++++++++++-- 17 files changed, 256 insertions(+), 34 deletions(-) diff --git a/Tools/build-website.js b/Tools/build-website.js index 12243abe5..7f299d87c 100644 --- a/Tools/build-website.js +++ b/Tools/build-website.js @@ -239,6 +239,15 @@ https://github.com/laurent22/joplin/blob/master/{{{sourceMarkdownFile}}} h6:hover a.heading-anchor { opacity: 1; } + + .bottom-links { + display: flex; + justify-content: center; + border-top: 1px solid #d4d4d4; + margin-top: 30px; + padding-top: 25px; + } + @media all and (min-width: 400px) { .nav-right .share-btn { display: inline-block; @@ -456,9 +465,14 @@ function markdownToHtml(md, templateParams) { } }); - const improveDocHtml = ' Improve this doc'; + const improveDocHtml = ` + `; - return Mustache.render(headerHtml, templateParams) + markdownIt.render(md) + improveDocHtml + scriptHtml + footerHtml; + return Mustache.render(headerHtml, templateParams) + markdownIt.render(md) + Mustache.render(improveDocHtml, templateParams) + scriptHtml + footerHtml; } let tocMd_ = null; diff --git a/docs/api/index.html b/docs/api/index.html index 1f01eb233..0cefe428f 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -22,7 +22,6 @@ https://github.com/laurent22/joplin/blob/master/readme/api.md -