Repository navigation
Support llms.txt for kind section and doc-rooted sites - #2841
Merged
chalin merged 83 commits intoOct 6, 2026
Merged
Conversation
…y on the root page The LLMS index was a home-only output and the directive gated on the home's output formats, so a doc-rooted site (home link-only, docs section at the root) published no llms.txt while its Markdown alternates linked one. The new root-page partial resolves the page that publishes a site's root (home, or the top-level section rendered in its place); the index layout becomes all.llms.txt so that page can render it, and the directive and all.md link the index it publishes, per language, or omit it. Our doc-rooted variant gives the docs landing page the LLMS output via its config cascade. Fixes docsy#2834
…; changelog entry
✅ Deploy Preview for docsydocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…cale links in the doc-rooted fixture Review round 1 (r1.1, r1.7, r1.8, r1.9).
Review round 2 (r2.3).
…ion precedence, the docs index, and the reporter's shape Review round 3 (r3.1-r3.3, r3.7-r3.13). Also: imperative recipe step, agent-support override note moved to the per-kind bullet with the layout linked, no shadowed $root in the locale loop, and the doc-rooted cascade's outputs list explained.
Review round 4 (r4.1).
A blob/main link to a file this branch adds 404s in the link check until the merge (CI, round 4).
…-rooted-fix-2026-1003 # Conflicts: # docsy.dev/content/en/project/about/changelog.md
…the outputs-mirroring note
…ig header pointer
…us LLMS Page outputs replace the kind's list, so the cascade restates it; the test makes drift red and both configs point at it.
…directive, section formats kept Replaces the config-list equality test with the behavior it stood for, red when the cascade's outputs entry is missing or drifts; the config comments go, the test being the one home.
The recipe documents the docs section at the root and nothing else; a name-agnostic scan supported shapes outside it.
Restores the entry's form; the marker was an owner call applied without one.
`all.llms.txt` quoted the rendering page's `description`, so a section-kind `llms.txt` (`outputs.section` with `LLMS`) carried that section's summary under the site title. The summary is now the root page's, falling back to the home page's; a section-kind file is byte-identical to the root one. Fixture pins it. Changelog says "any page of kind `section`" (r6 L2, three runs).
llms.txt on doc-rooted sites, and from any sectionllms.txt for kind section and doc-rooted sites
A title-only page (no description, content, or child pages) on a site without `llms.txt` ended without a final newline: the title line trimmed its own, and the always-present link paragraph used to supply the file's last one. The title line now keeps its newline and each block drops one leading newline, so every element ends in exactly one. Output is otherwise unchanged (cold cross-check: 849 shape comparisons, 0 differences beyond the intended ones). Fixture pins the title-only shape.
- Rephrases the description without its internal colon: the section listing already joins title and description with one; golden refreshed - Child-page list: home lists children too, not only sections - Points the Markdown-variant how-to at the Shortcodes page's new section
- Names the llms.txt summary's source in its enable section - Links the root-page term and the outputs-replacement rule to their homes - Changelog entry lands on the recipe's agent-support step
…odes section owns it
…d, recipe lead-in and comments trimmed
…-rooted-fix-2026-1003
…-rooted-fix-2026-1003
chalin
added a commit
to chalin/docsy
that referenced
this pull request
Oct 6, 2026
chalin
added a commit
that referenced
this pull request
Oct 6, 2026
- **Scope**: bump [link-cache](https://github.com/chalin/link-cache) from 0.4.1 to 0.6.0 (exact, from the npm registry) and adopt its one-rule model - Writes the lock under a one-run `NPM_CONFIG_MIN_RELEASE_AGE` override: own package, exercised on this branch as a commit-pinned git dependency before its 2026-10-02 release; nothing else resolved under the override - **Out of scope** (deferred; the refresh workflow stays parked): - Re-enabling the refresh workflow (CLA blocks bot-authored PRs) - Pruning lapsed `expires` entries on every refresh run - **Merge order** with cache-touching PRs written under 0.4.1: this PR lands after them, rebased and re-migrated (done for #2841) - Their `status` entries merge cleanly, but 0.6.0's check rewrites them to `result`, which fails CI's `is:clean`; `npm run fix:link-cache` normalizes them - **Cache schema migration**: `link-cache.jsonc` is main's entries rewritten by one 0.6.0 run (`status` → `result`), plus the two package-doc links the notes now cite - **Refresh lane**: header, dispatch input, prune log line, and PR-body text aligned with the 0.6.0 rule - **Maintainer notes**: seed, prune, and field guidance updated to 0.6.0, linking the package's docs; also drops a "née refcache" aside and the consumer-site lead's run-in label on the same page - **Validation**: - Migration preserves every entry's timestamp and is byte-stable on a second run - `check:links` over docsy.dev under 0.6.0 is diff-free (17,993 links, 0 errors) - `test:repo`, `test:lychee`, and `check` green - **Preview**: [maintainer notes § Link checking](https://deploy-preview-2792--docsydocs.netlify.app/project/about/maintainer-notes/#link-checking-and-the-link-cache)
chalin
added a commit
that referenced
this pull request
Oct 7, 2026
- Contributes to #2775 - **Scope**: the 0.18.0 artifacts refreshed for the merges after #2840 (`0fdf3a6f` to `64411422`), merged `main` only; version guidance follows the changelog's official support policy - **Release post** - Linux Foundation stated as Docsy's home, with the module-path migration and canonical-path cleanup - `llms.txt` section (#2841, #2851) - Hugo section routing to the companion - Default script-dependency versions, with a reconcile action for existing overrides - Override notes as a `<details>` under the Upgrade step - **Hugo 0.165.0-0.166.0 upgrade guide**, new: the companion carrying the Hugo mechanics (the 0.16.0 model), one action block per change - **Changelog**, **user guide**, **maintainer notes**: aligned with the posts (one home per fact; the guide owns the evergreen rules the posts point to) - **Agent-support page**: reorganized around parallel Markdown-output and `llms.txt` sections, in Hugo's glossary terms (site, project, site root) - **Theme** (widening): `all.llms.txt` no longer lists an `AGENTS.md` page, a docsy.dev experiment from #2605 that leaked into the theme; `llms.txt` golden updated - **Version params**: both posts freeze every version param they render; the toolchain-versions test guards the frozen script pins and the companion's title bound - Post dates set; `draft: true` kept - **Out of scope** - Tag-time fields: draft flip, version stamp, `UNRELEASED` removal, the release link - CSP guidance home and the print-gap line: owner decisions pending - The dropped `AGENTS.md` `llms.txt` line: no changelog or post mention (experimental, docsy.dev-only; owner call) - Relative links in Markdown output versions: pre-existing, #2858 - **Coverage** (ledger, ten rows) - #2850: changelog, post (Other notable changes) - #2852: changelog, post, companion guide - #2851: user guide, changelog, post - #2853: post table - #2792: changelog, post - #2841: user guide, changelog, post - #2848: changelog, post (the LF fact) - #2829: post version table (the Dart Sass pin) - #2849, #2846: internal; release notes only - #2854: guide only - **Preview(s)** - https://deploy-preview-2855--docsydocs.netlify.app/blog/2026/0.18.0/ - https://deploy-preview-2855--docsydocs.netlify.app/blog/2026/hugo-0.165.0+/ - https://deploy-preview-2855--docsydocs.netlify.app/project/about/changelog/#next - https://deploy-preview-2855--docsydocs.netlify.app/docs/update/ - https://deploy-preview-2855--docsydocs.netlify.app/docs/content/agent-support/
Closed
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
llms.txtrenders from the page publishing a language's root: home, or thedocssection on a doc-rooted sitellms.txtlink follow that page, per languageall.llms.txt, so pages of kindsectioncan render it (a site's ownindex.llms.txtstill wins for home)LLMSin the docs landing page'soutputsllms.txtlinks via the Docsy-private_root-llms-txt-pathshortcode, Shortcodes § Markdown output variantsrel="describedby"discovery per llms.txt spec v2 (filed on the agent-support task)LLMSas the home's only output makessite.Home.RelPermalinkthellms.txtURL (navbar brand on every page). Start at_partials/td/root-page.html.llms.txtlink is now per-language and omitted when the language publishes none; the directive sentence namesllms.txt