diff --git a/.github/site/coverpage.md b/.github/site/coverpage.md index c08233a..f98cf48 100644 --- a/.github/site/coverpage.md +++ b/.github/site/coverpage.md @@ -1,5 +1,5 @@ -![logo](./ext/blue.svg) +![logo](ext/blue.svg) # Ghostbird diff --git a/.github/site/index.html b/.github/site/index.html index 3ba9cfd..f01114a 100644 --- a/.github/site/index.html +++ b/.github/site/index.html @@ -7,10 +7,15 @@ - + +
diff --git a/.github/site/index.mjs b/.github/site/index.mjs index f784a52..470e788 100644 --- a/.github/site/index.mjs +++ b/.github/site/index.mjs @@ -1,21 +1,48 @@ import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@11.12.0/+esm"; import "https://cdn.jsdelivr.net/npm/docsify@4.13.1/+esm"; +// @ts-check + mermaid.initialize({ startOnLoad: false }); -// see https://docsify.js.org/#/configuration +/** + * Build a URL to a GitHub resource + * @param {string} type The type of resource ('blob' or 'tree') + * @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))}`; + +/** + * Build a Markdown text that redirects to a URL + * @param {string} url The URL to redirect to + * @returns {string} a Markdown text + */ +const redirectTo = (url) => `Redirecting to ${url}...\n\n