-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #616 from samjwu/blog-flavor
feat: Add ROCm blogs flavor
- Loading branch information
Showing
7 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% macro license_link() -%}{%- endmacro -%} |
17 changes: 17 additions & 0 deletions
17
src/rocm_docs/rocm_docs_theme/flavors/rocm-blogs/header.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% macro top_level_header(branch, latest_version, release_candidate_version) -%} | ||
<a class="klavika-font hover-opacity" href="{{ projects['rocm'] }}">ROCm™ 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:rocm-feedback@amd.com" | ||
} | ||
%} |
3 changes: 3 additions & 0 deletions
3
src/rocm_docs/rocm_docs_theme/flavors/rocm-blogs/left-side-menu.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% | ||
set main_doc_link = ("ROCm Documentation Home", projects['rocm']) | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters