fix doc building more

This commit is contained in:
Jeff Epler 2021-06-22 10:49:55 -05:00
parent acc6bec9da
commit 95535a238e

View File

@ -86,7 +86,8 @@ extensions.append('autoapi.extension')
autoapi_type = 'python'
# Uncomment this if debugging autoapi
autoapi_keep_files = True
autoapi_dirs = [os.path.join('circuitpython-stubs', x) for x in os.listdir('circuitpython-stubs')]
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"))]
print("autoapi_dirs", autoapi_dirs)
autoapi_add_toctree_entry = False
autoapi_options = ['members', 'undoc-members', 'private-members', 'show-inheritance', 'special-members', 'show-module-summary']
autoapi_template_dir = 'docs/autoapi/templates'
@ -204,7 +205,8 @@ exclude_patterns = ["**/build*",
"supervisor",
"tests",
"test-stubs",
"tools"]
"tools",
"circuitpython-stubs/README.rst"]
# The reST default role (used for this markup: `text`) to use for all
# documents.