Repository navigation
Conversation
script/llms_docs.rb writes an llms.txt index and an llms-full.txt Markdown copy of the README and website pages into docs/; the Docs CI job checks them. Assisted-by: Claude Opus 5.5 [Claude Code]
czj
enabled auto-merge (squash)
November 25, 2026 12:34
Takes the text of the title instead of stripping tags with a regular expression, which CodeQL flagged as incomplete sanitization. The output is the same. Assisted-by: Claude Opus 5.5 [Claude Code]
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.
Coding agents know little about this gem: it is newer than most of their training data, and its website is HTML written for people. The llms.txt convention (https://llmstxt.org) gives them a short index and one Markdown file to read instead.
script/llms_docs.rbwrites both intodocs/from the README and the website's pages, and the Docs job fails when they fall behind. The same script ships in super-slim, agentry, gamba, crumbly and maptain.docs/llms.txtlists every page with its<title>and meta description, the benchmarks, changelog and source under Optional.docs/llms-full.txtis the README, then every page but the home page converted to Markdown (code blocks with their language, tables, absolute links). Numbers a page loads with JavaScript point tobenchmarks.jsoninstead.bundle exec rake docs:llmsrewrites them,docs:llms:checkruns in CI (the job is now named Docs). Nokogiri is pinned like Rouge, since the check compares bytes.AGENTS.md.Sizes
docs/llms.txt: 1687 bytes. docs/llms-full.txt: 58409 bytes, about 14k tokens, from the README and 4 pages.