Add script for generating llms.txt#4590
Conversation
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Simek
left a comment
There was a problem hiding this comment.
This is a good start! 👌 Left few comments and suggestions above.
Can we also include in list Contributing and Community sections content? Since you already have a way to read and covert sidebar data, it should be matter of concatenation of multiple outputs.
Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
Co-authored-by: Bartosz Kaszubowski <gosimek@gmail.com>
It required more changes that I initially expected, but I managed to combine all of them (also included the architecture one) 👍 |
Simek
left a comment
There was a problem hiding this comment.
Thanks for all of the updates! Tested the latest version locally, looks great! 👍
Few last cleanup nits below, let's address those before shipping.
|
@Simek fixed! Should be g2g now 🫡 |
|
Hey Is providing a llms.txt that useful? Any crawler/LLM use that already? Considering people are implementing this, I was wondering if it's worth creating an official Docusaurus plugin |
|
hey @slorber, I think it's becoming kind of standard, and the most popular standard so far.
That'd be really cool to automate this kind of stuff. For example Docusaurus already did a official plugin for it: web-infra-dev/rspress#2034 |
|
I reopened our repo issue since if we don't provide this, it seems that every docs will implement their own anyway 😅 |
What
Adds a script that generates
llms.txt- a single file containing all React Native documentation in a format optimized for LLMs. The file is generated during the website build process.Why
How
scripts/generate-llms-txt.jsthat:.gitignoreTesting