Conversation
|
👋 Hello @fcakyon, thank you for submitting a
For more guidance, please refer to our Contributing Guide. Don't hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! 🚀 |
UltralyticsAssistant
left a comment
There was a problem hiding this comment.
🔍 PR Review
Made with ❤️ by Ultralytics Actions
Good addition overall: the feature is scoped, integrates cleanly via on_post_build, and the standalone flow is updated consistently. Main issues to address are correctness of nav traversal (top-level strings / single-page sections are currently skipped) and ensuring Path/path normalization is reliable at runtime. Minor note: avoid unconditional print() noise in build logs.
💬 Posted 4 inline comments
Add seen_urls set to track URLs already added, skip duplicates. Each URL now appears only once (first occurrence wins).
Adds automatic Vercel-style llms.txt file generation after site build.
Generated file: llms.txt
ultralytics-mkdocs-llmstxt.mp4
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Adds automatic generation of a Vercel-style
llms.txtfile after MkDocs builds complete. 🤖📄📊 Key Changes
add_llms_txt(defaultTrue) and hooks intoon_post_buildto generatellms.txt.generate_llms_txt()inplugin/postprocess.pyto createsite/llms.txtfromnav(preferred) or by scanningdocs/**/*.md.postprocess_site()to also generatellms.txtwhenadd_llms_txt=True.🎯 Purpose & Impact
llms.txtautomatically in sync with the site navigation and build output, reducing manual maintenance.