diff --git a/doc/source/conf.py b/doc/source/conf.py index 3725a24d8a2..202930b94c6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -103,10 +103,9 @@ release = VERSION # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. +exclude_patterns = ['**/_*.rst'] if SKIP_SOURCE: - exclude_patterns = ['lib', 'releases'] -else: - exclude_patterns = [] + exclude_patterns.extend(['lib', 'releases']) # The reST default role (used for this markup: `text`) to use for all documents. #default_role = None