Exclude legacy V0 pages from llms.txt context files#359
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
all-hands-bot
left a comment
There was a problem hiding this comment.
🟡 Acceptable - Pragmatic but needs automation
THE GOOD:
Solving a real problem (V0/V1 doc confusion) with a straightforward solution. Overriding Mintlify's auto-generation is pragmatic when they don't offer exclude configs.
THE RISK:
33K+ lines of generated content committed to git with no visible CI safeguards. These files will become stale the moment someone updates docs without re-running the generator.
VERDICT: ✅ Worth merging - core approach is sound, but add automation or accept manual maintenance burden.
KEY INSIGHT: Good taste favors generated artifacts that can't drift (built on-demand) over committed artifacts that can (require discipline). If committing is necessary, CI checks are non-negotiable.
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
|
Added a small ergonomics layer so keeping / fresh is easy:\n\n- python3 scripts/generate-llms-files.py regenerates both files\n- python3 scripts/generate-llms-files.py |
|
Added a small ergonomics layer so keeping
Documented in |
|
@OpenHands why is CI failing? We just added that job to verify llms.txt, in THIS PR, and the PR is updated from main. Fix it please. |
|
@enyst your session has expired. Please login again at OpenHands Cloud and try again. |
Mintlify auto-generates
/llms.txtand/llms-full.txtfrom all public pages.We want those LLM context files to include V1-only content, while we keep legacy V0 pages available for humans.
This PR overrides Mintlify's auto-generated files by committing custom
llms.txtandllms-full.txtgenerated from V1-only docs pages.What changed
scripts/generate-llms-files.pyllms.txtandllms-full.txtat the repo root (Mintlify override)openhands/usage/v0/V0*How to regenerate
References:
llms.txtdocs: https://www.mintlify.com/docs/ai/llmstxtllms.txtproposal: https://llmstxt.org/