@@ -28,84 +28,44 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
28
28
This is easily achieved by downloading
29
29
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
30
30
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
+ ====================
50
33
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:
56
36
57
37
.. code-block :: shell
58
38
59
- source .env/bin/activate
39
+ pip3 install adafruit-circuitpython-vl6180x
60
40
61
- Then run the build :
41
+ To install system-wide (this may be required in some cases) :
62
42
63
43
.. code-block :: shell
64
44
65
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-vl6180x --library_location .
66
-
67
- Sphinx documentation
68
- -----------------------
45
+ sudo pip3 install adafruit-circuitpython-vl6180x
69
46
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:
72
48
73
49
.. code-block :: shell
74
50
51
+ mkdir project-name && cd project-name
75
52
python3 -m venv .env
76
53
source .env/bin/activate
77
- pip install Sphinx sphinx-rtd-theme
54
+ pip3 install adafruit-circuitpython-vl6180x
78
55
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
+ =============
97
58
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.
101
60
102
- Now, once you have the virtual environment activated:
61
+ Contributing
62
+ ============
103
63
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.
105
67
106
- cd docs
107
- sphinx-build -E -W -b html . _build/html
68
+ Documentation
69
+ =============
108
70
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