Skip to content

Commit 95535a2

Browse files
committed
fix doc building more
1 parent acc6bec commit 95535a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@
8686
autoapi_type = 'python'
8787
# Uncomment this if debugging autoapi
8888
autoapi_keep_files = True
89-
autoapi_dirs = [os.path.join('circuitpython-stubs', x) for x in os.listdir('circuitpython-stubs')]
89+
autoapi_dirs = [os.path.join('circuitpython-stubs', x) for x in os.listdir('circuitpython-stubs') if os.path.exists(os.path.join("circuitpython-stubs", x, "__init__.pyi"))]
90+
print("autoapi_dirs", autoapi_dirs)
9091
autoapi_add_toctree_entry = False
9192
autoapi_options = ['members', 'undoc-members', 'private-members', 'show-inheritance', 'special-members', 'show-module-summary']
9293
autoapi_template_dir = 'docs/autoapi/templates'
@@ -204,7 +205,8 @@
204205
"supervisor",
205206
"tests",
206207
"test-stubs",
207-
"tools"]
208+
"tools",
209+
"circuitpython-stubs/README.rst"]
208210

209211
# The reST default role (used for this markup: `text`) to use for all
210212
# documents.

0 commit comments

Comments
 (0)