summaryrefslogtreecommitdiffstats
path: root/documentation/README
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/README')
-rw-r--r--documentation/README90
1 files changed, 62 insertions, 28 deletions
diff --git a/documentation/README b/documentation/README
index 8035418cac..56eac7ca19 100644
--- a/documentation/README
+++ b/documentation/README
@@ -108,32 +108,9 @@ generated with DocBook.
108How to build the Yocto Project documentation 108How to build the Yocto Project documentation
109============================================ 109============================================
110 110
111Sphinx is written in Python. While it might work with Python2, for 111To build the documentation, you need Sphinx and a few other packages,
112obvious reasons, we will only support building the Yocto Project 112which depend on your host GNU/Linux distribution. Such packages are listed on
113documentation with Python3. 113https://docs.yoctoproject.org/dev/ref-manual/system-requirements.html#required-packages-for-the-build-host
114
115Sphinx might be available in your Linux distro packages repositories,
116however it is not recommended to use distro packages, as they might be
117old versions, especially if you are using an LTS version of your
118distro. The recommended method to install the latest versions of Sphinx
119and of its required dependencies is to use the Python Package Index (pip).
120
121To install all required packages run:
122
123 $ pip3 install sphinx sphinx_rtd_theme pyyaml
124
125To make sure you always have the latest versions of such packages, you
126should regularly run the same command with an added "--upgrade" option:
127
128 $ pip3 install --upgrade sphinx sphinx_rtd_theme pyyaml
129
130Also install the "inkscape" package from your distribution.
131Inkscape is need to convert SVG graphics to PNG (for EPUB
132export) and to PDF (for PDF export).
133
134Additionally install "fncychap.sty" TeX font if you want to build PDFs. Debian
135and Ubuntu have it in "texlive-latex-extra" package while RedHat distributions
136and OpenSUSE have it in "texlive-fncychap" package for example.
137 114
138To build the documentation locally, run: 115To build the documentation locally, run:
139 116
@@ -165,6 +142,36 @@ To run Vale:
165 142
166 $ make stylecheck 143 $ make stylecheck
167 144
145Style checking the whole documentation might take some time and generate a
146lot of warnings/errors, thus one can run Vale on a subset of files or
147directories:
148
149 $ make stylecheck VALEDOCS=<file>
150 $ make stylecheck VALEDOCS="<file1> <file2>"
151 $ make stylecheck VALEDOCS=<dir>
152
153Lint checking the Yocto Project documentation
154=============================================
155
156To fix errors which are not reported by Sphinx itself,
157the project uses sphinx-lint (https://github.com/sphinx-contrib/sphinx-lint).
158
159To install sphinx-lint:
160
161 $ pip install sphinx-lint
162
163To run sphinx-lint:
164
165 $ make sphinx-lint
166
167Lint checking the whole documentation might take some time and generate a
168lot of warnings/errors, thus one can run sphinx-lint on a subset of files
169or directories:
170
171 $ make sphinx-lint SPHINXLINTDOCS=<file>
172 $ make sphinx-lint SPHINXLINTDOCS="<file1> <file2>"
173 $ make sphinx-lint SPHINXLINTDOCS=<dir>
174
168Sphinx theme and CSS customization 175Sphinx theme and CSS customization
169================================== 176==================================
170 177
@@ -307,6 +314,16 @@ See https://stackoverflow.com/questions/27420317/restructured-text-rst-http-link
307Anchor (<#link>) links are forbidden as they are not checked by Sphinx during 314Anchor (<#link>) links are forbidden as they are not checked by Sphinx during
308the build and may be broken without knowing about it. 315the build and may be broken without knowing about it.
309 316
317It is also possible to refer to another document within yocto-docs with the
318:doc: directive (c.f.
319https://www.sphinx-doc.org/en/master/usage/referencing.html#role-doc), e.g.:
320
321 For more information, read :doc:`/bsp-guide/index`.
322
323Note that only "absolute" paths (starting with a '/') are allowed. The root
324directory of that path is documentation/, that is, :doc:`/bsp-guide/index`
325points at documentation/bsp-guide/index.rst.
326
310References 327References
311========== 328==========
312 329
@@ -399,5 +416,22 @@ both the Yocto Project and BitBake manuals:
399Submitting documentation changes 416Submitting documentation changes
400================================ 417================================
401 418
402Please see the top level README file in this repository for details of where 419Please refer to our contributor guide here: https://docs.yoctoproject.org/contributor-guide/
403to send patches. 420for full details on how to submit changes.
421
422As a quick guide, patches should be sent to docs@lists.yoctoproject.org
423The git command to do that would be:
424
425 git send-email -M -1 --to docs@lists.yoctoproject.org
426
427The 'To' header can be set as default for this repository:
428
429 git config sendemail.to docs@lists.yoctoproject.org
430
431Now you can just do 'git send-email origin/master..' to send all local patches.
432
433Read the other sections in this document and documentation/standards.md for
434rules to follow when contributing to the documentation.
435
436Git repository: https://git.yoctoproject.org/yocto-docs
437Mailing list: docs@lists.yoctoproject.org