Skip to content

feat: append .md to llms.txt link URLs - #38

Merged
rachfop merged 1 commit into
rachfop:mainfrom
scottamain:feat/link-extension
Apr 20, 2026
Merged

rachfop merged 1 commit into
rachfop:mainfrom
scottamain:feat/link-extension

Conversation

@scottamain

Copy link
Copy Markdown
Contributor

As per the llmstxt.org proposal, links in llms.txt should point to markdown versions of pages (e.g. /docs/intro.md, instead of /docs/intro/).

This adds an addMdExtension option (default: true) that appends .md to all TOC link URLs in generated llms.txt files. Trailing slashes are stripped before the extension is applied. URLs already ending with .md are left unchanged to avoid double-suffix artifacts.

Users can set addMdExtension: false to disable the behavior and preserve the original Docusaurus URLs.

Made-with: Cursor

Per the llmstxt.org spec, links in llms.txt should point to markdown
versions of pages (e.g. /docs/intro.md rather than /docs/intro/).

Add an `addMdExtension` option (default: true) that appends .md to all
TOC link URLs in generated llms.txt files. Trailing slashes are stripped
before the extension is applied. URLs already ending with .md are left
unchanged to avoid double-suffix artifacts.

Users can set `addMdExtension: false` to disable the behavior and
preserve the original Docusaurus URLs.

Made-with: Cursor
@rachfop
rachfop merged commit 36e1204 into rachfop:main Apr 20, 2026
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.

2 participants