Skip to content

Commit 3cc0ec3

Browse files
authored
Merge pull request #1328 from SwRaw/swraw/docs
feat: Add hipcim and rocm-ls theme
2 parents 7d372e7 + a143354 commit 3cc0ec3

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

src/rocm_docs/data/projects.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ projects:
1919
hipcc:
2020
target: https://rocm.docs.amd.com/projects/HIPCC/en/${version}
2121
development_branch: amd-staging
22+
hipcim: https://rocm.docs.amd.com/projects/hipcim/en/${version}
2223
hipcub: https://rocm.docs.amd.com/projects/hipCUB/en/${version}
2324
hipdf: https://rocm.docs.amd.com/projects/hipDF/en/${version}
2425
hipfft: https://rocm.docs.amd.com/projects/hipFFT/en/${version}
@@ -81,9 +82,15 @@ projects:
8182
rocm-ds:
8283
target: https://rocm.docs.amd.com/projects/rocm-ds/en/${version}
8384
development_branch: develop
85+
rocm-ls:
86+
target: https://rocm.docs.amd.com/projects/rocm-ls/en/${version}
87+
development_branch: develop
8488
rocm-ds-internal:
8589
target: https://rocm.docs.amd.com/projects/rocm-ds-internal/en/${version}
8690
development_branch: develop
91+
rocm-ls-internal:
92+
target: https://rocm.docs.amd.com/projects/rocm-ls-internal/en/${version}
93+
development_branch: main
8794
rocm-install-on-linux:
8895
target: https://rocm.docs.amd.com/projects/install-on-linux/en/${version}
8996
development_branch: develop
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{% macro license_link() -%}{%- endmacro -%}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% macro top_level_header(branch, latest_version, release_candidate_version) -%}
2+
{% if branch in ["develop", "master", "main", "amd-master", "amd-staging"] %}
3+
{% set version_name = "Future Release" %}
4+
{% elif branch == "latest" %}
5+
{% set version_name = "25.06" %}
6+
{% else %}
7+
{% set version_name = branch %}
8+
{% endif %}
9+
<a class="klavika-font hover-opacity" href="{{ projects['rocm-ls'] }}">ROCm Life Science {{ version_name }}</a>
10+
{%- endmacro -%}
11+
12+
{% if theme_repository_url.endswith("-docs") %}
13+
{% set repo_url = theme_repository_url|replace("-docs", "") %}
14+
{% else %}
15+
{% set repo_url = theme_repository_url %}
16+
{% endif %}
17+
18+
{% set repo_url = repo_url|replace("http://", "https://") %}
19+
20+
{% macro version_list() -%}
21+
{% if theme_version_list_link %}
22+
<a class="header-all-versions" href="{{ theme_version_list_link }}">Version List</a>
23+
{% endif %}
24+
{%- endmacro -%}
25+
26+
{%
27+
set nav_secondary_items = {
28+
"GitHub": repo_url,
29+
"Community": "https://github.com/ROCm/ROCm/discussions",
30+
"Blogs": "https://rocm.blogs.amd.com/",
31+
"ROCm&#8482; Docs": "https://rocm.docs.amd.com",
32+
"ROCm Developer Hub": "https://www.amd.com/en/developer/resources/rocm-hub.html",
33+
"Instinct&#8482; Docs": "https://instinct.docs.amd.com",
34+
"Infinity Hub": "https://www.amd.com/en/developer/resources/infinity-hub.html",
35+
"Support": repo_url + "/issues/new/choose"
36+
}
37+
%}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{%
2+
set main_doc_link = ("ROCm Life Science", projects['rocm-ls'])
3+
%}

0 commit comments

Comments
 (0)