Skip to content

Commit

Permalink
feat: Added Instinct flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
saadrahim committed Nov 29, 2024
1 parent 2793880 commit 708114d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rocm_docs/data/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ projects:
hip-vs:
target: https://rocm.docs.amd.com/projects/hip-vs/en/${version}
development_branch: master
instinct: https://dcgpu.docs.amd.com/
llvm-project: https://rocm.docs.amd.com/projects/llvm-project/en/${version}
miopen: https://rocm.docs.amd.com/projects/MIOpen/en/${version}
mivisionx: https://rocm.docs.amd.com/projects/MIVisionX/en/${version}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% macro license_link() -%}{%- endmacro -%}
29 changes: 29 additions & 0 deletions src/rocm_docs/rocm_docs_theme/flavors/instinct/header.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% macro top_level_header(branch, latest_version, release_candidate_version) -%}
{% if branch in ["develop", "master", "main", "amd-master", "amd-staging"] %}
{% set version_name = "Future Release" %}
{% elif branch == "latest" %}
{% set version_name = latest_version %}
{% else %}
{% set version_name = branch %}
{% endif %}
<a class="klavika-font hover-opacity" href="{{ projects['rocm'] }}">Instinct&#8482; Hub</a>
{%- endmacro -%}


{% set repo_url = repo_url|replace("http://", "https://") %}

{% 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 "#",
"Community": "https://github.com/ROCm/ROCm/discussions",
"Blogs": "https://rocm.blogs.amd.com/",
"ROCm&#8482; docs": "https://rocm.docs.amd.com",
"Support": (theme_repository_url + "/issues/new/choose") if theme_repository_url else "#"
}
%}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{%
set main_doc_link = ("Instinct Hub", projects['instinct'])
%}
1 change: 1 addition & 0 deletions src/rocm_docs/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def _update_theme_options(app: Sphinx) -> None:
supported_flavors = [
"rocm",
"local",
"instinct",
"rocm-docs-home",
"rocm-blogs",
"generic",
Expand Down

0 comments on commit 708114d

Please sign in to comment.