You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[Fix] bulk-transform Resolves Relative Links From base_url Again - 1.1.0 made bulk-transform resolve relative links from each file's directory, so sites that keep each page in <Page>/index.md with links written relative to the docs root got every link nested under the page (<base_url>/Getting-Started/Kafka-Setup instead of <base_url>/Kafka-Setup), which return 404. The default is back to resolving from base_url, as before 1.1.0.
Set relative_links: file to keep the 1.1.0 behavior (links and query-only links resolve from each file's directory). Any value other than base_url or file fails with Invalid relative_links: <value> (use base_url or file).
[Fix] transform No Longer Overwrites the Generated llms.txt - transform writes a file only when -o/--output is given, and prints to stdout otherwise. Before, it wrote to the config's output (the generate target, e.g. public/llms.txt), and -o llms.txt printed to stdout instead of writing the file.
If you relied on the config's output for transform, pass -o instead.
[Fix] Compression Options Keep Code Unchanged - remove_duplicates and remove_stopwords no longer edit fenced code, indented code or inline code.
remove_duplicates no longer drops the last lines and the closing fence of a code block that ends like an earlier one, so the rest of the document no longer turns into code.
remove_stopwords also keeps ~~~ and indented code blocks and bare URLs (https://example.com/how-to/use-the-api) unchanged.
remove_duplicates keeps repeated paragraphs that hold inline code.
normalize_headings skips every code block the other options detect, so a # line in a ```` block that holds a ``` line no longer counts as a heading.
[Fix] Cleanup Options Keep Code Unchanged - remove_comments, remove_badges, remove_images and remove_blockquotes no longer edit fenced code, indented code or inline code, so HTML and Markdown examples stay intact. With remove_blockquotes, code inside a blockquote loses its quote markers like the text around it.
[Fix] Missing --config File Fails the Run - generate, transform and bulk-transform now exit 1 with Config file not found: <path> when the file given with --config does not exist, and write nothing. Before, they ran with the defaults (docs: .), so bulk-transform wrote *.llm.md next to every Markdown file under the current directory. Without --config, a missing llm-docs-builder.yml still means the defaults. Config.new with a missing file is unchanged.
[Fix] CLI Errors Go to stderr - Error messages are now printed to stderr instead of stdout, so transform -d missing.md > out.md no longer writes the error into out.md. The validate report ("Invalid llms.txt file" and its errors) stays on stdout, as the command's result. Only CLI output changes, not the Ruby API.
[Fix] Unknown Options Are Usage Errors - An unknown option (e.g. transform --foo) now prints Error: invalid option: --foo and a pointer to --help instead of Unexpected error: ....
[Fix] parse Prints Its Summary Without --verbose - parse now always prints the title, description and link counts; --verbose also lists each link.
[Fix] transform --output Ends the File With a Newline - The output file now ends with \n; one is added only if the content lacks it.
[Fix] --config No Longer Mixes In llm-docs-builder.yml - With --config other.yml, keys that other.yml leaves out (title, description, base_url, body, custom_instruction) are no longer taken from llm-docs-builder.yml in the current directory. The config is now loaded once.
[Fix] remove_code_examples No Longer Truncates Documents - The first line indented by four spaces or a tab no longer deletes everything after it. Only indented code blocks are removed; nested list items and list continuation lines stay.
A heading or a fence that is not indented now ends a list, so indented code after it counts as code. base_url and convert_urls no longer rewrite links in such code either.
[Fix] parse and validate Read llms.txt by Default - Without --docs, both commands now read llms.txt in the current directory, as documented. Before, they took the config's docs setting (the docs directory for generate, . by default) and failed with "Is a directory".
[Fix] bulk-transform Skips Nested Excludes and Hidden Directories - bulk-transform now picks files like generate does.
A trailing /** in excludes matches files at any depth (**/private/** now skips private/sub/b.md), and patterns also match the path relative to the docs directory.
Hidden directories (e.g. .github/) are skipped unless include_hidden is set, as documented in 0.9.4.
[Fix] llms.txt Sections Match the Documented Priorities - generate now sorts pages into sections as the README describes.
Pages that match no rule (e.g. configuration.md, install.md) go to Documentation (priority:medium) instead of Optional (priority:low).
API docs (api.md) go to Documentation instead of Examples.
Example files (examples.md) go to Examples.
Only reference and advanced pages (reference.md, advanced.md) stay in Optional.