Skip to content

fix(docs): correct llms.txt links for versioned developer docs#22819

Merged
critesjosh merged 1 commit intonextfrom
jc/fix-llms-txt-versioned-links
May 4, 2026
Merged

fix(docs): correct llms.txt links for versioned developer docs#22819
critesjosh merged 1 commit intonextfrom
jc/fix-llms-txt-versioned-links

Conversation

@critesjosh
Copy link
Copy Markdown
Contributor

Summary

Fix broken links in the autogenerated llms.txt and llms-full.txt files produced by docusaurus-plugin-llms.

  • Bump docusaurus-plugin-llms from ^0.2.0 to ^0.4.0 to use route-based URL resolution.
  • Drop trailing slash on docsDir so the plugin can correctly strip the versioned-docs prefix when matching files against Docusaurus routes.
  • Set addMdExtension: false since the site serves HTML, not raw .md.
  • Update pathTransformation (used as fallback) to ignore the versioned-docs path and prepend developers so URLs resolve to https://docs.aztec.network/developers/....

Test plan

  • yarn build produces build/llms.txt and build/llms-full.txt
  • All entries in llms.txt use https://docs.aztec.network/developers/...
  • No developer_versioned_docs or version-vX.Y.Z segments leak into URLs
  • No .md suffixes on generated links
  • Spot-checked a sample link (/developers/docs/aztec-js/aztec_js_reference) returns 200

Bump docusaurus-plugin-llms to 0.4.0 and update its config so the
generated llms.txt and llms-full.txt produce correct URLs under
/developers/... for the current versioned developer docs:

- Drop trailing slash on docsDir so the plugin can strip the version
  prefix when matching files against Docusaurus routes.
- Set addMdExtension: false (site serves HTML, not .md).
- Update pathTransformation for the fallback URL builder so the
  versioned-docs prefix is removed and /developers is prepended.
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​docusaurus-plugin-llms@​0.2.2 ⏵ 0.4.086 +4100100 +192 +4100

View full report

@critesjosh critesjosh added this pull request to the merge queue May 4, 2026
Merged via the queue into next with commit 28c7a5a May 4, 2026
33 checks passed
@critesjosh critesjosh deleted the jc/fix-llms-txt-versioned-links branch May 4, 2026 15:09
AztecBot pushed a commit that referenced this pull request May 4, 2026
## Summary

Fix broken links in the autogenerated `llms.txt` and `llms-full.txt`
files produced by `docusaurus-plugin-llms`.

- Bump `docusaurus-plugin-llms` from `^0.2.0` to `^0.4.0` to use
route-based URL resolution.
- Drop trailing slash on `docsDir` so the plugin can correctly strip the
versioned-docs prefix when matching files against Docusaurus routes.
- Set `addMdExtension: false` since the site serves HTML, not raw `.md`.
- Update `pathTransformation` (used as fallback) to ignore the
versioned-docs path and prepend `developers` so URLs resolve to
`https://docs.aztec.network/developers/...`.

## Test plan

- [x] `yarn build` produces `build/llms.txt` and `build/llms-full.txt`
- [x] All entries in `llms.txt` use
`https://docs.aztec.network/developers/...`
- [x] No `developer_versioned_docs` or `version-vX.Y.Z` segments leak
into URLs
- [x] No `.md` suffixes on generated links
- [x] Spot-checked a sample link
(`/developers/docs/aztec-js/aztec_js_reference`) returns 200
@AztecBot
Copy link
Copy Markdown
Collaborator

AztecBot commented May 4, 2026

✅ Successfully backported to backport-to-v4-next-staging #22924.

AztecBot added a commit that referenced this pull request May 5, 2026
BEGIN_COMMIT_OVERRIDE
docs: add map and state variable docs  (#22824)
fix: e2e compat should not fail for contracts added after legacy stables
(#22900)
chore: fix kv-store browser tests hangs (#22721)
feat: kv-store sqlite backend with page level encryption (#22759)
fix: install node 22 for aztec-cli acceptance test (#22917)
feat: backport kv-store sqlite encryption (#22759) to v4-next (#22927)
fix(docs): correct llms.txt links for versioned developer docs (#22819)
feat(docs): improve discoverability of Aztec.nr API reference docs
(#22861)
feat(docs): backport improve discoverability of Aztec.nr API reference
docs (#22861) to v4-next (#22931)
feat(aztec-nr): add call_self stubs for utility functions (#22885)
docs: add map and state variable docs (backport #22824) (#22880)
refactor: `getPackageVersion` fn cleanup (#22941)
fix(ci): skip acceptance test for canary -commit. tags (#22951)
fix: closing db, correct stub side effects (#22939)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants