Skip to content

Commit d601fdc

Browse files
author
Kevin J Walters
committed
Fixing error from missing busio with autodoc_mock_imports in docs/conf.py - it no longer rains on me.
1 parent abcc9c4 commit d601fdc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/conf.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@
1616
'sphinx.ext.todo',
1717
]
1818

19-
# TODO: Please Read!
20-
# Uncomment the below if you use native CircuitPython modules such as
21-
# digitalio, micropython and busio. List the modules you use. Without it, the
22-
# autodoc module docs will fail to generate with a warning.
23-
# autodoc_mock_imports = ["digitalio", "busio"]
24-
19+
### Using busio
20+
autodoc_mock_imports = ["digitalio", "busio"]
2521

2622
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/bus_device/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
2723

0 commit comments

Comments
 (0)