Browse Source

optionally enable sphinxcontrib.log_cabinet

collapses old changelog directives
closes #1704
closes #1867
pull/2271/head
David Lord 8 years ago
parent
commit
75b85656dd
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
  1. 8
      docs/conf.py

8
docs/conf.py

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

Loading…
Cancel
Save