Contributing to the ROCm documentation#
2024-10-23
6 min read time
The ROCm documentation, like all of ROCm, is open source and available on GitHub. You can contribute to the ROCm documentation by forking the appropriate repository, making your changes, and opening a pull request.
To provide feedback on the ROCm documentation, including submitting an issue or suggesting a feature, see Providing feedback about the ROCm documentation.
The ROCm repositories#
The repositories for ROCm and all ROCm components are available on GitHub.
Module |
Documentation location |
---|---|
ROCm framework |
|
ROCm installation for Linux |
|
ROCm HIP SDK installation for Windows |
Individual components have their own repositories with their own documentation in their own docs
folders.
The sub-folders within the docs
folders across ROCm are typically structured as follows:
Sub-folder name |
Documentation type |
---|---|
|
Installation instructions, build instructions, and prerequisites |
|
Important concepts |
|
How to implement specific use cases |
|
Tutorials |
|
API references and other reference resources |
Editing and adding to the documentation#
The ROCm documentation is written in reStructuredText (rst) and Github-flavoured Markdown, and follows the Google developer documentation style guide. reStructuredText is preferred when adding content to the documentation.
To edit or add to the documentation:
Fork the repository you want to add to or edit.
Clone your fork locally.
Create a new local branch cut from the
develop
branch of the repository.Make your changes to the documentation.
Optionally, build the documentation locally before creating a pull request by running the following commands from within the
docs
folder:pip3 install -r sphinx/requirements.txt # You only need to run this command once python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
The output files will be located in the
docs/_build
folder. Opendocs/_build/html/index.html
to view the documentation.For more information on ROCm build tools, see Documentation toolchain.
Push your changes. A GitHub link will be returned in the output of the
git push
command. Open this link in a browser to create the pull request.The documentation is built as part of the checks on pull request, along with spell checking and linting. Scroll to the bottom of your pull request to view all the checks.
Verify that the linking and spell checking have passed, and that the documentation was built successfully. New words or acronyms can be added to the wordlist file as needed.
The Read The Docs build of your pull request can be accessed by clicking on the Details link next to the Read The Docs build check. Verify that your changes are in the build and look as expected.
Your pull request will be reviewed by a member of the ROCm documentation team.
See the GitHub documentation for information on how to fork and clone a repository, and how to create and push a local branch.
Important
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.