Skip to content

Commit e302783

Browse files
authored
Merge pull request #8 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents c145c47 + 25d9a19 commit e302783

File tree

1 file changed

+23
-43
lines changed

1 file changed

+23
-43
lines changed

README.rst

Lines changed: 23 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -28,64 +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://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3030

31-
Usage Example
32-
=============
31+
Installing from PyPI
32+
====================
3333

34-
see examples/neotrellis_simpletest.py for usage example
35-
36-
Contributing
37-
============
38-
39-
Contributions are welcome! Please read our `Code of Conduct
40-
<https://github.com/adafruit/Adafruit_CircuitPython_NeoTrellis/blob/master/CODE_OF_CONDUCT.md>`_
41-
before contributing to help this project stay welcoming.
42-
43-
Building locally
44-
================
45-
46-
Zip release files
47-
-----------------
48-
49-
To build this library locally you'll need to install the
50-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
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-neotrellis/>`_. To install for current user:
5136

5237
.. code-block:: shell
5338
54-
python3 -m venv .env
55-
source .env/bin/activate
56-
pip install circuitpython-build-tools
39+
pip3 install adafruit-circuitpython-neotrellis
5740
58-
Once installed, make sure you are in the virtual environment:
41+
To install system-wide (this may be required in some cases):
5942

6043
.. code-block:: shell
6144
62-
source .env/bin/activate
45+
sudo pip3 install adafruit-circuitpython-neotrellis
6346
64-
Then run the build:
65-
66-
.. code-block:: shell
67-
68-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-neotrellis --library_location .
69-
70-
Sphinx documentation
71-
-----------------------
72-
73-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
74-
install dependencies (feel free to reuse the virtual environment from above):
47+
To install in a virtual environment in your current project:
7548

7649
.. code-block:: shell
7750
51+
mkdir project-name && cd project-name
7852
python3 -m venv .env
7953
source .env/bin/activate
80-
pip install Sphinx sphinx-rtd-theme
54+
pip3 install adafruit-circuitpython-neotrellis
8155
82-
Now, once you have the virtual environment activated:
56+
Usage Example
57+
=============
8358

84-
.. code-block:: shell
59+
see examples/neotrellis_simpletest.py for usage example
8560

86-
cd docs
87-
sphinx-build -E -W -b html . _build/html
61+
Contributing
62+
============
63+
64+
Contributions are welcome! Please read our `Code of Conduct
65+
<https://github.com/adafruit/Adafruit_CircuitPython_NeoTrellis/blob/master/CODE_OF_CONDUCT.md>`_
66+
before contributing to help this project stay welcoming.
67+
68+
Documentation
69+
=============
8870

89-
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
90-
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
91-
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)