From ee0c0171a5e41ba6b0d7143b8e523edf622a922f Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 16 Jan 2026 18:04:56 +0000 Subject: [PATCH] feat: add llms.txt and rename raw spec URL to match filename - Add /llms.txt endpoint following llmstxt.org specification format - Change raw markdown URL from /spec/{version}/raw.md to /spec/git-common-flow-v{version}.md to match download filename - Add for raw markdown in spec pages - Add Raw button to markdown view page Co-Authored-By: Claude Opus 4.5 --- src/layouts/BaseLayout.astro | 11 +++++-- src/layouts/SpecLayout.astro | 21 +++++++++---- src/pages/llms.txt.ts | 25 ++++++++++++++++ src/pages/spec/[version]/md.astro | 22 ++++++++++++++ .../spec/git-common-flow-v[version].md.ts | 30 +++++++++++++++++++ 5 files changed, 100 insertions(+), 9 deletions(-) create mode 100644 src/pages/llms.txt.ts create mode 100644 src/pages/spec/git-common-flow-v[version].md.ts diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 5ec85ce..3996007 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -11,7 +11,9 @@ interface Props { } const { title, description = config.description } = Astro.props; -const fullTitle = title.includes(config.title) ? title : `${title} | ${config.title}`; +const fullTitle = title.includes(config.title) + ? title + : `${title} | ${config.title}`; const canonicalUrl = Astro.url.href; --- @@ -42,12 +44,15 @@ const canonicalUrl = Astro.url.href; + + +