Skip to content

Commit 2afe88d

Browse files
committed
updated README
1 parent 2a38b05 commit 2afe88d

File tree

1 file changed

+50
-8
lines changed

1 file changed

+50
-8
lines changed

README.rst

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ Introduction
1010
:target: https://discord.gg/nBQh6qu
1111
:alt: Discord
1212
13-
VC0706 serial TTL camera module. Allows basic image capture and download of
14-
image data from the camera over a serial connection. See examples for demo
15-
of saving image to a SD card (must be wired up separately).
13+
.. image:: https://travis-ci.org/adafruit/Adafruit_CircuitPython_VC0706.svg?branch=master
14+
:target: https://travis-ci.org/adafruit/Adafruit_CircuitPython_VC0706
15+
:alt: Build Status
16+
17+
CircuitPython module for use with the `VC0706 serial TTL camera <https://www.adafruit.com/product/397>`_. Allows basic image capture and download of image data from the camera over a serial connection. See examples for demo
18+
of saving image to a SD card (must be wired up separately) or internally.
1619

1720
Dependencies
1821
=============
@@ -36,10 +39,49 @@ Contributions are welcome! Please read our `Code of Conduct
3639
<https://github.com/adafruit/Adafruit_CircuitPython_vc0706/blob/master/CODE_OF_CONDUCT.md>`_
3740
before contributing to help this project stay welcoming.
3841

39-
API Reference
40-
=============
42+
Building locally
43+
================
44+
45+
To build this library locally you'll need to install the
46+
`circuitpython-build-tools <https://github.com/adafruit/circuitpython-build-tools>`_ package.
47+
48+
.. code-block:: shell
49+
50+
python3 -m venv .env
51+
source .env/bin/activate
52+
pip install circuitpython-build-tools
53+
54+
Once installed, make sure you are in the virtual environment:
55+
56+
.. code-block:: shell
57+
58+
source .env/bin/activate
59+
60+
Then run the build:
61+
62+
.. code-block:: shell
63+
64+
circuitpython-build-bundles --filename_prefix adafruit-circuitpython-vc0706 --library_location .
65+
66+
Sphinx documentation
67+
-----------------------
68+
69+
Sphinx is used to build the documentation based on rST files and comments in the code. First,
70+
install dependencies (feel free to reuse the virtual environment from above):
71+
72+
.. code-block:: shell
73+
74+
python3 -m venv .env
75+
source .env/bin/activate
76+
pip install Sphinx sphinx-rtd-theme
77+
78+
Now, once you have the virtual environment activated:
79+
80+
.. code-block:: shell
4181
42-
.. toctree::
43-
:maxdepth: 2
82+
cd docs
83+
sphinx-build -E -W -b html . _build/html
4484
45-
api
85+
This will output the documentation to ``docs/_build/html``. Open the index.html in your browser to
86+
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
87+
locally verify it will pass.

0 commit comments

Comments
 (0)