blob: 17beb08f2a5249e2f30bfb5b9d5ac93d025ec335 [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
Joey Armstrong73409992022-12-14 20:21:56 -050035Interactive editing: real time updates
36""""""""""""""""""""""""""""""""""""""
37
38Another useful convenience makefile target to try is the reload target.
39"make reload" will invoke the sphinx-reload program, spawn a web page for
40viewing html documentation pages followed by periodic regeneration of page
41content.
42
43.. sourcecode:: shell
44
45 $ git clone ssh://gerrit.opencord.org:29418/voltha-docs
46
47 $ cd voltha-docs
48 $ make reload
49 $ vi *.rst
50
51
Joey Armstrongbbd71d62022-10-12 11:51:35 -040052make lint (syntax checking)
53"""""""""""""""""""""""""""
54- `make help (pending) <https://gerrit.opencord.org/c/voltha-system-tests/+/33306>`
55
56.. sourcecode:: shell
57
58 $ make help
59 $ USAGE: make target [, target(s)]
60 $
61 $ [LINT]
62 $ lint-json Syntax check json sources
63 $ lint-python Syntax check using pylint and flake8
64 $ lint-robot Syntax check robot sources using rflint
65 $ lint-yaml Syntax check yaml source using yamllint
66 $
67 $ make lint
68
69
70make html
71"""""""""
72- Install python packages: sphinx, pylint, flake8
73- Invoke sphinx to generate documentation.
74
75
76See Also
77""""""""
78- `RST Markup Documentation <https://rstdoc.readthedocs.io/en/latest>`
79- `Sphinx Documentation <https://www.sphinx-doc.org/en/master>`
80- `RST Markup Specification <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html>`