Contribute to our docs#
The documentation for cloud-init is hosted in GitHub and rendered on Read the Docs. It is mostly written in reStructuredText.
The process for contributing to the docs is largely the same as for code, except that for cosmetic changes to the documentation (spelling, grammar, etc) you can also use the GitHub web interface to submit changes as quick PRs.
Previewing the docs#
The documentation for submitted/active PRs is automatically built by Read the Docs and served from the PR’s “conversation” tab as an automatic check.
However, while you are working on docs for a feature you are adding, you will most likely want to build the docs locally. There is a Makefile target to build the documentation for you:
$ tox -e doc
This will do two things:
Build the documentation using Sphinx.
Run doc8 against the documentation source code.
Once built, the HTML files will be viewable in doc/rtd_html. Use your web browser to open index.html to view and navigate the site.
How are the docs structured?#
We also have a Documentation style guide that will help you if you need to edit or write any content.
In your first PR#
Please include this in the same PR alongside your first contribution. Do not create a separate PR to add your name to the CLA signatures.
If you need some help with your contribution, you can contact us on our IRC channel. If you have already submitted a work-in-progress PR, you can also ask for guidance from our technical author by tagging s-makin as a reviewer.