Skip to content

Commit 7a624ec

Browse files
authored
Merge pull request #4 from brentru/fix-autodoc
fix autodoc
2 parents d62811d + 5041d3d commit 7a624ec

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),
1924
'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
2025

0 commit comments

Comments
 (0)