@@ -27,66 +27,46 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
27
27
This is easily achieved by downloading
28
28
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
29
29
30
- Usage Example
31
- =============
32
-
33
- Usage examples for the Adafruit IO HTTP API are within the examples/http folder.
34
-
35
- Usage examples for the Adafruit IO MQTT API are within the examples/mqtt folder.
36
-
37
- Contributing
38
- ============
39
-
40
- Contributions are welcome! Please read our `Code of Conduct
41
- <https://github.com/adafruit/Adafruit_CircuitPython_Adafruit_IO/blob/master/CODE_OF_CONDUCT.md> `_
42
- before contributing to help this project stay welcoming.
43
-
44
- Building locally
45
- ================
46
-
47
- Zip release files
48
- -----------------
49
-
50
- To build this library locally you'll need to install the
51
- `circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools >`_ package.
52
-
53
- .. code-block :: shell
30
+ Installing from PyPI
31
+ ====================
54
32
55
- python3 -m venv .env
56
- source .env/bin/activate
57
- pip install circuitpython-build-tools
58
-
59
- Once installed, make sure you are in the virtual environment:
33
+ On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
34
+ PyPI <https://pypi.org/project/adafruit-circuitpython-adafruitio/> `_. To install for current user:
60
35
61
36
.. code-block :: shell
62
37
63
- source .env/bin/activate
38
+ pip3 install adafruit-circuitpython-adafruitio
64
39
65
- Then run the build :
40
+ To install system-wide (this may be required in some cases) :
66
41
67
42
.. code-block :: shell
68
43
69
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-adafruit_io --library_location .
70
-
71
- Sphinx documentation
72
- --------------------
44
+ sudo pip3 install adafruit-circuitpython-adafruitio
73
45
74
- Sphinx is used to build the documentation based on rST files and comments in the code. First,
75
- install dependencies (feel free to reuse the virtual environment from above):
46
+ To install in a virtual environment in your current project:
76
47
77
48
.. code-block :: shell
78
49
50
+ mkdir project-name && cd project-name
79
51
python3 -m venv .env
80
52
source .env/bin/activate
81
- pip install Sphinx sphinx-rtd-theme
53
+ pip3 install adafruit-circuitpython-adafruitio
54
+
55
+ Usage Example
56
+ =============
82
57
83
- Now, once you have the virtual environment activated:
58
+ Usage examples for the Adafruit IO HTTP API are within the examples/http folder.
84
59
85
- .. code-block :: shell
60
+ Usage examples for the Adafruit IO MQTT API are within the examples/mqtt folder.
86
61
87
- cd docs
88
- sphinx-build -E -W -b html . _build/html
62
+ Contributing
63
+ ============
64
+
65
+ Contributions are welcome! Please read our `Code of Conduct
66
+ <https://github.com/adafruit/Adafruit_CircuitPython_Adafruit_IO/blob/master/CODE_OF_CONDUCT.md> `_
67
+ before contributing to help this project stay welcoming.
68
+
69
+ Documentation
70
+ =============
89
71
90
- This will output the documentation to ``docs/_build/html ``. Open the index.html in your browser to
91
- view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
92
- locally verify it will pass.
72
+ For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1 >`_.
0 commit comments