optionally enable sphinxcontrib.log_cabinet

collapses old changelog directives
closes #1704
closes #1867
This commit is contained in:
David Lord 2017-05-04 18:24:04 -07:00
parent 7bd54e9bd6
commit 75b85656dd
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -38,6 +38,14 @@ extensions = [
'flaskdocext'
]
try:
__import__('sphinxcontrib.log_cabinet')
except ImportError:
print('sphinxcontrib-log-cabinet is not installed.')
print('Changelog directives will not be re-organized.')
else:
extensions.append('sphinxcontrib.log_cabinet')
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']