From 64cd10797a15884cf6a54fc244c8bb9b1e8d1673 Mon Sep 17 00:00:00 2001 From: snipsnipsnip Date: Wed, 22 Oct 2025 22:29:18 +0900 Subject: [PATCH 1/8] docs: fix a broken link at webpage footer --- .github/site/index.mjs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/site/index.mjs b/.github/site/index.mjs index 470e788..1f70ce0 100644 --- a/.github/site/index.mjs +++ b/.github/site/index.mjs @@ -11,7 +11,7 @@ mermaid.initialize({ startOnLoad: false }); * @param {string} path Absolute path (/ points to the repository root) to the resource * @returns {string} The URL to the resource */ -const urlFor = (type, path) => `https://github.com/exteditor/ghostbird/${type}/main/${encodeURIComponent(path.slice(1))}`; +const urlFor = (type, path) => `https://github.com/exteditor/ghostbird/${type}/main/${encodeURIComponent(path.replace(/^[/]+/, ''))}`; /** * Build a Markdown text that redirects to a URL @@ -31,8 +31,10 @@ ____ [▲ Back to Top](#top)
-Last Update: {docsify-updated}
-Powered by Docsify + +Last Update: [{docsify-updated}](${urlFor('blob', vm.route.file)})
+Powered by [Docsify](https://docsify.js.org/) +
`; From 4738e9aa716347c1f12d07e23523921b7578d37b Mon Sep 17 00:00:00 2001 From: snipsnipsnip Date: Wed, 22 Oct 2025 22:33:21 +0900 Subject: [PATCH 2/8] docs: use arrow functions in docsify config --- .github/site/index.mjs | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/site/index.mjs b/.github/site/index.mjs index 1f70ce0..d6329db 100644 --- a/.github/site/index.mjs +++ b/.github/site/index.mjs @@ -53,18 +53,9 @@ window.$docsify = { maxLevel: 3, themeColor: '#0b9dd6', routes: { - ['/README'](route) { - let url = urlFor('blob', `${route}.md`) - return redirectTo(url) - }, - ['/[-._/a-zA-Z]*[.][a-zA-Z]+$'](route) { - let url = urlFor('blob', route) - return redirectTo(url) - }, - ['/[-._/a-zA-Z]+/$'](route) { - let url = urlFor('tree', route) - return redirectTo(url) - }, + '/README': (route) => redirectTo(urlFor('blob', `${route}.md`)), + '/[-._/a-zA-Z]*[.][a-zA-Z]+$': (route) => redirectTo(urlFor('blob', route)), + '/[-._/a-zA-Z]+/$': (route) => redirectTo(urlFor('tree', route)), }, search: [ '/', From c227c6ffde003629ca3180cf9f18e5867d45fb89 Mon Sep 17 00:00:00 2001 From: snipsnipsnip Date: Wed, 22 Oct 2025 22:35:50 +0900 Subject: [PATCH 3/8] docs: show more docs in webpage's navbar --- .github/site/index.html | 7 +------ .github/site/index.mjs | 2 ++ .github/site/navbar.md | 10 ++++++++++ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .github/site/navbar.md diff --git a/.github/site/index.html b/.github/site/index.html index f01114a..80a0871 100644 --- a/.github/site/index.html +++ b/.github/site/index.html @@ -11,11 +11,6 @@ - -
+ diff --git a/.github/site/index.mjs b/.github/site/index.mjs index d6329db..fdc8250 100644 --- a/.github/site/index.mjs +++ b/.github/site/index.mjs @@ -49,6 +49,8 @@ window.$docsify = { executeScript: true, homepage: "homepage.md", coverpage: "coverpage.md", + loadNavbar: "navbar.md", + mergeNavbar: true, auto2top: true, maxLevel: 3, themeColor: '#0b9dd6', diff --git a/.github/site/navbar.md b/.github/site/navbar.md new file mode 100644 index 0000000..2aaa7a7 --- /dev/null +++ b/.github/site/navbar.md @@ -0,0 +1,10 @@ +- 📂 Pages + - [🪺 README](/) + - [❓ FAQ](/doc/faq) + - [📄 BUILDING](/BUILDING) + - [📄 CONTRIBUTING](/CONTRIBUTING) + - [📄 doc/building](/doc/building) + - [📄 doc/design](/doc/design) + - [📄 doc/testing](/doc/testing) + - [📄 doc/faq-architectural](/doc/faq-architectural) +- [🌍 Translation](https://translate.kagi.com/exteditor.github.io/ghostbird/) From e45759c05e3858a5bd9a1d68361b6672b3007fe3 Mon Sep 17 00:00:00 2001 From: snipsnipsnip Date: Wed, 22 Oct 2025 22:36:46 +0900 Subject: [PATCH 4/8] docs: tweak the cover page --- .github/site/coverpage.md | 7 ++----- .github/site/index.html | 3 +++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/site/coverpage.md b/.github/site/coverpage.md index f98cf48..58d61f3 100644 --- a/.github/site/coverpage.md +++ b/.github/site/coverpage.md @@ -1,11 +1,8 @@ - -![logo](ext/blue.svg) - # Ghostbird -> Compose email in your favorite text editor +> Compose email using your favorite text editor in Thunderbird > ->