Skip to content

Commit 9fb7988

Browse files
yansun1996sajmera-pensando
authored andcommitted
[DOC] Template the image version with Sphinx config
1 parent f392a5e commit 9fb7988

File tree

5 files changed

+31
-453
lines changed

5 files changed

+31
-453
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,13 @@
2525
"repository_url": "https://github.com/rocm/gpu-operator",
2626
# Add any additional theme options here
2727
}
28-
extensions = ["rocm_docs"]
28+
extensions = ["rocm_docs","sphinx_substitution_extensions"]
2929

3030
# Table of contents
3131
external_toc_path = "./sphinx/_toc.yml"
3232

3333
exclude_patterns = ['.venv']
34+
35+
rst_prolog = """
36+
.. |version| replace:: v{version}
37+
""".format(version=version)

docs/installation/openshift-helm.md

Lines changed: 0 additions & 262 deletions
This file was deleted.

docs/sphinx/requirements.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
rocm-docs-core==1.18.1
2-
sphinx-reredirects
2+
sphinx-reredirects
3+
Sphinx-Substitution-Extensions==2025.6.6

docs/sphinx/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,5 @@ wcwidth==0.2.13
277277
wrapt==1.17.0
278278
# via deprecated
279279
zipp==3.21.0
280-
# via importlib-metadata
280+
# via importlib-metadata
281+
Sphinx-Substitution-Extensions==2025.6.6

0 commit comments

Comments
 (0)