Skip to content

Commit

Permalink
feat(header.html): write to header in italics if future release or re…
Browse files Browse the repository at this point in the history
…lease candidate
  • Loading branch information
samjwu committed Jun 15, 2023
1 parent 5c7a7ea commit 3d523ab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/rocm_docs/rocm_docs_theme/sections/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
</a>
<div class="vr vr mx-40 my-25"></div>
{% macro top_level_header(branch) -%}
<a class="klavika-font hover-opacity" href="https://rocm.docs.amd.com/en/latest/">ROCm&#8482; Platform {{ branch }}</a>
{% if branch in ["develop", "master", "main", "amd-master", "amd-staging"] %}
<a class="klavika-font hover-opacity" href="https://rocm.docs.amd.com/en/latest/">ROCm&#8482; Platform <i>Future Release</i></a>
{% elif "5.6." in branch %}
<a class="klavika-font hover-opacity" href="https://rocm.docs.amd.com/en/latest/">ROCm&#8482; Platform <i>Release Candidate 5.6</i></a>
{% else %}
<a class="klavika-font hover-opacity" href="https://rocm.docs.amd.com/en/latest/">ROCm&#8482; Platform {{ branch }}</a>
{% endif %}
{%- endmacro -%}
{{ top_level_header(theme_repository_branch | replace("docs/", "")) }}
</div>
Expand Down

0 comments on commit 3d523ab

Please sign in to comment.