From 70189c5e5d635a7f0c2499421621a9854a70d1cf Mon Sep 17 00:00:00 2001 From: brentru Date: Fri, 23 Feb 2018 13:54:03 -0500 Subject: [PATCH] Fix autodoc --- conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf.py b/conf.py index d8f05a7..285447b 100644 --- a/conf.py +++ b/conf.py @@ -15,6 +15,11 @@ 'sphinx.ext.viewcode', ] +# 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 = ["adafruit_bus_device", "micropython"] + 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)} # Add any paths that contain templates here, relative to this directory.