circuitpython/docs
2021-10-29 18:15:48 -04:00
..
autoapi/templates/python Make summary more helpful; use a html list 2021-07-27 12:01:18 -05:00
library Merge tag 'v1.17' into merge-1.17 2021-10-15 08:20:54 -05:00
readthedocs/settings docs: Add RTD local_settings file, to add custom templates. 2014-12-21 11:21:06 +00:00
reference docs/reference: Mention that slicing a memoryview causes allocation. 2021-08-30 23:55:29 +10:00
static add a filter text field to the support matrix 2021-04-15 19:05:50 +02:00
templates docs/templates: Add unix and zephyr quickref links to top-index. 2021-08-13 20:21:21 +10:00
common_hal.md It's "shared-module", not "shared-modules" 2021-08-03 10:37:47 -05:00
design_guide.rst Update D13 to LED, add PWM example. 2021-10-28 13:30:51 -04:00
drivers.rst Fix some spelling mistakes 2020-12-10 02:52:18 +11:00
index.rst docs/zephyr: Add quick reference for the Zephyr port. 2021-08-13 20:20:57 +10:00
porting.rst remove gamepad; deprecate gamepadshift 2021-07-26 22:15:09 -04:00
README.md Update README in docs/ 2021-10-16 17:46:28 -04:00
redirects.txt Fix stubs & doc redirects 2021-08-29 11:43:51 -05:00
requirements.txt Switch from recommonmark to myst-parser 2021-05-05 15:25:37 -07:00
rstjinja.py docs/rstjinja.py: add jinja processing for building latex (pdf) docs 2020-08-15 14:29:09 -05:00
shared_bindings_matrix.py Rename esp32s2 port to espressif 2021-09-13 16:44:55 -07:00
supported_ports.rst Rename esp32s2 port to espressif 2021-09-13 16:44:55 -07:00
troubleshooting.rst Update to point to guide. 2021-10-29 18:15:48 -04:00

Adafruit's CircuitPython Documentation

The latest documentation can be found at: http://circuitpython.readthedocs.io/en/latest/

The documentation you see there is generated from the files in the whole tree: https://github.com/adafruit/circuitpython/tree/main

Building the documentation locally

If you're making changes to the documentation, you should build the documentation locally so that you can preview your changes.

Install the necessary packages, preferably in a virtualenv, in circuitpython/:

pip install -r requirements-doc.txt

In circuitpython/, build the docs:

make html

You'll find the index page at _build/html/index.html.

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=

# will turn OFF the verbosity
make html VERBOSE=

# 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.