docs(amdsmi): generate llms files and enable download button#8542
docs(amdsmi): generate llms files and enable download button#8542neon60 wants to merge 1 commit into
Conversation
Bump rocm-docs-core to 1.36.0 with the llms extra and rename the enablement flag to rocm_docs_generate_llms (renamed upstream in 1.36.0). Generate both llms.txt and llms-full.txt from the resolved doctree, replacing the manually curated static llms.txt and its html_extra_path entry, and enable the per-page Markdown download button. Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
❌ PR Check — Action Required
📖 Need help? See the Policy FAQ for details on every check and how to fix failures. |
|
🚫 Please fix the failed policies before requesting reviews. The following policy checks failed:
The |
There was a problem hiding this comment.
Pull request overview
Updates the AMD SMI documentation build configuration to use the latest rocm-docs-core LLM index generation and to enable per-page Markdown downloads via the ROCm docs theme.
Changes:
- Bump
rocm-docs-coreto1.36.0and enable thellmsextra in the Sphinx doc requirements. - Switch from a committed, curated
docs/llms.txtto generatedllms.txt/llms-full.txtvia the newrocm_docs_generate_llmsflag. - Enable the theme’s per-page download button (
use_download_button).
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| projects/amdsmi/docs/sphinx/requirements.txt | Updates the compiled Sphinx dependency lockfile for rocm-docs-core[... ,llms]==1.36.0 and related transitive deps. |
| projects/amdsmi/docs/sphinx/requirements.in | Enables the llms extra for rocm-docs-core at 1.36.0. |
| projects/amdsmi/docs/llms.txt | Removes the previously committed curated llms.txt index in favor of generated outputs. |
| projects/amdsmi/docs/conf.py | Enables rocm_docs_generate_llms and turns on the theme download button. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # Generate llms.txt and llms-full.txt after each build (the llms.txt standard, | ||
| # https://llmstxt.org/). See the rocm-docs-core guide: | ||
| # https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/user_guide/llms.html | ||
| html_extra_path = ["llms.txt"] | ||
| rocm_docs_generate_llms_full = True | ||
| rocm_docs_generate_llms = True |
|
Duplication: #8549 |
Motivation
AMD SMI already using the rocm docs core llms generation feature, we need to update to the latest one.
Technical Details
Bump rocm-docs-core to 1.36.0 with the llms extra and rename the enablement flag to rocm_docs_generate_llms (renamed upstream in 1.36.0). Generate both llms.txt and llms-full.txt from the resolved doctree, replacing the manually curated static llms.txt and its html_extra_path entry, and enable the per-page Markdown download button.
JIRA ID
AIROCDOC-4086
Test Plan
Test Result
Submission Checklist