Skip to content

Commit 00ad929

Browse files
authored
Merge pull request #10 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 5fe2b07 + edd736e commit 00ad929

File tree

1 file changed

+28
-48
lines changed

1 file changed

+28
-48
lines changed

README.rst

Lines changed: 28 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -25,71 +25,51 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2525
This is easily achieved by downloading
2626
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
2727

28-
Usage Example
29-
=============
30-
31-
.. code-block:: python
32-
33-
import adafruit_miniqr
34-
35-
qr = adafruit_miniqr.QRCode()
36-
qr.add_data(b'https://www.adafruit.com')
37-
qr.make()
38-
print(qr.matrix)
28+
Installing from PyPI
29+
====================
3930

40-
Contributing
41-
============
42-
43-
Contributions are welcome! Please read our `Code of Conduct
44-
<https://github.com/adafruit/Adafruit_CircuitPython_miniQR/blob/master/CODE_OF_CONDUCT.md>`_
45-
before contributing to help this project stay welcoming.
46-
47-
Building locally
48-
================
49-
50-
Zip release files
51-
-----------------
52-
53-
To build this library locally you'll need to install the
54-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
31+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
32+
PyPI <https://pypi.org/project/adafruit-circuitpython-miniqr/>`_. To install for current user:
5533

5634
.. code-block:: shell
5735
58-
python3 -m venv .env
59-
source .env/bin/activate
60-
pip install circuitpython-build-tools
36+
pip3 install adafruit-circuitpython-miniqr
6137
62-
Once installed, make sure you are in the virtual environment:
38+
To install system-wide (this may be required in some cases):
6339

6440
.. code-block:: shell
6541
66-
source .env/bin/activate
42+
sudo pip3 install adafruit-circuitpython-miniqr
6743
68-
Then run the build:
44+
To install in a virtual environment in your current project:
6945

7046
.. code-block:: shell
7147
72-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-miniqr --library_location .
48+
mkdir project-name && cd project-name
49+
python3 -m venv .env
50+
source .env/bin/activate
51+
pip3 install adafruit-circuitpython-miniqr
7352
74-
Sphinx documentation
75-
-----------------------
53+
Usage Example
54+
=============
7655

77-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
78-
install dependencies (feel free to reuse the virtual environment from above):
56+
.. code-block:: python
7957
80-
.. code-block:: shell
58+
import adafruit_miniqr
8159
82-
python3 -m venv .env
83-
source .env/bin/activate
84-
pip install Sphinx sphinx-rtd-theme
60+
qr = adafruit_miniqr.QRCode()
61+
qr.add_data(b'https://www.adafruit.com')
62+
qr.make()
63+
print(qr.matrix)
8564
86-
Now, once you have the virtual environment activated:
65+
Contributing
66+
============
8767

88-
.. code-block:: shell
68+
Contributions are welcome! Please read our `Code of Conduct
69+
<https://github.com/adafruit/Adafruit_CircuitPython_miniQR/blob/master/CODE_OF_CONDUCT.md>`_
70+
before contributing to help this project stay welcoming.
8971

90-
cd docs
91-
sphinx-build -E -W -b html . _build/html
72+
Documentation
73+
=============
9274

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