Skip to content

feat(llms-txt): generate llms.txt and per-page markdown at build time - #4743

Open
ShaneK wants to merge 4 commits into
mainfrom
FW-7589
Open

ShaneK wants to merge 4 commits into
mainfrom
FW-7589

Conversation

@ShaneK

@ShaneK ShaneK commented Sep 18, 2026

Copy link
Copy Markdown
Member

Issue URL: internal

What is the current behavior?

Currently, an agent reading the docs parses rendered HTML, which on a component page means digging prop tables out of <table> markup and missing the playground examples entirely, since those mount on the client. This isn't ideal and can make it more difficult than necessary for LLMs to understand how to use Ionic Framework components.

What is the new behavior?

A new postBuild plugin writes /docs/llms.txt in the llmstxt.org format, 305 links grouped by the current version's sidebar categories, with api, cli and native under the spec's ## Optional heading. It also writes 608 markdown twins, one per sidebar-reachable page in both built versions, so /docs/api/button is also readable at /docs/api/button.md, which helps LLMs parse and understand things easier than HTML.

Additionally, we added an alternate link to doc pages that links to the md pages, helping with discoverability.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@ShaneK
ShaneK requested a review from a team as a code owner September 18, 2026 19:01
@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-docs Ready Ready Preview Sep 18, 2026 7:40pm UTC

Request Review

@ShaneK ShaneK changed the title feat(llms-txt): generate llms.txt and per-page markdown twins at buil… feat(llms-txt): generate llms.txt and per-page markdown at build time Sep 18, 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.

1 participant