Skip to content

docs(userguide): add component support tags to feature pages - #713

Open
singhsrijan46 wants to merge 2 commits into
Project-HAMi:masterfrom
singhsrijan46:docs/add-component-tags
Open

docs(userguide): add component support tags to feature pages#713
singhsrijan46 wants to merge 2 commits into
Project-HAMi:masterfrom
singhsrijan46:docs/add-component-tags

Conversation

@singhsrijan46

@singhsrijan46 singhsrijan46 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind documentation

What this PR does / why we need it:

Added component tags on feature pages so users can quickly see which scheduler modes are supported.

Changes made:
Added clickable tags (HAMi, Volcano, HAMi-DRA) at the top of dynamic-mig-support.md and dynamic-resource-allocation.md.
Updated Chinese translation files in i18n/zh/.

Which issue(s) this PR fixes:

Part of #689

Checklist:

  • npm run lint and npm run format:check pass
  • npm run build succeeds for both en and zh
  • Chinese translation updated if English docs changed (or noted why not)
  • Commits are signed off (git commit -s)

Summary by CodeRabbit

  • Documentation
    • Added support banners to Dynamic MIG and Dynamic Resource Allocation guides, with links to related integration and support documentation.
    • Updated both English and Chinese documentation, including versioned guides.
    • Removed a duplicate A100-SXM4-40GB entry from the A100 40GB MIG configuration list.

Signed-off-by: Srijan <singhsrijangkp@gmail.com>
@hami-robot hami-robot Bot added kind/documentation Improvements or additions to documentation dco-signoff: yes labels Aug 3, 2026
@hami-robot

hami-robot Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: singhsrijan46
Once this PR has been reviewed and has the lgtm label, please assign archlitchi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot
hami-robot Bot requested review from archlitchi and wawa0210 August 3, 2026 16:31
@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit 3433edc
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a7a61804687f90009ccf799
😎 Deploy Preview https://deploy-preview-713--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The NVIDIA device documentation now includes supported-component banners for dynamic MIG and dynamic resource allocation. The versioned dynamic MIG documentation also removes a duplicate A100-SXM4-40GB entry.

Changes

NVIDIA device documentation

