a1052d5f73
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4 and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes outside of the ports directory for it. There are a couple other cleanups that were incidental: * Use const mcu_pin_obj_t instead of omitting the const. The structs themselves are const because they are in ROM. * Use PTR <-> OBJ conversions in more places. They were found when mp_obj_t was set to an integer type rather than pointer. * Optimize submodule checkout because the Pi submodules are heavy and unnecessary for the vast majority of builds. Fixes #4314 |
||
---|---|---|
.. | ||
autoapi/templates/python | ||
library | ||
readthedocs/settings | ||
reference | ||
static | ||
templates | ||
README.md | ||
common_hal.md | ||
design_guide.rst | ||
drivers.rst | ||
index.rst | ||
porting.rst | ||
redirects.txt | ||
requirements.txt | ||
rstjinja.py | ||
shared_bindings_matrix.py | ||
supported_ports.rst | ||
troubleshooting.rst |
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 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.