blob: b63c44f1559e1a5fe77c4cee10237d3f717856af [file] [log] [blame]
Joey Armstrong2cab6b42022-09-08 12:59:42 -04001Modify docs.voltha.org
2======================
3
Joey Armstrongbbd71d62022-10-12 11:51:35 -04004Docs for VOLTHA can be found on the website or via web search
5"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Joey Armstrong2cab6b42022-09-08 12:59:42 -04006- https://docs.voltha.org
7- https://docs.voltha.org/master/index.html
8
9 - Note: Google search may return an older doc version for topics.
10 - Navigate to /master/index.html and use the builtin searchbox to always view current documentation for VOLTHA.
11
Joey Armstrongbbd71d62022-10-12 11:51:35 -040012Browse repository content
13"""""""""""""""""""""""""
14- :vol-ger:`voltha-docs`
15- :vol-git:`voltha-docs`
Joey Armstrong2cab6b42022-09-08 12:59:42 -040016
Joey Armstrong2cab6b42022-09-08 12:59:42 -040017
Joey Armstrongbbd71d62022-10-12 11:51:35 -040018Checkout, modify and test
19"""""""""""""""""""""""""
Joey Armstrong2cab6b42022-09-08 12:59:42 -040020
21.. sourcecode:: shell
22
23 $ git clone ssh://gerrit.opencord.org:29418/voltha-docs
24
25 $ cd voltha-docs
26 $ vi *.rst
27 $ make html # doc generation
Joey Armstrongbbd71d62022-10-12 11:51:35 -040028 $ make lint # syntax checking
Joey Armstrong2cab6b42022-09-08 12:59:42 -040029 $ make test # syntax check *.rst files
30
31 $ "$BROWSER" _build/html/index.html # BROWSER='firefox'
Joey Armstrongbbd71d62022-10-12 11:51:35 -040032
33
34make lint (syntax checking)
35"""""""""""""""""""""""""""
36- `make help (pending) <https://gerrit.opencord.org/c/voltha-system-tests/+/33306>`
37
38.. sourcecode:: shell
39
40 $ make help
41 $ USAGE: make target [, target(s)]
42 $
43 $ [LINT]
44 $ lint-json Syntax check json sources
45 $ lint-python Syntax check using pylint and flake8
46 $ lint-robot Syntax check robot sources using rflint
47 $ lint-yaml Syntax check yaml source using yamllint
48 $
49 $ make lint
50
51
52make html
53"""""""""
54- Install python packages: sphinx, pylint, flake8
55- Invoke sphinx to generate documentation.
56
57
58See Also
59""""""""
60- `RST Markup Documentation <https://rstdoc.readthedocs.io/en/latest>`
61- `Sphinx Documentation <https://www.sphinx-doc.org/en/master>`
62- `RST Markup Specification <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html>`