-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Starlight llms.txt
plugin
#10819
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for astro-docs-2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I don't know if the build issue is related, but the error reminds me of withastro/astro#12669 if that helps. We might need to bump Astro to |
Ah thank you very much for the pointer @ArmandPhilippot! I’ll try upgrading. |
Guys, I tried this text file https://deploy-preview-10819--astro-docs-2.netlify.app/llms-full.txt to create .epub and .fb2 documents readable on my E-Ink device. .epub files attached (github.com does not like .epub attachments, therefore archived) |
How to get that .epub files:
Save as
P.S. Usage of pandoc described here: |
Nice! But, I don't think there is an issue? Looking at your screenshots and by quickly looking at the table of contents (using Calibre) I think all the headings are |
Look at first black-blue screenshot.
May be this should be level 2. I mean 318, 319, 320 should be under 317 -- NOT on the same level. Not these "Checklist", "What do I need to get started" Level 1 - these are the chapters like
It looks like first few pages of TOC are OK. |
Oh, I see the confusion now, but technically this is correct. The table of contents is generated using the It does not merge all the pages of the tutorial under a |
Imagine an LLM reading all this stuff. After this - the LLM can produce strange responses based on these headers. Yes, these headers are H1 headers on some pages, but this is just an implementation issue. |
@ArmandPhilippot @delucis let me know where/how to report the things I see when reading the .epub |
One more update: I am reading this .epub - and when I click on links - nothing happens! |
Am just adding a comment from the Discord for record here in this PR that the intention and scope of THIS PR is to generate the llms.txt file for use by LLMs. Making available and rendering of content in other formats such as Knowing about some issues for other use cases may in fact highlight issues relevant to the intended use case, so feedback is certainly valuable! But just pointing out that we don't have to solve those issues in this PR as generating content for static publication formats like |
I converted this text file It seems, part of the Table of Contents is not OK. |
Thank you for the feedback @stargazer33! Quick notes:
|
Well, just look at attached screenshots. You can not have a link like this |
As as a user I find the current table of contents incorrect and unreadable, thats it. And some LLM is also kind of a "user". Just it does not complains, it will just hallucinate based on incorrect information. P.S. When, in which ticket/PR it should be fixed - I do not know, here I am in user role )) I just writing down what I see )) |
Some of the *.txt listed here https://deploy-preview-10819--astro-docs-2.netlify.app/llms.txt On the other hand I used exactly the same ![how-to-recipes](https://github.com/user-attachments/assets/5d016b29-7d0 |
Ah yeah, that’s expected. In order to compress these files for LLMs they have whitespace collapsed. Similar to https://svelte.dev/llms-small.txt for example from the Svelte docs. So they’re no longer valid Markdown. |
Description (required)
Experimental PR that adds https://delucis.github.io/starlight-llms-txt/ with some configuration to see if the result could be helpful to anyone.
Feedback very welcome from folks using tools like this.
The entrypoint
llms.txt
can be previewed at https://deploy-preview-10819--astro-docs-2.netlify.app/llms.txt