Skip to content

Commit 94096c7

Browse files
authored
Merge pull request #50 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 3fac24f + a09c89f commit 94096c7

File tree

1 file changed

+24
-41
lines changed

1 file changed

+24
-41
lines changed

README.rst

+24-41
Original file line numberDiff line numberDiff line change
@@ -28,61 +28,44 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2828
This is easily achieved by downloading
2929
`the Adafruit library and driver bundle <https://circuitpython.org/libraries>`_.
3030

31-
Usage Example
32-
=============
33-
34-
See the examples in the `examples/` folder for usage.
35-
36-
Contributing
37-
============
38-
39-
Contributions are welcome! Please read our `Code of Conduct
40-
<https://github.com/adafruit/Adafruit_CircuitPython_SimpleIO/blob/master/CODE_OF_CONDUCT.md>`_
41-
before contributing to help this project stay welcoming.
42-
43-
Building locally
44-
================
45-
46-
To build this library locally you'll need to install the
47-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
48-
49-
.. code-block:: shell
50-
51-
python3 -m venv .env
52-
source .env/bin/activate
53-
pip install circuitpython-build-tools
31+
Installing from PyPI
32+
====================
5433

55-
Once installed, make sure you are in the virtual environment:
34+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
35+
PyPI <https://pypi.org/project/adafruit-circuitpython-simpleio/>`_. To install for current user:
5636

5737
.. code-block:: shell
5838
59-
source .env/bin/activate
39+
pip3 install adafruit-circuitpython-simpleio
6040
61-
Then run the build:
41+
To install system-wide (this may be required in some cases):
6242

6343
.. code-block:: shell
6444
65-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-simpleio --library_location .
66-
67-
Sphinx documentation
68-
-----------------------
69-
70-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
71-
install dependencies (feel free to reuse the virtual environment from above):
45+
sudo pip3 install adafruit-circuitpython-simpleio
46+
47+
To install in a virtual environment in your current project:
7248

7349
.. code-block:: shell
7450
51+
mkdir project-name && cd project-name
7552
python3 -m venv .env
7653
source .env/bin/activate
77-
pip install Sphinx sphinx-rtd-theme
54+
pip3 install adafruit-circuitpython-simpleio
55+
56+
Usage Example
57+
=============
58+
59+
See the examples in the `examples/` folder for usage.
7860

79-
Now, once you have the virtual environment activated:
61+
Contributing
62+
============
8063

81-
.. code-block:: shell
64+
Contributions are welcome! Please read our `Code of Conduct
65+
<https://github.com/adafruit/Adafruit_CircuitPython_SimpleIO/blob/master/CODE_OF_CONDUCT.md>`_
66+
before contributing to help this project stay welcoming.
8267

83-
cd docs
84-
sphinx-build -E -W -b html . _build/html
68+
Documentation
69+
=============
8570

86-
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
87-
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
88-
locally verify it will pass.
71+
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)