forked from orbit-oss/flask
optionally enable sphinxcontrib.log_cabinet
collapses old changelog directives closes #1704 closes #1867
This commit is contained in:
parent
7bd54e9bd6
commit
75b85656dd
1 changed files with 8 additions and 0 deletions
|
|
@ -38,6 +38,14 @@ extensions = [
|
||||||
'flaskdocext'
|
'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.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue