Skip to content

Commit 9db18bd

Browse files
authored
Merge pull request #9 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 06ba88d + cd735f1 commit 9db18bd

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
@@ -27,64 +27,44 @@ 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-
=============
30+
Installing from PyPI
31+
====================
3232

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

5136
.. code-block:: shell
5237
53-
python3 -m venv .env
54-
source .env/bin/activate
55-
pip install circuitpython-build-tools
38+
pip3 install adafruit-circuitpython-stmpe610
5639
57-
Once installed, make sure you are in the virtual environment:
40+
To install system-wide (this may be required in some cases):
5841

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

7548
.. code-block:: shell
7649
50+
mkdir project-name && cd project-name
7751
python3 -m venv .env
7852
source .env/bin/activate
79-
pip install Sphinx sphinx-rtd-theme
53+
pip3 install adafruit-circuitpython-stmpe610
8054
81-
Now, once you have the virtual environment activated:
55+
Usage Example
56+
=============
8257

83-
.. code-block:: shell
58+
See examples in github repository: https://github.com/adafruit/Adafruit_CircuitPython_STMPE610/tree/master/examples
8459

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

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