Contributions to Autoware's documentation are welcome, and the same principles described in the contribution guidelines should be followed. Small, limited changes can be made by forking this repository and submitting a pull request, but larger changes should be discussed with the community and Autoware maintainers via GitHub Discussion first.
Examples of small changes include:
- Fixing spelling or grammatical mistakes
- Fixing broken links
- Making an addition to an existing, well-defined page, such as the Troubleshooting guide.
Examples of larger changes include:
- Adding new pages with a large amount of detail, such as a tutorial
- Re-organization of the existing documentation structure
- Use standard American English spelling and punctuation.
- Use sentence case for document titles and section headings.
- Use descriptive link text.
- Write short sentences that are easy to understand and translate.
How to preview your modification#
There are two ways to preview your modification on a documentation website.
1. Using GitHub Actions workflow#
Follow the steps below.
- Create a pull request to the repository.
- Add the
deploy-docslabel from the sidebar (See below figure).
- Wait for a couple of minutes, and the
github-actionsbot will notify the URL for the pull request's preview.
2. Running an MkDocs server in your local environment#
Instead of creating a PR, you can use the
mkdocs command to build Autoware's documentation websites on your local computer.
Assuming that you are using Ubuntu OS, run the following to install the required libraries.
python3 -m pip install -U $(curl -fsSL https://raw.githubusercontent.com/autowarefoundation/autoware-github-actions/main/deploy-docs/mkdocs-requirements.txt)
mkdocs serve on your documentation directory.
cd /PATH/TO/YOUR-autoware-documentation mkdocs serve
It will launch the MkDocs server. Access http://127.0.0.1:8000/ to see the preview of the website.