1
1
.. SPDX-FileCopyrightText: 2021 Open Networking Foundation <[email protected] >
2
2
SPDX-License-Identifier: Apache-2.0
3
3
4
+ .. |pub-badge | image :: https://github.com/opennetworkinglab/aether-docs/actions/workflows/publish-docs.yml/badge.svg
5
+
6
+ |pub-badge |
7
+
4
8
Aether Docs
5
9
===========
6
10
7
- This site contains Sphinx format documentation for the Aether project.
11
+ This repo contains Sphinx-formated documentation for the Aether project.
8
12
9
13
Writing Documentation
10
14
---------------------
11
15
12
- Docs are generated using `Sphinx <https://www.sphinx-doc.org/en/master/usage/ >`_ using the
16
+ Docs are generated using `Sphinx <https://www.sphinx-doc.org/en/master/usage/ >`_ with
13
17
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/ >`_ syntax.
14
18
A cheat sheet for reStructuredText can be found `here <https://github.com/ralsina/rst-cheatsheet/blob/master/rst-cheatsheet.rst >`_.
15
19
16
20
Building Documentation
17
21
--------------------------
18
22
19
- The documentation build process is stored in a ``Makefile ``. Building docs
20
- requires Python to be installed, and most steps will create a virtualenv
21
- (usually ``venv-docs ``) which contains the required tools. You may also need
22
- to install the ``enchant `` C library using your system's package manager for
23
- the spelling checker to function properly.
23
+ The documentation build process is stored in a ``Makefile ``. Building
24
+ docs requires Python to be installed, and most steps create a
25
+ virtualenv (usually ``venv-docs ``) which contains the required tools.
26
+ You may also need to install the ``enchant `` C library using your
27
+ system's package manager for the spelling checker to function
28
+ properly.
24
29
25
30
Run ``make html `` to generate html documentation in ``_build/html ``.
26
31
27
32
There is also a test target, ``make test ``, which will run all the following
28
- checks. This is what happens to validate a patchset validation .
33
+ checks. This is what happens to validate a patchset.
29
34
30
35
* ``make lint ``: Check the formatting of documentation using `doc8
31
36
<https://github.com/PyCQA/doc8> `_.
32
37
33
- * ``make license ``: Verifies licensing is correct.
34
-
35
38
* ``make spelling ``: Checks spelling on all documentation. If there are
36
39
additional words that are correctly spelled but not in the dictionary
37
40
(acronyms, nouns, etc.) please add them to the ``dict.txt `` file, which
@@ -45,13 +48,13 @@ checks. This is what happens to validate a patchset validation.
45
48
Versioning Documentation
46
49
----------------------------------
47
50
48
- To change the version shown on the built site, change the contents of the
51
+ To change the version shown on the build site, change the contents of the
49
52
``VERSION `` file to be released SemVer version. This will create a tag on the
50
53
repo.
51
54
52
- Then when ``make multiversion `` target can be used which will build all
53
- versions tagged or branched on the remote to ``_build/multiversion ``. This will
54
- use a fork of `sphinx-multiversion
55
+ The ``make multiversion `` target can then be used to build all
56
+ versions tagged or branched on the remote to ``_build/multiversion ``. This
57
+ uses a fork of `sphinx-multiversion
55
58
<https://github.com/Holzhaus/sphinx-multiversion> `_ to build multiple versions
56
59
and a menu on the site.
57
60
0 commit comments