File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 44# list see the documentation:
55# https://www.sphinx-doc.org/en/master/usage/configuration.html
66
7+ import re
8+
79# for PDF output on Read the Docs
810project = "ROCm Data Center tool"
911author = "Advanced Micro Devices, Inc."
1012copyright = "Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved."
1113
14+ with open ('../CMakeLists.txt' , encoding = 'utf-8' ) as f :
15+ match = re .search (r'.*\bget_version_from_tag\(\"([0-9.]+)\"' , f .read ())
16+ if not match :
17+ raise ValueError ("VERSION not found!" )
18+ version_number = match [1 ]
19+
1220html_theme = "rocm_docs_theme"
1321html_theme_options = {"flavor" : "rocm" }
14- html_title = f"RDC documentation"
22+ html_title = f"RDC { version_number } documentation"
1523external_toc_path = "./sphinx/_toc.yml"
1624
1725external_projects_current_project = "rdc"
You can’t perform that action at this time.
0 commit comments