diff --git a/lib/llms-txt.js b/lib/llms-txt.js index 9fe412767..5faf2c160 100644 --- a/lib/llms-txt.js +++ b/lib/llms-txt.js @@ -41,6 +41,8 @@ module.exports.register = function () { const convert = createConverter(new Map(pages.map((page) => [`${siteUrl}${page.pub.url}`, markdownUrl(page, siteUrl)]))) for (const page of pages) { markdown.set(page, convert(page.contents.toString(), `${siteUrl}${page.pub.url}`)) + // The UI reads this as page.attributes.markdown-url to link the Markdown version in the page head. + page.asciidoc.attributes['page-markdown-url'] = markdownUrl(page, siteUrl) } }) diff --git a/modules/ROOT/pages/release-guide.adoc b/modules/ROOT/pages/release-guide.adoc index 57bd94cdf..f55ffb2f5 100644 --- a/modules/ROOT/pages/release-guide.adoc +++ b/modules/ROOT/pages/release-guide.adoc @@ -1,3 +1,4 @@ +:page-llms-ignore: :description: Work-in-progress internal guide with the git and cargo steps to cut a release and bump the next development version. diff --git a/modules/contributor/pages/adr/drafts/ADRx-choose_authorization_engine.adoc b/modules/contributor/pages/adr/drafts/ADRx-choose_authorization_engine.adoc index 748bbf274..85974a0c2 100644 --- a/modules/contributor/pages/adr/drafts/ADRx-choose_authorization_engine.adoc +++ b/modules/contributor/pages/adr/drafts/ADRx-choose_authorization_engine.adoc @@ -2,6 +2,7 @@ Doc Writer v0.1, dd.mm.yyyy :status: draft +:page-llms-ignore: * Status: {status} * Deciders: diff --git a/modules/contributor/pages/adr/drafts/ADRx-maintenance_windows.adoc b/modules/contributor/pages/adr/drafts/ADRx-maintenance_windows.adoc index d48f46ab0..42132b324 100644 --- a/modules/contributor/pages/adr/drafts/ADRx-maintenance_windows.adoc +++ b/modules/contributor/pages/adr/drafts/ADRx-maintenance_windows.adoc @@ -2,6 +2,7 @@ Sönke Liebau v0.1, 2023-01-30 :status: draft +:page-llms-ignore: * Status: {status} * Deciders: [list everyone involved in the decision] @@ -81,4 +82,4 @@ Chosen option: "[option 1]", because [justification. e.g., only option, which me == Links * [Link type] [Link to ADR] -* … \ No newline at end of file +* … diff --git a/ui/src/partials/head-info.hbs b/ui/src/partials/head-info.hbs index 853498662..ea4990dc4 100644 --- a/ui/src/partials/head-info.hbs +++ b/ui/src/partials/head-info.hbs @@ -1,6 +1,9 @@ {{#with page.canonicalUrl}} {{/with}} + {{#with page.attributes.[markdown-url]}} + + {{/with}} {{#unless (eq page.attributes.pagination undefined)}} {{#with page.previous}}