Skip to content

Commit 4e6ade5

Browse files
authored
Merge pull request #12 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 3a345b7 + 5ea4d8e commit 4e6ade5

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
@@ -26,69 +26,52 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2626
This is easily achieved by downloading
2727
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
2828

29-
Usage Example
30-
=============
31-
32-
See 'examples' folder for full usage demo!
29+
Installing from PyPI
30+
====================
3331

34-
API Reference
35-
=============
36-
37-
.. toctree::
38-
:maxdepth: 2
39-
40-
api
32+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
33+
PyPI <https://pypi.org/project/adafruit-circuitpython-fingerprint/>`_. To install for current user:
4134

42-
Contributing
43-
============
44-
45-
Contributions are welcome! Please read our `Code of Conduct
46-
<https://github.com/adafruit/Adafruit_CircuitPython_Fingerprint/blob/master/CODE_OF_CONDUCT.md>`_
47-
before contributing to help this project stay welcoming.
35+
.. code-block:: shell
4836
49-
Building locally
50-
================
37+
pip3 install adafruit-circuitpython-fingerprint
5138
52-
To build this library locally you'll need to install the
53-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
39+
To install system-wide (this may be required in some cases):
5440

5541
.. code-block:: shell
5642
57-
python3 -m venv .env
58-
source .env/bin/activate
59-
pip install circuitpython-build-tools
43+
sudo pip3 install adafruit-circuitpython-fingerprint
6044
61-
Once installed, make sure you are in the virtual environment:
45+
To install in a virtual environment in your current project:
6246

6347
.. code-block:: shell
6448
49+
mkdir project-name && cd project-name
50+
python3 -m venv .env
6551
source .env/bin/activate
52+
pip3 install adafruit-circuitpython-fingerprint
6653
67-
Then run the build:
68-
69-
.. code-block:: shell
70-
71-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-fingerprint --library_location .
54+
Usage Example
55+
=============
7256

73-
Sphinx documentation
74-
-----------------------
57+
See 'examples' folder for full usage demo!
7558

76-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
77-
install dependencies (feel free to reuse the virtual environment from above):
59+
API Reference
60+
=============
7861

79-
.. code-block:: shell
62+
.. toctree::
63+
:maxdepth: 2
8064

81-
python3 -m venv .env
82-
source .env/bin/activate
83-
pip install Sphinx sphinx-rtd-theme
65+
api
8466

85-
Now, once you have the virtual environment activated:
67+
Contributing
68+
============
8669

87-
.. code-block:: shell
70+
Contributions are welcome! Please read our `Code of Conduct
71+
<https://github.com/adafruit/Adafruit_CircuitPython_Fingerprint/blob/master/CODE_OF_CONDUCT.md>`_
72+
before contributing to help this project stay welcoming.
8873

89-
cd docs
90-
sphinx-build -E -W -b html . _build/html
74+
Documentation
75+
=============
9176

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