Skip to content

Commit 87d65ca

Browse files
authored
Merge pull request #28 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents a00375b + 6eecbed commit 87d65ca

File tree

1 file changed

+25
-45
lines changed

1 file changed

+25
-45
lines changed

README.rst

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -27,66 +27,46 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2727
This is easily achieved by downloading
2828
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
2929

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+
====================
5432

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:
6035

6136
.. code-block:: shell
6237
63-
source .env/bin/activate
38+
pip3 install adafruit-circuitpython-adafruitio
6439
65-
Then run the build:
40+
To install system-wide (this may be required in some cases):
6641

6742
.. code-block:: shell
6843
69-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-adafruit_io --library_location .
70-
71-
Sphinx documentation
72-
--------------------
44+
sudo pip3 install adafruit-circuitpython-adafruitio
7345
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:
7647

7748
.. code-block:: shell
7849
50+
mkdir project-name && cd project-name
7951
python3 -m venv .env
8052
source .env/bin/activate
81-
pip install Sphinx sphinx-rtd-theme
53+
pip3 install adafruit-circuitpython-adafruitio
54+
55+
Usage Example
56+
=============
8257

83-
Now, once you have the virtual environment activated:
58+
Usage examples for the Adafruit IO HTTP API are within the examples/http folder.
8459

85-
.. code-block:: shell
60+
Usage examples for the Adafruit IO MQTT API are within the examples/mqtt folder.
8661

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+
=============
8971

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

Comments
 (0)