From 4bb6f18b30d850019230cd4e347b574ac0593052 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Fri, 11 Jan 2019 17:20:00 +0000 Subject: [PATCH] Do not build rst files starting with '_' --- doc/source/conf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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