ae5f8714f4
* Reorganize documenation based on rocm-docs-core * Move build, install and contributing guides to docs * Bump readthedocs config to Ubuntu 20.04 * Add more direct links to the API modules * Pin rocm-docs-core version, add dependabot - Use the pip package to have rocm-docs-core pinned - Add dependabot config to update pinned packages (including rocm-docs-core) * fixup! Add more direct links to the API modules ---------
27 líneas
912 B
Python
27 líneas
912 B
Python
# 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
|
|
|
|
from rocm_docs import ROCmDocs
|
|
from typing import Any, Dict, List
|
|
|
|
docs_core = ROCmDocs("HIP Documentation")
|
|
docs_core.run_doxygen()
|
|
docs_core.enable_api_reference()
|
|
docs_core.setup()
|
|
|
|
for sphinx_var in ROCmDocs.SPHINX_VARS:
|
|
globals()[sphinx_var] = getattr(docs_core, sphinx_var)
|
|
|
|
# rocm-docs-core might or might not have changed these yet (depending on version),
|
|
# and we don't want to wipe their settings if they did
|
|
if not "html_theme_options" in globals():
|
|
html_theme_options: Dict[str, Any] = {}
|
|
if not "exclude_patterns" in globals():
|
|
exclude_patterns: List[str] = []
|
|
|
|
html_theme_options["show_navbar_depth"] = 2
|
|
exclude_patterns.append(".doxygen/mainpage.md")
|