-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
0 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,5 @@ | ||
{% macro license_link() -%} | ||
{% if theme_license_link %} | ||
<li><a href="{{ theme_license_link }}">{{ theme_license_text if theme_license_text else "" }}</a></li> | ||
{% endif %} | ||
{%- endmacro -%} |
28 changes: 28 additions & 0 deletions
28
src/rocm_docs/rocm_docs_theme/flavors/generic/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,28 @@ | ||
{% macro top_level_header(branch, latest_version, release_candidate_version) -%} | ||
{% if theme_header_title %} | ||
{% set header_title = theme_header_title %} | ||
{% else %} | ||
{% set header_title = project ~ " " ~ version %} | ||
{% endif %} | ||
|
||
{% if theme_header_link %} | ||
{% set header_link = theme_header_link %} | ||
{% else %} | ||
{% set header_link = "#" %} | ||
{% endif %} | ||
|
||
<a class="klavika-font hover-opacity" href="{{ header_link }}">{{ header_title }}</a> | ||
{%- endmacro -%} | ||
|
||
{% macro version_list() -%} | ||
{% if theme_version_list_link %} | ||
<a class="header-all-versions" href="{{ theme_version_list_link }}">Version List</a> | ||
{% endif %} | ||
{%- endmacro -%} | ||
|
||
{% | ||
set nav_secondary_items = theme_nav_secondary_items if theme_nav_secondary_items else { | ||
"GitHub": theme_repository_url if theme_repository_url else "#", | ||
"Support": (theme_repository_url + "/issues/new/choose") if theme_repository_url else "#" | ||
} | ||
%} |
3 changes: 3 additions & 0 deletions
3
src/rocm_docs/rocm_docs_theme/flavors/generic/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 = theme_main_doc_link if theme_main_doc_link else (project, "#") | ||
%} |
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