Includes tweaks to Sphinx config and module files to help the docs build.
Reviewed the docs build with:
sphinx-build -E -W -b html . _build/html
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
-autodoc_mock_imports = ["machine", "Adafruit_GPIO", "RPi", "RPi.GPIO", "hid", "sysv_ipc"]
+autodoc_mock_imports = [
+ "machine",
+ "Adafruit_GPIO",
+ "RPi",
+ "RPi.GPIO",
+ "hid",
+ "sysv_ipc",
+]
intersphinx_mapping = {
"python": ("https://docs.python.org/3.4", None),
intersphinx_mapping = {
"python": ("https://docs.python.org/3.4", None),
elif "sphinx" in sys.modules:
pass
else:
elif "sphinx" in sys.modules:
pass
else:
- raise NotImplementedError("pulseio not supported for this board.")
\ No newline at end of file
+ raise NotImplementedError("pulseio not supported for this board.")