From 458a9297062a7d5491d012219308645c52cf4f55 Mon Sep 17 00:00:00 2001 From: Steve Johnson Date: Sun, 6 Oct 2013 17:29:30 -0700 Subject: [PATCH] skip_api_docs option in docs/conf.py --- docs/conf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 972984f82..a76ee7042 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -283,3 +283,13 @@ epub_copyright = u'2013, Author' # Allow duplicate toc entries. #epub_tocdup = True + +# skip_api_docs setting will skip PIL.rst if True. Used for working on the +# guides; makes livereload basically instantaneous. +def setup(app): + app.add_config_value('skip_api_docs', False, True) + +skip_api_docs = False + +if skip_api_docs: + exclude_patterns = ['_build', 'PIL.rst']