skip_api_docs option in docs/conf.py

This commit is contained in:
Steve Johnson 2013-10-06 17:29:30 -07:00
parent fa1db45a11
commit 458a929706

View File

@ -283,3 +283,13 @@ epub_copyright = u'2013, Author'
# Allow duplicate toc entries. # Allow duplicate toc entries.
#epub_tocdup = True #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']