Layer / File(s) Summary
Supported-component documentation banners
docs/userguide/nvidia-device/dynamic-*.md, versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-*.md, i18n/zh/.../dynamic-*.md
Added banners linking HAMi, Volcano, HAMi-DRA, and CDI Support.
Duplicate MIG model removal
versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md, i18n/zh/.../version-v2.9.0/...
Removed the duplicate A100-SXM4-40GB entry from the 40GB A100 model list.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: archlitchi, wawa0210

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main documentation change: adding component support tags to feature pages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Srijan <singhsrijangkp@gmail.com>
@hami-robot hami-robot Bot added size/M and removed size/S labels Aug 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/userguide/nvidia-device/dynamic-mig-support.md`:
- Around line 5-10: Update every supported-component banner to meet the 4.5:1
WCAG AA contrast target by replacing the current saturated backgrounds or
switching to suitably dark text. Apply the accessible HAMi, Volcano, and
HAMi-DRA colors in docs/userguide/nvidia-device/dynamic-mig-support.md:5-10;
HAMi-DRA, HAMi, and CDI Support colors in
docs/userguide/nvidia-device/dynamic-resource-allocation.md:6-10; translated
banners in
i18n/zh/docusaurus-plugin-content-docs/current/userguide/nvidia-device/dynamic-mig-support.md:6-10
and
i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md:6-10;
and versioned English banners in
versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md:5-10
and
versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-resource-allocation.md:6-10.

In `@docs/userguide/nvidia-device/dynamic-resource-allocation.md`:
- Around line 6-12: Mirror the supported-components banner in both the current
Chinese page and the v2.9.0 Chinese page, using equivalent styling and
`/zh/docs/...` URLs for HAMi-DRA, HAMi, and CDI Support; do not modify the
v2.8.0 Chinese page.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 11d8bc5f-831e-42a9-b84d-74fb627efa63

📥 Commits

Reviewing files that changed from the base of the PR and between 3ec2dc3 and 3433edc.

📒 Files selected for processing (6)
  • docs/userguide/nvidia-device/dynamic-mig-support.md
  • docs/userguide/nvidia-device/dynamic-resource-allocation.md
  • i18n/zh/docusaurus-plugin-content-docs/current/userguide/nvidia-device/dynamic-mig-support.md
  • i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md
  • versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md
  • versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-resource-allocation.md

Comment on lines +5 to +10
<div style={{ display: 'flex', alignItems: 'center', gap: '8px', marginBottom: '20px', flexWrap: 'wrap' }}>
<strong style={{ fontSize: '0.9rem' }}>Supported Components:</strong>
<a href="/docs/get-started/deploy-with-helm" style={{ display: 'inline-block', padding: '3px 12px', borderRadius: '12px', background: '#10b981', color: '#fff', fontWeight: 600, fontSize: '0.82rem', textDecoration: 'none' }}>HAMi</a>
<a href="/docs/userguide/volcano-vgpu/nvidia-gpu/how-to-use-volcano-vgpu" style={{ display: 'inline-block', padding: '3px 12px', borderRadius: '12px', background: '#3b82f6', color: '#fff', fontWeight: 600, fontSize: '0.82rem', textDecoration: 'none' }}>Volcano</a>
<a href="/docs/userguide/nvidia-device/dynamic-resource-allocation" style={{ display: 'inline-block', padding: '3px 12px', borderRadius: '12px', background: '#8b5cf6', color: '#fff', fontWeight: 600, fontSize: '0.82rem', textDecoration: 'none' }}>HAMi-DRA</a>
</div>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use an accessible color palette for all supported-component banners. The repeated white-on-saturated palette fails the 4.5:1 WCAG AA target for normal text. Use darker background colors or dark text at every site. (w3.org)

  • docs/userguide/nvidia-device/dynamic-mig-support.md#L5-L10: update the HAMi, Volcano, and HAMi-DRA colors.
  • docs/userguide/nvidia-device/dynamic-resource-allocation.md#L6-L10: update the HAMi-DRA, HAMi, and CDI Support colors.
  • i18n/zh/docusaurus-plugin-content-docs/current/userguide/nvidia-device/dynamic-mig-support.md#L6-L10: update the translated banner colors.
  • i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md#L6-L10: update the versioned Chinese banner colors.
  • versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md#L5-L10: update the versioned English banner colors.
  • versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-resource-allocation.md#L6-L10: update the versioned English banner colors.
📍 Affects 6 files
  • docs/userguide/nvidia-device/dynamic-mig-support.md#L5-L10 (this comment)
  • docs/userguide/nvidia-device/dynamic-resource-allocation.md#L6-L10
  • i18n/zh/docusaurus-plugin-content-docs/current/userguide/nvidia-device/dynamic-mig-support.md#L6-L10
  • i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md#L6-L10
  • versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md#L5-L10
  • versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-resource-allocation.md#L6-L10
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/userguide/nvidia-device/dynamic-mig-support.md` around lines 5 - 10,
Update every supported-component banner to meet the 4.5:1 WCAG AA contrast
target by replacing the current saturated backgrounds or switching to suitably
dark text. Apply the accessible HAMi, Volcano, and HAMi-DRA colors in
docs/userguide/nvidia-device/dynamic-mig-support.md:5-10; HAMi-DRA, HAMi, and
CDI Support colors in
docs/userguide/nvidia-device/dynamic-resource-allocation.md:6-10; translated
banners in
i18n/zh/docusaurus-plugin-content-docs/current/userguide/nvidia-device/dynamic-mig-support.md:6-10
and
i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md:6-10;
and versioned English banners in
versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md:5-10
and
versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-resource-allocation.md:6-10.

Source: MCP tools

