circuitpython/docs
caternuson ac6695faba update design guide 2021-02-11 14:28:58 -08:00
..
autoapi/templates/python Modify some Python stubs 2020-08-07 01:01:28 +09:00
library fix doc typos 2021-01-25 23:06:47 -05:00
readthedocs/settings docs: Add RTD local_settings file, to add custom templates. 2014-12-21 11:21:06 +00:00
static Add license to some obvious files. 2020-07-06 19:16:25 +01:00
templates Comment that it may vary by board 2018-07-30 15:20:12 -07:00
README.md Refer to "main" branch of circuitpython 2020-06-25 11:42:23 -05:00
common_hal.md docs: Minor updates before 1.0.0 2017-07-19 15:13:23 -04:00
design_guide.rst update design guide 2021-02-11 14:28:58 -08:00
drivers.rst Fix some spelling mistakes 2020-12-10 02:52:18 +11:00
index.rst Added WEBUSB_README to the table of contents (required by CI) 2021-02-04 08:56:51 -06:00
porting.rst Fix some spelling mistakes 2020-12-10 02:52:18 +11:00
redirects.txt redirects: Add __init__ page redirects 2020-06-26 15:06:22 -05:00
requirements.txt Apply a Sphinx transform to make the core module docs look better 2020-08-07 00:01:31 +09:00
robots.txt merge from upstream and update to 6.0.x 2021-01-10 13:54:08 -05: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 typo in circuitpy_mpconfig.h; forgot cxd56 port 2021-01-25 22:40:31 -05:00
supported_ports.rst Add initial RP2040 support 2021-01-20 19:16:56 -08:00
troubleshooting.rst Fix some spelling mistakes 2020-12-10 02:52:18 +11:00

README.md

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 Sphinx, recommonmark, and optionally (for the RTD-styling), sphinx_rtd_theme, preferably in a virtualenv:

 pip install sphinx
 pip install recommonmark
 pip install sphinx_rtd_theme

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.