| 1 |
How to add or update docs |
| 2 |
========================= |
| 3 |
|
| 4 |
Documentation files live in ``/doc`` directory in the source tree, so |
| 5 |
adding or updating documentation follows the same process as changing |
| 6 |
the code. If you've never done it before, start by carefully |
| 7 |
reading the :doc:`/dev_guide/development_guide`. |
| 8 |
|
| 9 |
To add or update a documentation page, you need to create or modify |
| 10 |
an ``.rst`` file in the ``/doc`` directory and send a patch for |
| 11 |
review. |
| 12 |
|
| 13 |
People who are registered in MAINTAINERS file for doc/ directory will |
| 14 |
be automatically added to the patch as reviewers. However, you are |
| 15 |
very welcome to add more reviewers who know the subject. In fact, it |
| 16 |
is always a good idea to add someone who has knowledge of the specific |
| 17 |
area you are documenting. |
| 18 |
|
| 19 |
We are using Sphinx doc engine for documentation (see |
| 20 |
https://www.sphinx-doc.org/) and reStructured Text format for content. |
| 21 |
reStructuredText Primer page has more details |
| 22 |
https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#restructuredtext-primer |
| 23 |
|
| 24 |
Brand new page needs to be added to the appropriate ``index.rst`` file |
| 25 |
under ``/doc`` directory (that could be a root index file or nested one). |
| 26 |
|
| 27 |
To test your changes, build flashrom with documentation and open |
| 28 |
generated ``.html`` file in the browser. Generated ``.html`` files are |
| 29 |
in meson ``builddir/doc/html`` directory. |
| 30 |
|
| 31 |
Misc questions |
| 32 |
-------------- |
| 33 |
|
| 34 |
* We use CC-BY-4.0 license for documentation. |
| 35 |
* Writing style can be formal or informal, it's mostly up to you, the |
| 36 |
important thing is to make the text clear, readable and unambiguous. |
| 37 |
* You can insert images if this really helps the readers to understand the |
| 38 |
instructions. Please try to target size 1024x768 and within 128Kb whenever possible. |
| 39 |
* Documentation should be relevant to either flashrom usage or flashrom |
| 40 |
development |