circuitpython/docs
2025-07-25 08:12:52 -05:00
..
autoapi/templates/python Make summary more helpful; use a html list 2021-07-27 12:01:18 -05:00
library Use stub for micropython module doc generation 2025-07-16 14:13:13 -04:00
readthedocs/settings all: Update Python formatting to ruff-format. 2023-11-03 13:30:41 +11:00
reference docs/reference/mpremote: Update docs for mpremote rm -r. 2025-04-09 10:51:48 +10:00
static initial merge from v1.20.0; just satisifying conflicts 2023-09-19 11:10:12 -04:00
templates all: Switch to new preview build versioning scheme. 2023-10-06 12:10:14 +11:00
common_hal.md document MP_REGISTER_MODULE 2024-01-27 11:45:43 -06:00
design_guide.rst removing need to use print format option. 2023-03-20 17:23:49 -04:00
environment.rst restart -> reset 2025-07-17 13:16:49 -07:00
index.rst Add back glossary to fix docs build 2023-10-16 12:15:42 -07:00
libraries.rst remove micropython asyncio doc; update libraries page and links 2022-12-08 20:23:02 -05:00
LICENSE.md update formatting of LICENSE and clean-up 2022-08-27 14:47:10 +05:30
pdf.rst Fix docs build by splitting out support matrix 2023-10-24 16:20:51 -07:00
porting.rst add SPITarget interface (HAL still unimplemented) 2024-10-31 19:20:43 -07:00
README.md non-conflict merge changes 2024-09-05 14:54:18 -04:00
redirects.txt Add redirect from old micropython doc page 2025-07-16 21:48:46 -04:00
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 Update link. 2021-11-02 13:52:40 -04:00
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.