Skip to content

docs: correct option behavior and tighten prose across the docs - #79

Merged
rachfop merged 1 commit into
mainfrom
docs/review-cleanup
Oct 2, 2026
Merged

rachfop merged 1 commit into
mainfrom
docs/review-cleanup

Conversation

@rachfop

@rachfop rachfop commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Every documented option, default, and example was checked against src/. This PR fixes the claims that didn't match, documents behavior that had no docs, and tightens the prose.

Corrections

  • Default llms.txt links have no .md suffix: addMdExtension applies only when generateMarkdownFiles is true. The overview sample now matches real output, including the ## Table of Contents heading and : description suffix.
  • customLLMFiles[].includeUnmatchedLast defaults to true (the configuration reference said false).
  • Every .md/.mdx import is inlined, @alias/ paths resolve against the site directory, and a circular import is reported as an error and dropped.
  • processingBatchSize sets how often verbose mode logs progress. Documents are all processed before batching, so it doesn't bound memory.
  • pathTransformation.addPaths inserts after the route base path. The examples use site-relative paths with docsDir: 'docs'.
  • Section headings appear with two or more sections and fall back to path. routeBasePath and blogRouteBasePath are relative to baseUrl.
  • A page whose URL is the site root maps to index.md. The sample log output matches the real output.
  • Removed the llmsTxtFilename: 'llms-original.txt' example: with generateMarkdownFiles on, every links file points at the .md files.

Newly documented

Structure and prose

  • The DocsSection and CustomLLMFile field tables live only in the configuration reference; content-generation.md links to them. The two copies had drifted.
  • Merged the two overlapping cleaning-combination sections in content-cleaning.md.
  • Removed text that described history (the backward-compatibility section, "existing configurations are unaffected").

Dogfood site

  • Every page has a front matter description, and website/docusaurus.config.js sets includeOrder from sidebars.js. The site's llms.txt now lists pages in sidebar order with full summaries; before, entries were alphabetical and descriptions were cut mid-sentence or contained raw relative links.

Testing

  • npm test passes.
  • website builds with no broken links or anchors; the generated llms.txt was checked by hand.

Fix factual errors found by checking every documented claim against src/:

- Default llms.txt links have no .md suffix: addMdExtension applies only
  with generateMarkdownFiles.
- customLLMFiles[].includeUnmatchedLast defaults to true.
- Any .md/.mdx import is inlined, @alias/ paths resolve against the site
  directory, and a circular import is an error that drops the import.
- processingBatchSize sets progress-logging granularity; documents are
  all processed before batching, so it doesn't bound memory.
- pathTransformation addPaths inserts after the route base path; the
  examples now use site-relative paths with docsDir: 'docs'.
- Section headings need two or more sections and fall back to path;
  routeBasePath and blogRouteBasePath are relative to baseUrl.
- Root-URL pages map to index.md; sample log output matches the real
  output; remove the llmsTxtFilename "keep both links" example, which
  doesn't work.

Document behavior that had no docs: how titles and descriptions are
chosen (including the #76 skips), directory index handling (#74), the
llms-full.txt page structure, draft skipping, and the auto-mode
"Version: current" label.

Replace the duplicated DocsSection and CustomLLMFile tables in
content-generation.md with links to the configuration reference, merge
the two overlapping cleaning-combination sections, and drop text that
narrated history (the backward-compatibility section, "existing configs
are unaffected" caveats).

Give every page a front matter description and order the site's
llms.txt by the sidebar, so the dogfood llms.txt has full summaries in
reading order. Add a Documentation entry to the Unreleased changelog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rachfop
rachfop merged commit ec7b36c into main Oct 2, 2026
3 checks passed
@rachfop
rachfop deleted the docs/review-cleanup branch October 2, 2026 20:40
rachfop added a commit that referenced this pull request Oct 2, 2026
Fix factual errors found by checking every documented claim against src/:

- Default llms.txt links have no .md suffix: addMdExtension applies only
  with generateMarkdownFiles.
- customLLMFiles[].includeUnmatchedLast defaults to true.
- Any .md/.mdx import is inlined, @alias/ paths resolve against the site
  directory, and a circular import is an error that drops the import.
- processingBatchSize sets progress-logging granularity; documents are
  all processed before batching, so it doesn't bound memory.
- pathTransformation addPaths inserts after the route base path; the
  examples now use site-relative paths with docsDir: 'docs'.
- Section headings need two or more sections and fall back to path;
  routeBasePath and blogRouteBasePath are relative to baseUrl.
- Root-URL pages map to index.md; sample log output matches the real
  output; remove the llmsTxtFilename "keep both links" example, which
  doesn't work.

Document behavior that had no docs: how titles and descriptions are
chosen (including the #76 skips), directory index handling (#74), the
llms-full.txt page structure, draft skipping, and the auto-mode
"Version: current" label.

Replace the duplicated DocsSection and CustomLLMFile tables in
content-generation.md with links to the configuration reference, merge
the two overlapping cleaning-combination sections, and drop text that
narrated history (the backward-compatibility section, "existing configs
are unaffected" caveats).

Give every page a front matter description and order the site's
llms.txt by the sidebar, so the dogfood llms.txt has full summaries in
reading order. Add a Documentation entry to the Unreleased changelog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant