feat: Add LLM-friendly documentation endpoints#245
Merged
udhaykumarbala merged 29 commits into0gfoundation:mainfrom Feb 18, 2026
Merged
feat: Add LLM-friendly documentation endpoints#245udhaykumarbala merged 29 commits into0gfoundation:mainfrom
udhaykumarbala merged 29 commits into0gfoundation:mainfrom
Conversation
This reverts commit b30984a.
|
@udhaykumarbala is attempting to deploy a commit to the 0g-Frontend Team on Vercel. A member of the Team first needs to authorize it. |
Implements industry-standard LLM documentation access: - Add llms.txt and llms-full.txt generation (llmstxt.org standard) - Add raw markdown endpoints (.md URLs return raw content) - Configure CORS headers for AI tool access Resolves: 0gfoundation#242 New endpoints: - /llms.txt - Documentation index with descriptions - /llms-full.txt - Complete docs in single file (484KB) - /*.md - Raw markdown for any page
b9abd31 to
fd97a75
Compare
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR makes 0G documentation accessible to AI coding tools (Claude Code, Cursor, GitHub Copilot, ChatGPT, etc.) following the industry standard used by Vercel, Supabase, LangChain, and others.
New Endpoints
/llms.txt/llms-full.txt/[any-page].mdWhy This Matters
Before: Developers using AI tools had to manually copy-paste docs or scrape HTML.
After: AI tools can directly fetch clean markdown:
Benefits for 0G Developers
Industry Standard
Implements llmstxt.org standard, adopted by:
Technical Details
Files Changed
docusaurus.config.tspackage.jsondocusaurus-plugin-llmssrc/plugins/markdown-endpoint-plugin.js.mdendpointsvercel.jsonTest plan
llms.txtgenerated with 66 doc entriesllms-full.txtgenerated (484KB, 15K lines).mdfiles copied to build outputRelated
Closes #242
🤖 Generated with Claude Code