Repository navigation
feat: multi-version llms output via versions option - #56
Merged
Merged
Conversation
rachfop
force-pushed
the
feat/multi-version-output
branch
2 times, most recently
from
July 17, 2026 16:38
8c82582 to
8165680
Compare
Generate a separate set of LLM files per documentation version. Each version
runs the full pipeline, writing llms.txt and all customLLMFiles under its own
subdirectory with links scoped to that version's routes.
`versions` accepts an explicit array ({ name, label, docsDir, path,
customLLMFiles, includeOrder }) or 'auto' to detect versions from Docusaurus
docs versioning (versions.json + versioned_docs/). Unset per-version fields
fall back to the top-level options. Omitting `versions` preserves the existing
single-root behavior.
Custom files now inherit the version label (customFile.version ?? version) so
version-scoped outputs like stable/llms-python.txt are labeled consistently.
writeFile creates parent directories so version subdirectories are written.
Adds tests/test-multi-version.js (explicit array, auto detection, backward
compat, validation, scoped links, custom-file labeling) and documents the
option in the README and CHANGELOG.
rachfop
force-pushed
the
feat/multi-version-output
branch
from
July 17, 2026 16:54
8165680 to
306baba
Compare
rachfop
marked this pull request as ready for review
July 17, 2026 16:54
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.
What
Adds a
versionsplugin option to generate a separate set of LLM files per documentation version. Each version runs the full pipeline — writingllms.txtand everycustomLLMFilesentry under its own subdirectory, with links scoped to that version's routes.versionsaccepts either:{ name, label?, docsDir?, path?, customLLMFiles?, includeOrder? }per version, or'auto'— detected from Docusaurus docs versioning (versions.json+versioned_docs/), reading labels/paths from the docs config (preset or standaloneplugin-content-docs).Unset per-version fields fall back to the top-level options. Omitting
versionspreserves the existing single-root behavior exactly.Why
Sites that keep more than one docs version live at once (e.g. a nightly build at the root and a stable build under
/stable) currently get only a single rootllms.txtcovering the default version. This lets each version publish its own machine-readable index at/<path>/llms.txt.Notes
customFile.version ?? version) so version-scoped outputs likestable/llms-python.txtare labeled consistently with theirllms.txt.writeFilenow creates parent directories so version subdirectories are written.Test plan
npm test— addstests/test-multi-version.jscovering explicit arrays,'auto'(both preset- and plugins-based content-docs config), backward compatibility, validation, scoped links, and custom-file labeling. Full suite green.