Skip to content

Commit 9ec0036

Browse files
authored
Merge pull request #40 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 3e64ef3 + da444e1 commit 9ec0036

File tree

1 file changed

+28
-45
lines changed

1 file changed

+28
-45
lines changed

README.rst

+28-45
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,31 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
3333
This is easily achieved by downloading
3434
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3535

36+
Installing from PyPI
37+
====================
38+
39+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
40+
PyPI <https://pypi.org/project/adafruit-circuitpython-ht16k33/>`_. To install for current user:
41+
42+
.. code-block:: shell
43+
44+
pip3 install adafruit-circuitpython-ht16k33
45+
46+
To install system-wide (this may be required in some cases):
47+
48+
.. code-block:: shell
49+
50+
sudo pip3 install adafruit-circuitpython-ht16k33
51+
52+
To install in a virtual environment in your current project:
53+
54+
.. code-block:: shell
55+
56+
mkdir project-name && cd project-name
57+
python3 -m venv .env
58+
source .env/bin/activate
59+
pip3 install adafruit-circuitpython-ht16k33
60+
3661
Usage Example
3762
=============
3863

@@ -83,49 +108,7 @@ Contributions are welcome! Please read our `Code of Conduct
83108
<https://github.com/adafruit/Adafruit_CircuitPython_HT16K33/blob/master/CODE_OF_CONDUCT.md>`_
84109
before contributing to help this project stay welcoming.
85110

86-
Building locally
87-
================
88-
89-
To build this library locally you'll need to install the
90-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
91-
92-
.. code-block:: shell
93-
94-
python3 -m venv .env
95-
source .env/bin/activate
96-
pip install circuitpython-build-tools
97-
98-
Once installed, make sure you are in the virtual environment:
99-
100-
.. code-block:: shell
101-
102-
source .env/bin/activate
103-
104-
Then run the build:
105-
106-
.. code-block:: shell
107-
108-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-ht16k33 --library_location .
109-
110-
Sphinx documentation
111-
-----------------------
112-
113-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
114-
install dependencies (feel free to reuse the virtual environment from above):
115-
116-
.. code-block:: shell
117-
118-
python3 -m venv .env
119-
source .env/bin/activate
120-
pip install Sphinx sphinx-rtd-theme
121-
122-
Now, once you have the virtual environment activated:
123-
124-
.. code-block:: shell
125-
126-
cd docs
127-
sphinx-build -E -W -b html . _build/html
111+
Documentation
112+
=============
128113

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