Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/llms-txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})

Expand Down
1 change: 1 addition & 0 deletions modules/ROOT/pages/release-guide.adoc
Original file line number Diff line number Diff line change
@@ -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.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Doc Writer <doc.writer@asciidoctor.org>
v0.1, dd.mm.yyyy
:status: draft
:page-llms-ignore:

* Status: {status}
* Deciders:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Sönke Liebau <soenke.liebau@stackable.tech>
v0.1, 2023-01-30
:status: draft
:page-llms-ignore:

* Status: {status}
* Deciders: [list everyone involved in the decision] <!-- optional -->
Expand Down Expand Up @@ -81,4 +82,4 @@ Chosen option: "[option 1]", because [justification. e.g., only option, which me
== Links <!-- optional -->

* [Link type] [Link to ADR] <!-- example: Refined by [ADR-0005](0005-example.md) -->
* … <!-- numbers of links can vary -->
* … <!-- numbers of links can vary -->
3 changes: 3 additions & 0 deletions ui/src/partials/head-info.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{{#with page.canonicalUrl}}
<link rel="canonical" href="{{{this}}}">
{{/with}}
{{#with page.attributes.[markdown-url]}}
<link rel="alternate" type="text/markdown" href="{{{this}}}">
{{/with}}
{{#unless (eq page.attributes.pagination undefined)}}
{{#with page.previous}}
<link rel="prev" href="{{{relativize ./url}}}">
Expand Down