Skip to content

Commit 25a3bb8

Browse files
add documentation file, outsourced from usage
1 parent 2918bab commit 25a3bb8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/DOCUMENTATION.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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/

0 commit comments

Comments
 (0)