Skip to content

Commit

Permalink
feat: Add ROCm blogs flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
samjwu committed Jan 26, 2024
1 parent 6624bd5 commit fbbad45
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/rocm_docs/rocm_docs_theme/flavors/rocm-blogs/footer.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro license_link() -%}

{%- endmacro -%}
15 changes: 15 additions & 0 deletions src/rocm_docs/rocm_docs_theme/flavors/rocm-blogs/header.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% macro top_level_header(branch, latest_version, release_candidate_version) -%}
<a class="klavika-font hover-opacity" href="{{ projects['rocm'] }}">ROCm&#8482; Software</a>
{%- endmacro -%}

{%
set repo_url = theme_repository_url|replace("-internal", "")
set nav_secondary_items = {
"GitHub": repo_url,
"Community": "https://github.com/RadeonOpenCompute/ROCm/discussions",
"AMD Lab Notes": "https://gpuopen.com/learn/amd-lab-notes/amd-lab-notes-readme/",
"Infinity Hub": "https://www.amd.com/en/technologies/infinity-hub",
"Support": repo_url + "/issues/new/choose",
"Feedback": "mailto:[email protected]"
}
%}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{%
set main_doc_link = ("ROCm Documentation Home", projects['rocm'])
%}
6 changes: 3 additions & 3 deletions src/rocm_docs/rocm_docs_theme/flavors/rocm/footer.jinja
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{%
set license_link = ("ROCm Licenses and Disclaimers", projects['rocm'] ~ "/about/licensing.html")
%}
{% macro license_link() -%}
<li><a href="{{ projects['rocm'] ~ "/about/licensing.html" }}">ROCm Licenses and Disclaimers</a></li>
{%- endmacro -%}
3 changes: 1 addition & 2 deletions src/rocm_docs/rocm_docs_theme/sections/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
<div class="col-12 text-center">
<ul>
<li><a href="https://www.amd.com/en/corporate/copyright" target="_blank">Terms and Conditions</a></li>
{% set text, target = license_link %}
<li><a href="{{target}}">{{text}}</a></li>
{{ license_link() }}
<li><a href="https://www.amd.com/en/corporate/privacy" target="_blank">Privacy</a></li>
<li><a href="https://www.amd.com/en/corporate/trademarks" target="_blank">Trademarks</a></li>
<li><a href="https://www.amd.com/system/files/documents/statement-human-trafficking-forced-labor.pdf" target="_blank">Statement on Forced Labor</a></li>
Expand Down

0 comments on commit fbbad45

Please sign in to comment.