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 854e7aab84
commit 452f442a8e

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']