forked from sfera-labs/exo-sense-py-modbus
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from brainelectronics/bugfix/update-outdated-d…
…ocumentation Update outdated documentation
- Loading branch information
Showing
19 changed files
with
928 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Build image | ||
# $ docker build -t micropython-test-manually -f Dockerfile.tests_manually . | ||
# if a unittest fails, it will exit with non-zero code | ||
# | ||
# Run image, only possible if all tests passed | ||
# $ docker run -it --rm --name micropython-test-manually micropython-test-manually | ||
|
||
FROM micropython/unix:v1.18 | ||
|
||
COPY ./ /home | ||
# keep examples and tests registers JSON file easily in sync | ||
COPY registers/example.json /home/tests/test-registers.json | ||
COPY umodbus /root/.micropython/lib/umodbus | ||
COPY mpy_unittest.py /root/.micropython/lib/mpy_unittest.py | ||
|
||
RUN micropython-dev -m upip install micropython-ulogging | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# CONTRIBUTING | ||
# Contributing | ||
|
||
Guideline to contribute to this package | ||
|
||
--------------- | ||
|
||
## TBD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Documentation | ||
|
||
Documentation is generated by using Sphinx and published on RTD | ||
|
||
--------------- | ||
|
||
## Documentation | ||
|
||
Documentation is automatically created on each merge to the development | ||
branch, as well as with each pull request and available | ||
[📚 here at Read the Docs][ref-rtd-micropython-modbus] | ||
|
||
### Install required packages | ||
|
||
```bash | ||
# create and activate virtual environment | ||
python3 -m venv .venv | ||
source .venv/bin/activate | ||
|
||
# install and upgrade required packages | ||
pip install -U -r docs/requirements.txt | ||
``` | ||
|
||
### Create documentation | ||
|
||
Some usefull checks have been disabled in the `docs/conf.py` file. Please | ||
check the documentation build output locally before opening a PR. | ||
|
||
```bash | ||
# perform link checks | ||
sphinx-build docs/ docs/build/linkcheck -d docs/build/docs_doctree/ --color -blinkcheck -j auto -W | ||
|
||
# create documentation | ||
sphinx-build docs/ docs/build/html/ -d docs/build/docs_doctree/ --color -bhtml -j auto -W | ||
``` | ||
|
||
The created documentation can be found at [`docs/build/html`](docs/build/html). | ||
|
||
<!-- Links --> | ||
[ref-rtd-micropython-modbus]: https://micropython-modbus.readthedocs.io/en/latest/ |
Oops, something went wrong.