File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ # Documentation
2+
3+ Documentation is generated by using Sphinx and published on RTD
4+
5+ ---------------
6+
7+ ## Documentation
8+
9+ Documentation is automatically created on each merge to the development
10+ branch, as well as with each pull request and available
11+ [ :books : here at Read the Docs] [ ref-rtd-micropython-modbus ]
12+
13+ ### Install required packages
14+
15+ ``` bash
16+ # create and activate virtual environment
17+ python3 -m venv .venv
18+ source .venv/bin/activate
19+
20+ # install and upgrade required packages
21+ pip install -U -r docs/requirements.txt
22+ ```
23+
24+ ### Create documentation
25+
26+ Some usefull checks have been disabled in the ` docs/conf.py ` file. Please
27+ check the documentation build output locally before opening a PR.
28+
29+ ``` bash
30+ # perform link checks
31+ sphinx-build docs/ docs/build/linkcheck -d docs/build/docs_doctree/ --color -blinkcheck -j auto -W
32+
33+ # create documentation
34+ sphinx-build docs/ docs/build/html/ -d docs/build/docs_doctree/ --color -bhtml -j auto -W
35+ ```
36+
37+ The created documentation can be found at [ ` docs/build/html ` ] ( docs/build/html ) .
38+
39+ <!-- Links -->
40+ [ ref-rtd-micropython-modbus ] : https://micropython-modbus.readthedocs.io/en/latest/
You can’t perform that action at this time.
0 commit comments