Metadata-Version: 2.1
Name: rocm-docs-core
Version: 1.7.1
Summary: Core utilities for all ROCm documentation on RTD
Author-email: Lauren Wrubleski <Lauren.Wrubleski@amd.com>
Project-URL: repository, https://github.com/ROCm/rocm-docs-core
Project-URL: documentation, https://rocm.docs.amd.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: GitPython>=3.1.30
Requires-Dist: PyGithub>=1.58.1
Requires-Dist: sphinx>=5.3.0
Requires-Dist: breathe>=4.34.0
Requires-Dist: myst-parser>=1.0.0
Requires-Dist: pydata-sphinx-theme>=0.13.3
Requires-Dist: sphinx-book-theme>=1.0.1
Requires-Dist: sphinx-copybutton>=0.5.1
Requires-Dist: sphinx-design>=0.3.0
Requires-Dist: sphinx_external_toc>=0.3.1
Requires-Dist: sphinx-notfound-page>=0.8.3
Requires-Dist: pyyaml>=6.0
Requires-Dist: fastjsonschema>=2.16
Provides-Extra: api-reference
Requires-Dist: doxysphinx>=3.3.2; extra == "api-reference"
Provides-Extra: development
Requires-Dist: black>=22.1; extra == "development"
Requires-Dist: build>=0.10.0; extra == "development"
Requires-Dist: commitizen>=2.42; extra == "development"
Requires-Dist: isort>=5.12.0; extra == "development"
Requires-Dist: mypy>=1.3.0; extra == "development"
Requires-Dist: pip-tools>=6.13.0; extra == "development"
Requires-Dist: pre-commit>=3.3.2; extra == "development"
Requires-Dist: pytest>=7.4.2; extra == "development"
Requires-Dist: ruff>=0.0.269; extra == "development"
Requires-Dist: sphinxcontrib.doxylink>=1.12.2; extra == "development"

# ROCm Documentation Core Utilities

ROCm Docs Core is also distributed as a pip package available from PyPi as
[rocm-docs-core](https://pypi.org/project/rocm-docs-core/)

## 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.

## Usage

### Setup

- Install this repository as a Python package using pip
  - From PyPi: `pip install rocm-docs-core`
  - From GitHub: `pip install git+https://github.com/ROCm/rocm-docs-core.git`.

- Set `rocm_docs_theme` as the HTML theme
- Add `rocm_docs` as an extension
- Optionally, add `rocm_docs.doxygen` and `sphinxcontrib.doxylink` as extensions

For an example, see the [test conf.py](./tests/sites/doxygen/extension/conf.py)

### Legacy Setup

- From the `rocm_docs` package import the function `setup_rocm_docs` into `conf.py` for the ReadTheDocs project.
- Call exactly the following, replacing `<PROJECT NAME HERE>` with the name of the project.

For an example, see the [test legacy conf.py](./tests/sites/doxygen/legacy/conf.py)

## Documentation

The `rocm-docs-core` documentation is viewable at [https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/](https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/)

### User Guide

The User Guide describes how users can make use of functionality in `rocm-docs-core`

It is viewable at [https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/user_guide/user_guide.html](https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/user_guide/user_guide.html)

### Developer Guide

The Developer Guide provides additional information on the processes in toolchains for `rocm-docs-core`

It is viewable at [https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/developer_guide/developer_guide.html](https://rocm.docs.amd.com/projects/rocm-docs-core/en/latest/developer_guide/developer_guide.html)

### Build Documentation Locally

To build the `rocm-docs-core` documentation locally, run the commands below:

```bash
pip install -r requirements.txt
cd docs
python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
```
