Skip to content

Commit be11f87

Browse files
authored
Merge pull request #9 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2 parents 9929cd3 + 6d9d6d9 commit be11f87

File tree

1 file changed

+21
-61
lines changed

1 file changed

+21
-61
lines changed

README.rst

Lines changed: 21 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -28,84 +28,44 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2828
This is easily achieved by downloading
2929
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
3030

31-
Usage Example
32-
=============
33-
34-
See examples/vl6180x_simpletest.py for a demo of the usage.
35-
36-
Contributing
37-
============
38-
39-
Contributions are welcome! Please read our `Code of Conduct
40-
<https://github.com/adafruit/Adafruit_CircuitPython_VL6180X/blob/master/CODE_OF_CONDUCT.md>`_
41-
before contributing to help this project stay welcoming.
42-
43-
Building locally
44-
================
45-
46-
To build this library locally you'll need to install the
47-
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
48-
49-
.. code-block:: shell
31+
Installing from PyPI
32+
====================
5033

51-
python3 -m venv .env
52-
source .env/bin/activate
53-
pip install circuitpython-build-tools
54-
55-
Once installed, make sure you are in the virtual environment:
34+
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
35+
PyPI <https://pypi.org/project/adafruit-circuitpython-vl6180x/>`_. To install for current user:
5636

5737
.. code-block:: shell
5838
59-
source .env/bin/activate
39+
pip3 install adafruit-circuitpython-vl6180x
6040
61-
Then run the build:
41+
To install system-wide (this may be required in some cases):
6242

6343
.. code-block:: shell
6444
65-
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-vl6180x --library_location .
66-
67-
Sphinx documentation
68-
-----------------------
45+
sudo pip3 install adafruit-circuitpython-vl6180x
6946
70-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
71-
install dependencies (feel free to reuse the virtual environment from above):
47+
To install in a virtual environment in your current project:
7248

7349
.. code-block:: shell
7450
51+
mkdir project-name && cd project-name
7552
python3 -m venv .env
7653
source .env/bin/activate
77-
pip install Sphinx sphinx-rtd-theme
54+
pip3 install adafruit-circuitpython-vl6180x
7855
79-
Now, once you have the virtual environment activated:
80-
81-
.. code-block:: shell
82-
83-
cd docs
84-
sphinx-build -E -W -b html . _build/html
85-
86-
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
87-
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
88-
locally verify it will pass.
89-
90-
Sphinx documentation
91-
-----------------------
92-
93-
Sphinx is used to build the documentation based on rST files and comments in the code. First,
94-
install dependencies (feel free to reuse the virtual environment from above):
95-
96-
.. code-block:: shell
56+
Usage Example
57+
=============
9758

98-
python3 -m venv .env
99-
source .env/bin/activate
100-
pip install Sphinx sphinx-rtd-theme
59+
See examples/vl6180x_simpletest.py for a demo of the usage.
10160

102-
Now, once you have the virtual environment activated:
61+
Contributing
62+
============
10363

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

106-
cd docs
107-
sphinx-build -E -W -b html . _build/html
68+
Documentation
69+
=============
10870

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