-
Notifications
You must be signed in to change notification settings - Fork 87
docs(userguide): add component support tags to feature pages #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,13 @@ title: Dynamic Resource Allocation | |
| translated: true | ||
| --- | ||
|
|
||
| <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> | ||
|
|
||
|
Comment on lines
+6
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
doneRepository: 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"
doneRepository: 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 || trueRepository: 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 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| ## Introduction | ||
|
|
||
| HAMi has supported K8s [DRA](https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/) (Dynamic Resource Allocation) on NVIDIA devices. By installing hami-k8s-dra-driver, your cluster scheduler can discover NVIDIA GPU devices on nodes. | ||
|
|
||
There was a problem hiding this comment.
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-L10i18n/zh/docusaurus-plugin-content-docs/current/userguide/nvidia-device/dynamic-mig-support.md#L6-L10i18n/zh/docusaurus-plugin-content-docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md#L6-L10versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-mig-support.md#L5-L10versioned_docs/version-v2.9.0/userguide/nvidia-device/dynamic-resource-allocation.md#L6-L10🤖 Prompt for AI Agents
Source: MCP tools