Files
rocm-systems/projects/rdc/docs/conf.py
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 wiersze
1.0 KiB
Python
Czysty Zwykły widok Historia

2023-05-02 08:54:06 -06:00
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
2025-08-05 17:07:55 +05:30
import re
2023-11-23 11:29:04 -07:00
# for PDF output on Read the Docs
2025-03-12 17:03:17 -04:00
project = "ROCm Data Center tool"
2023-11-23 11:29:04 -07:00
author = "Advanced Micro Devices, Inc."
2025-03-12 17:03:17 -04:00
copyright = "Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved."
2023-11-23 11:29:04 -07:00
2025-08-05 17:07:55 +05:30
with open('../CMakeLists.txt', encoding='utf-8') as f:
match = re.search(r'.*\bget_version_from_tag\(\"([0-9.]+)\"', f.read())
if not match:
raise ValueError("VERSION not found!")
version_number = match[1]
2025-03-12 17:03:17 -04:00
html_theme = "rocm_docs_theme"
html_theme_options = {"flavor": "rocm"}
2025-08-05 17:07:55 +05:30
html_title = f"RDC {version_number} documentation"
2023-11-23 11:29:04 -07:00
external_toc_path = "./sphinx/_toc.yml"
external_projects_current_project = "rdc"
2025-03-12 17:03:17 -04:00
extensions = ["rocm_docs", "rocm_docs.doxygen"]
2023-11-23 11:29:04 -07:00
2025-03-12 17:03:17 -04:00
doxygen_root = "doxygen"
doxysphinx_enabled = True
doxygen_project = {
"name": "ROCm Data Center Tool API reference",
"path": "doxygen/xml",
}