2017-06-27 18:17:30 -04:00
|
|
|
Adafruit's CircuitPython Documentation
|
2015-10-31 20:46:19 -04:00
|
|
|
=========================
|
|
|
|
|
2016-10-18 20:42:47 -04:00
|
|
|
The latest documentation can be found at:
|
2017-06-27 18:17:30 -04:00
|
|
|
http://circuitpython.readthedocs.io/en/latest/
|
2015-10-31 20:46:19 -04:00
|
|
|
|
2016-10-18 20:42:47 -04:00
|
|
|
The documentation you see there is generated from the files in the whole tree:
|
2020-06-14 15:25:58 -04:00
|
|
|
https://github.com/adafruit/circuitpython/tree/main
|
2015-10-31 20:46:19 -04:00
|
|
|
|
|
|
|
Building the documentation locally
|
|
|
|
----------------------------------
|
|
|
|
|
2016-10-18 20:42:47 -04:00
|
|
|
If you're making changes to the documentation, you should build the
|
2015-10-31 20:46:19 -04:00
|
|
|
documentation locally so that you can preview your changes.
|
|
|
|
|
2021-10-16 06:57:44 -04:00
|
|
|
Install the necessary packages, preferably in a virtualenv, in `circuitpython/`:
|
2015-10-31 20:46:19 -04:00
|
|
|
|
2021-10-16 06:57:44 -04:00
|
|
|
pip install -r requirements-doc.txt
|
2015-10-31 20:46:19 -04:00
|
|
|
|
2017-06-27 18:17:30 -04:00
|
|
|
In `circuitpython/`, build the docs:
|
2015-10-31 20:46:19 -04:00
|
|
|
|
2018-05-14 13:32:01 -04:00
|
|
|
make html
|
2015-10-31 20:46:19 -04:00
|
|
|
|
2017-06-27 18:17:30 -04:00
|
|
|
You'll find the index page at `_build/html/index.html`.
|
2018-05-14 13:32:01 -04:00
|
|
|
|
|
|
|
### More flexibility
|
|
|
|
|
|
|
|
Running `make` by itself will list out the multiple doc generating commands available.
|
|
|
|
|
|
|
|
All commands will, by default, run with `-E` (forces a rebuild from scratch of docs) and `-v` (verbosity level 1). This can be customized as desired:
|
|
|
|
|
|
|
|
# will turn OFF the force rebuild
|
|
|
|
make html FORCE=
|
2020-05-30 05:44:13 -04:00
|
|
|
|
2018-05-14 13:32:01 -04:00
|
|
|
# will turn OFF the verbosity
|
|
|
|
make html VERBOSE=
|
2020-05-30 05:44:13 -04:00
|
|
|
|
2018-05-14 13:32:01 -04:00
|
|
|
# will turn OFF the force rebuild and make it doubly verbose when running
|
|
|
|
make html FORCE= VERBOSE="-v -v"
|
|
|
|
|
|
|
|
You can also pass other options to sphinx by using `SPHINXOPTS`.
|
|
|
|
|
|
|
|
make html SPHINXOPTS="-T"
|
|
|
|
|
|
|
|
For more flexibility and customization, take a look at the Makefile for all variables you can pass in and overwrite.
|