llmstxt
Generates an llms.txt index for the site.
On every page, two directives are emitted:
A visually hidden HTML paragraph (
<p class="sr-only">) so agents crawling the HTML can findllms.txt.A Markdown blockquote, emitted only when the target is Markdown, carrying the same pointer.
Placing this call in a shared setup file (such as _setup.qd in docs projects) makes both the index generation and the per-page directive appear across the whole site.
Requires HtmlOptions.baseUrl to be set via .htmloptions, since llms.txt must use absolute URLs.
.llmstxt markdownavailable:{yes}
My site's short description, used as the summary in llms.txt.Return
a compound node containing both the HTML directive and the Markdown directive
Parameters
- Likely a body argument
short summary of the site, used as the blockquote at the top of llms.txt
whether the site also serves a Markdown counterpart for each page. When true, the HTML directive also links to this page's raw Markdown counterpart, computed automatically from the current subdocument.
Throws
if HtmlOptions.baseUrl is not set via .htmloptions