Skip to content

docs(amdsmi): generate llms files and enable download button#8542

Closed
neon60 wants to merge 1 commit into
developfrom
amdsmi_llms_txt_update
Closed

docs(amdsmi): generate llms files and enable download button#8542
neon60 wants to merge 1 commit into
developfrom
amdsmi_llms_txt_update

Conversation

@neon60

@neon60 neon60 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

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

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>
@neon60 neon60 requested review from a team and Copilot July 14, 2026 12:56
@github-actions github-actions Bot added documentation Improvements or additions to documentation project: amdsmi labels Jul 14, 2026
@therock-pr-bot

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ❌ Fail Error: PR description must reference a JIRA ID, ISSUE ID, or a GitHub closing keyword.
Expected: include a JIRA ID / ISSUE ID line (separator : or -, or omitted; value may be a JIRA key, a number with/without #, or a link), OR a closing keyword + issue reference. Accepted examples:
JIRA ID : TESTAUTO-6039
JIRA ID - #330
JIRA ID #330
ISSUE ID : TESTUTO-3334
ISSUE ID #3334
ISSUE ID - TESTAUTO-3433
ISSUE ID : https://github.com/<org_name>/<repo_name>/issues/1234
Closes #10
Fixes octo-org/octo-repo#100
Resolves: #123
#123
https://github.com/<org_name>/<repo_name>/issues/123
Current: no valid JIRA/ISSUE/closing-keyword reference found
Forbidden Files ✅ Pass
🧪 Unit Test ❌ Fail Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: projects/amdsmi/docs/conf.py; no test file found
🔎 pre-commit ⏳ Pending ⏳ Still running…
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled

⚠️ 2 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

🚫 Please fix the failed policies

  • ❌ PR Title/Description
  • ❌ Unit Test

The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Title/Description
  • ❌ Unit Test

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-core to 1.36.0 and enable the llms extra in the Sphinx doc requirements.
  • Switch from a committed, curated docs/llms.txt to generated llms.txt / llms-full.txt via the new rocm_docs_generate_llms flag.
  • 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.

Comment on lines +55 to +58
# 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
@neon60

neon60 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Duplication: #8549

@neon60 neon60 closed this Jul 14, 2026
@neon60 neon60 deleted the amdsmi_llms_txt_update branch July 14, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants