From 95535a238eaf8c73891de6d43af3ffd37536c388 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Tue, 22 Jun 2021 10:49:55 -0500 Subject: [PATCH] fix doc building more --- conf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 09fbae2950..063a527244 100644 --- a/conf.py +++ b/conf.py @@ -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.