Skip to content

Commit

Permalink
Use rocm-docs-core as extension (#440)
Browse files Browse the repository at this point in the history
* Use rocm-docs-core as extension

* Remove doxylink extension

* Disable doxysphinx
  • Loading branch information
samjwu authored Aug 21, 2024
1 parent 675265b commit f0d7806
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

import re

from rocm_docs import ROCmDocs
with open('../CMakeLists.txt', encoding='utf-8') as f:
match = re.search(r'rocm_setup_version\(VERSION\s+\"?([0-9.]+)[^0-9.]+', f.read())
with open("../CMakeLists.txt", encoding="utf-8") as f:
match = re.search(r"rocm_setup_version\(VERSION\s+\"?([0-9.]+)[^0-9.]+", f.read())
if not match:
raise ValueError("VERSION not found!")
version_number = match[1]
Expand All @@ -23,13 +22,16 @@

external_toc_path = "./sphinx/_toc.yml"

docs_core = ROCmDocs(left_nav_title)
docs_core.run_doxygen(doxygen_root="doxygen", doxygen_path="doxygen/xml")
docs_core.setup()
extensions = ["rocm_docs", "rocm_docs.doxygen"]
html_theme = "rocm_docs_theme"
html_theme_options = {"flavor": "rocm"}

external_projects_current_project = "rocthrust"

for sphinx_var in ROCmDocs.SPHINX_VARS:
globals()[sphinx_var] = getattr(docs_core, sphinx_var)
doxygen_root = "doxygen"
doxygen_project = {
"name": project,
"path": "doxygen/xml",
}

cpp_id_attributes = ["__device__", "__host__"]

0 comments on commit f0d7806

Please sign in to comment.