Files
ROCm/docs/contribute/contributing.md
ac2014c8b8 updated the contributing doc for the rock (#777)
* updated the contributing doc for the rock

* making the linter happy

* updated based on review feedback

* removing a whitespace for liting purposes

* small change

* Update docs/contribute/contributing.md

Co-authored-by: anisha-amd <[email protected]>

* Update docs/contribute/contributing.md

Co-authored-by: anisha-amd <[email protected]>

---------

Co-authored-by: anisha-amd <[email protected]>
2026-05-25 11:48:22 -04:00

3.7 KiB

<head> </head>

Contributing to ROCm documentation

ROCm documentation is open source and available on GitHub. You can contribute to ROCm documentation by cloning the appropriate repository, making your changes, and opening a pull request.

To provide feedback on the ROCm documentation without contributing to it, see [Providing feedback about the ROCm documentation](./feedback.md).

The documentation for ROCm and for all ROCm components is under their respective docs folders. The docs folders for all components across ROCm have the same structure:

Sub-folder name Documentation type
install Installation instructions, build instructions, and prerequisites
conceptual Important concepts
how-to How to implement specific use cases
tutorials Tutorials
reference API references and other reference resources
sphinx _toc.yaml.in file

ROCm stack documentation differs from this structure.

Most documentation topics are written in reStructuredText (rst), with some topics written in Markdown. Only use reStructuredText when adding new topics. Only use Markdown if the topic you are editing is already in Markdown.

To edit or add to the documentation, first clone the appropriate repository, ensuring that you follow the repository recommendations as outlined in their respective README files:

Module Repository
ROCm stack https://github.com/ROCm/ROCm
ROCm libraries https://github.com/ROCm/rocm-libraries
ROCm systems projects https://github.com/ROCm/rocm-systems
Individual components in the ROCm libraries and the ROCm systems projects repositories are located under the `projects` folder. Some components have their own individual repositories. Each component has a link to its GitHub location from its documentation.

Cut a local branch from the develop branch of the repository and make your changes. Your changes must adhere to the Google developer documentation style guide. If you're adding a topic, provide a link to it from the index.rst and _toc.yaml.in files.

Build the documentation locally to verify your changes.

If you're making changes to the Doxygen comments within the source code, delete the `docs/doxygen/xml` and `docs/doxygen/html` folders between each build.

From within the docs directory, run:

python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html

The output will be saved to the docs/_build folder. Open docs/_build/html/index.html to view the documentation.

If your build returns an error due to missing packages, run 

`pip3 install -r sphinx/requirements.txt` 

This command only needs to be run once.

Once you've verified your changes, push your branch and create a pull request. Your pull request will be reviewed by a member of the ROCm documentation team.

For information about how to clone a repository, or how to create and push a local branch, see the GitHub documentation.

For information about ROCm build tools, see Documentation toolchain.

By creating a pull request (PR), you agree to allow your contribution to be licensed under the terms of the
LICENSE.txt file in the corresponding repository. Different repositories can use different licenses.