Add llms.txt and llms-full.txt support for AI crawlers #16016
+72,549
−255
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Nota: This PR replaces an old one where I just shared the llms.txt and llms-full.txt without the script to generate them, now the script is here and could be easily integrated in the CI/CD to automatically update the txt files.
Description
Implements llms-txt.org support to expose Ethereum.org's English documentation to AI crawlers and LLMs.
Adds two statically served files:
llms.txt
: URL index of 256 English documentation pages (~32KB)llms-full.txt
: Full content of all pages (~2.8MB), cleaned for AI consumptionIncludes a script to generate/update both files and a new npm command for ease of use.
Changes:
public/llms.txt
– index of all English docs, categorized by topicpublic/llms-full.txt
– full content in markdown formatsrc/scripts/generate-llms-files.js
– generation scriptpackage.json
– addsnpm run generate-llms
commandKey features:
public/
directoryFiles are accessible at:
Related Issue
N/A