Comment on lines +6 to +12
<div style={{ display: 'flex', alignItems: 'center', gap: '8px', marginBottom: '20px', flexWrap: 'wrap' }}>
<strong style={{ fontSize: '0.9rem' }}>Supported Components:</strong>
<a href="/docs/installation/how-to-use-hami-dra" style={{ display: 'inline-block', padding: '3px 12px', borderRadius: '12px', background: '#8b5cf6', color: '#fff', fontWeight: 600, fontSize: '0.82rem', textDecoration: 'none' }}>HAMi-DRA</a>
<a href="/docs/get-started/deploy-with-helm" style={{ display: 'inline-block', padding: '3px 12px', borderRadius: '12px', background: '#10b981', color: '#fff', fontWeight: 600, fontSize: '0.82rem', textDecoration: 'none' }}>HAMi</a>
<a href="/docs/installation/configure-cdi" style={{ display: 'inline-block', padding: '3px 12px', borderRadius: '12px', background: '#0ea5e9', color: '#fff', fontWeight: 600, fontSize: '0.82rem', textDecoration: 'none' }}>CDI Support</a>
</div>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- candidate documentation files ---'
fd -i 'dynamic-resource-allocation\.md$' . | sort

printf '%s\n' '--- English current page ---'
eng="$(fd -i 'dynamic-resource-allocation\.md$' docs | head -n 1)"
if [ -n "${eng:-}" ]; then
  cat -n "$eng" | sed -n '1,35p'
fi

printf '%s\n' '--- Chinese counterparts and banner text ---'
for f in $(fd -i 'dynamic-resource-allocation\.md$' i18n 2>/dev/null | sort); do
  echo "FILE: $f"
  rg -n -C 3 'Supported Components|HAMi-DRA|CDI Support|支持组件|动态资源' "$f" || true
done

Repository: Project-HAMi/website

Length of output: 5116


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- all current documentation copies ---'
fd -i 'dynamic-resource-allocation\.md$' docs i18n 2>/dev/null | sort

printf '%s\n' '--- exact banner/link occurrences ---'
rg -n -C 2 -S 'how-to-use-hami-dra|deploy-with-helm|configure-cdi|Supported Components|支持组件' docs i18n 2>/dev/null || true

printf '%s\n' '--- documentation navigation configuration ---'
fd -i 'sidebars\.js$' . -x sh -c 'echo "FILE: $1"; rg -n -C 2 "dynamic-resource-allocation|nvidia-device" "$1" || true' sh {} \;

Repository: Project-HAMi/website

Length of output: 29456


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- page paths and language/version structure ---'
fd -t f -i 'dynamic-resource-allocation\.md$' . | sort

printf '%s\n' '--- English and Chinese page headers ---'
for f in $(fd -t f -i 'dynamic-resource-allocation\.md$' . | sort); do
  echo "FILE: $f"
  sed -n '1,30p' "$f"
done

Repository: Project-HAMi/website

Length of output: 8799


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- documentation files ---'
fd -t f -i 'dynamic-resource-allocation\.md$' . | sort

printf '%s\n' '--- relevant links and banner text ---'
rg -n -C 3 -S 'how-to-use-hami-dra|deploy-with-helm|configure-cdi|Supported Components|支持组件' docs i18n 2>/dev/null || true

Repository: Project-HAMi/website

Length of output: 35255


Mirror the banner in the Chinese documentation.

The current Chinese page and the v2.9.0 Chinese page lack the banner. Add the equivalent banner to both pages and use /zh/docs/... links. Leave v2.8.0 unchanged because its English page lacks this banner.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/userguide/nvidia-device/dynamic-resource-allocation.md` around lines 6 -
12, Mirror the supported-components banner in both the current Chinese page and
the v2.9.0 Chinese page, using equivalent styling and `/zh/docs/...` URLs for
HAMi-DRA, HAMi, and CDI Support; do not modify the v2.8.0 Chinese page.

Source: Coding guidelines

@singhsrijan46

Copy link
Copy Markdown
Contributor Author

Hi @fishman @rootsongjc

I have updated the PR and pushed the new changes:
-Added component tags (like HAMi, Volcano, HAMi-DRA, CDI) at the top of feature pages so users can easily see which modes are supported (solving part of issue #689).
-Also updated the v2.9.0 version files so the tags show up properly on the live website docs as well.

Everything builds cleanly and passes all linting tests with DCO sign-off. Let me know if any further changes are needed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant