Skip to content

Commit

Permalink
refactor(theme.conf): Add back header options to theme.conf to pass R…
Browse files Browse the repository at this point in the history
…TD PR build
  • Loading branch information
samjwu committed Nov 21, 2023
1 parent d846d3e commit 5ab97d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/rocm_docs/rocm_docs_theme/sections/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<img src="{{ pathto('_static/images/amd-header-logo.svg',1) }}" alt="AMD Logo" title="AMD Logo" width="90" class="d-inline-block align-text-top hover-opacity"/>
</a>
<div class="vr vr mx-40 my-25"></div>
{{ top_level_header(theme_repository_branch | replace("docs-", ""), header_latest_version, header_release_candidate_version) }}
{{ top_level_header(theme_repository_branch | replace("docs-", ""), theme_header_latest_version, theme_header_release_candidate_version) }}
</div>
<div class="icon-nav text-center d-flex ms-auto">
<!-- TODO: Search icon up here maybe? -->
Expand Down
3 changes: 3 additions & 0 deletions src/rocm_docs/rocm_docs_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ show_toc_level = 1
flavor = rocm

link_main_doc = True

header_latest_version = 6.0.0
header_release_candidate_version = 6.1.0
4 changes: 2 additions & 2 deletions src/rocm_docs/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def _update_theme_options(app: Sphinx) -> None:
"notfound_context": {"title": "404 - Page Not Found"},
"notfound_template": "404.html",
"html_context": {
"header_latest_version": header_latest_version,
"header_release_candidate_version": header_release_candidate_version,
"theme_header_latest_version": header_latest_version,
"theme_header_release_candidate_version": header_release_candidate_version,
},
}
for key, default in default_config_opts.items():
Expand Down

0 comments on commit 5ab97d7

Please sign in to comment.