Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@alexxu-amd
Copy link
Contributor

@alexxu-amd alexxu-amd commented Oct 16, 2025

Motivation

More components are added other than main ROCm components. They need a place to define latest version so that "latest" version on RTD can extract the latest version for the header and header banner can be triggered properly.

Technical Details

Modifies the latest_versions.txt format to include the latest version for each flavor. Note, key name has to match flavor name.
Each jinja header now receives a dictionary of latest version {site_name: latest_version} and can extract its own version accordingly. This PR also modifies project.py to properly utilize the latest version to update app.config.projects_version_type. This variable is a criteria for header banner display, this will fix the header banner display error for non-rocm component.

Test Plan

Build non-rocm docs locally to see if header banner displays properly and if header version is correct for latest.

Test Result

Submission Checklist

@alexxu-amd alexxu-amd changed the title feat: add version list to rocm-ds flavor & improve header version feat: add version list to rocm-ds flavor & improve header version & fix header banner display error Oct 23, 2025
@alexxu-amd alexxu-amd marked this pull request as ready for review October 23, 2025 02:03
@alexxu-amd alexxu-amd requested a review from neon60 October 23, 2025 02:08
@alexxu-amd
Copy link
Contributor Author

PR for changing latest_versions.txt: #1191
Please merge the above PR together with this PR

@neon60
Copy link
Contributor

neon60 commented Oct 23, 2025

Code looks good, I did not test locally.

@neon60
Copy link
Contributor

neon60 commented Oct 23, 2025

The unit tests are failing do we know, why?
https://github.com/ROCm/rocm-docs-core/actions/runs/18735215687/job/53440377603?pr=1442

@alexxu-amd
Copy link
Contributor Author

The unit tests are failing do we know, why? https://github.com/ROCm/rocm-docs-core/actions/runs/18735215687/job/53440377603?pr=1442

This PR requires #1191 to be merged together. Without #1191, the build won't pass.

@alexxu-amd alexxu-amd merged commit 0dd5e75 into develop Oct 24, 2025
7 checks passed
@alexxu-amd alexxu-amd deleted the alexxu12/rocm-ds-version-list branch October 24, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants