Skip to content

Commit 801fa74

Browse files
authored
Merge pull request #56 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 53146ab + 17da755 commit 801fa74

File tree

1 file changed

+20
-37
lines changed

1 file changed

+20
-37
lines changed

README.rst

+20-37
Original file line numberDiff line numberDiff line change
@@ -34,56 +34,39 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
3434
This is easily achieved by downloading
3535
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3636

37-
Contributing
38-
============
39-
40-
Contributions are welcome! Please read our `Code of Conduct
41-
<https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/master/CODE_OF_CONDUCT.md>`_
42-
before contributing to help this project stay welcoming.
43-
44-
Building locally
45-
================
46-
47-
To build this library locally you'll need to install the
48-
`circuitpython-travis-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
49-
50-
.. code-block::shell
51-
52-
python3 -m venv .env
53-
source .env/bin/activate
54-
pip install -r requirements.txt
37+
Installing from PyPI
38+
====================
5539

56-
Once installed, make sure you are in the virtual environment:
40+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
41+
PyPI <https://pypi.org/project/adafruit-circuitpython-lis3dh/>`_. To install for current user:
5742

58-
.. code-block::shell
59-
60-
source .env/bin/activate
43+
.. code-block:: shell
6144
62-
Then run the build:
45+
pip3 install adafruit-circuitpython-lis3dh
6346
64-
.. code-block::shell
47+
To install system-wide (this may be required in some cases):
6548

66-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-lis3dh --library_location .
49+
.. code-block:: shell
6750
68-
Sphinx documentation
69-
-----------------------
51+
sudo pip3 install adafruit-circuitpython-lis3dh
7052
71-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
72-
install dependencies (feel free to reuse the virtual environment from above):
53+
To install in a virtual environment in your current project:
7354

7455
.. code-block:: shell
7556
57+
mkdir project-name && cd project-name
7658
python3 -m venv .env
7759
source .env/bin/activate
78-
pip install Sphinx sphinx-rtd-theme
60+
pip3 install adafruit-circuitpython-lis3dh
7961
80-
Now, once you have the virtual environment activated:
62+
Contributing
63+
============
8164

82-
.. code-block:: shell
65+
Contributions are welcome! Please read our `Code of Conduct
66+
<https://github.com/adafruit/Adafruit_CircuitPython_LIS3DH/blob/master/CODE_OF_CONDUCT.md>`_
67+
before contributing to help this project stay welcoming.
8368

84-
cd docs
85-
sphinx-build -E -W -b html . _build/html
69+
Documentation
70+
=============
8671

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