blob: 6a3ba66f69a5c5434ea2acd4877bae8262a68dd5 [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
Joey Armstrong36592e32022-11-28 09:00:28 -050030 $ make docs # generate website pages
Joey Armstrong2cab6b42022-09-08 12:59:42 -040031
32 $ "$BROWSER" _build/html/index.html # BROWSER='firefox'
Joey Armstrongbbd71d62022-10-12 11:51:35 -040033
34
35make lint (syntax checking)
36"""""""""""""""""""""""""""
37- `make help (pending) <https://gerrit.opencord.org/c/voltha-system-tests/+/33306>`
38
39.. sourcecode:: shell
40
41 $ make help
42 $ USAGE: make target [, target(s)]
43 $
44 $ [LINT]
45 $ lint-json Syntax check json sources
46 $ lint-python Syntax check using pylint and flake8
47 $ lint-robot Syntax check robot sources using rflint
48 $ lint-yaml Syntax check yaml source using yamllint
49 $
50 $ make lint
51
52
53make html
54"""""""""
55- Install python packages: sphinx, pylint, flake8
56- Invoke sphinx to generate documentation.
57
58
59See Also
60""""""""
61- `RST Markup Documentation <https://rstdoc.readthedocs.io/en/latest>`
62- `Sphinx Documentation <https://www.sphinx-doc.org/en/master>`
63- `RST Markup Specification <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html>`