circuitpython/docs
James Carr c665eb9bb5
Incompatible .mpy file
Update the *ValueError: Incompatible .mpy file* section for the upcoming 6 to 7 transition.
2021-05-23 08:51:35 +01:00
..
autoapi/templates/python
library Merge MicroPython v1.15 into CircuitPython 2021-05-12 17:51:42 -07:00
readthedocs/settings
reference Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
static add a filter text field to the support matrix 2021-04-15 19:05:50 +02:00
templates Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
README.md
common_hal.md
design_guide.rst adding parameter documentation explanation. 2021-05-15 12:06:08 -04:00
drivers.rst
index.rst Merge MicroPython 1.13 into CircuitPython 2021-05-04 18:06:33 -07:00
porting.rst
redirects.txt
requirements.txt Switch from recommonmark to myst-parser 2021-05-05 15:25:37 -07:00
rstjinja.py
shared_bindings_matrix.py Merge remote-tracking branch 'adafruit/main' into merge_1.13 2021-05-06 11:17:53 -07:00
supported_ports.rst
troubleshooting.rst Incompatible .mpy file 2021-05-23 08:51:35 +01: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.