circuitpython/docs
Dan Halbert c286fc4bca
Merge pull request #9878 from eightycc/bleio-build-fix
Allow Selection of _bleio by Board, Fixup CIRCUITPY_BLEIO Flags
2025-04-07 18:52:56 -04:00
..
autoapi/templates/python
library Multiple documentation fixes 2025-03-21 14:30:06 -04:00
readthedocs/settings
reference
static
templates
common_hal.md
design_guide.rst
environment.rst Add native support for LVGL binary fonts on disk 2025-03-28 15:54:41 -07:00
index.rst
libraries.rst
LICENSE.md
pdf.rst
porting.rst
README.md
redirects.txt
rstjinja.py Switch to ruff like MicroPython 2025-02-05 11:09:15 -08:00
shared_bindings_matrix.py Update module support matrix to include new bleio selection flags. 2025-03-31 06:15:44 -07:00
supported_ports.rst Add Zephyr port 2025-02-04 11:24:13 -08:00
troubleshooting.rst
workflows.md Add additional documentation 2025-04-01 11:12:05 -07:00

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