Skip to content

Commit 9c637e1

Browse files
authored
Merge pull request #8 from brentru/fix-autodoc
modified conf.py
2 parents 3cd23cb + 4b8b485 commit 9c637e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

conf.py

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
'sphinx.ext.viewcode',
1616
]
1717

18+
# Uncomment the below if you use native CircuitPython modules such as
19+
# digitalio, micropython and busio. List the modules you use. Without it, the
20+
# autodoc module docs will fail to generate with a warning.
21+
autodoc_mock_imports = ["adafruit_bus_device", "micropython"]
22+
1823
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/bus_device/en/latest/', None),'Register': ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
1924

2025
# Add any paths that contain templates here, relative to this directory.

0 commit comments

Comments
 (0)