Core utilities for all ROCm documentation on RTD
Project description
ROCm Documentation Core Utilities
Purpose
This repository is comprised of utilities, styling, scripts, and additional HTML content that is common to all ROCm projects' documentation. This greatly aids in maintaining the documentation, as any change to the appearance only needs to be modified in one location.
Common elements covered
- Javascript tweaks for tables with long variable names, as Sphinx' default rendering is problematic.
- HTML for a header and footer for the documentation page.
- Common Sphinx configuration options for ROCm documentation processes.
Use
- Install this repository as a Python package using pip, for example
pip install git+https://github.com/RadeonOpenCompute/rocm-docs-core.git
. - From the
rocm_docs
package import the functionsetup_rocm_docs
intoconf.py
for the ReadTheDocs project. - Call exactly the following, replacing
<PROJECT NAME HERE>
with the name of the project.
from rocm_docs import ROCmDocs
docs_core = ROCmDocs(<PROJECT NAME HERE>)
docs_core.run_doxygen() # Only if Doxygen is required for this project
docs_core.setup()
for sphinx_var in ROCmDocs.SPHINX_VARS:
globals()[sphinx_var] = getattr(docs_core, sphinx_var)
Documentation
Build documentation by running the commands below:
pip install -r requirements.txt
cd docs
python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rocm-docs-core-0.13.0.tar.gz
(1.1 MB
view hashes)
Built Distribution
Close
Hashes for rocm_docs_core-0.13.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a66f49866c388d9e06f0e8b5b05d8e6e5e88e871b3fadd9a5dd8da099c93802 |
|
MD5 | e162bfb7072ebca99e3b144e6af592ce |
|
BLAKE2b-256 | 6a75651af6f9991cea85cc02dc055c02edf5684fcb5134169eda5bda82e23ee7 |