forked from orbit-oss/flask
Added fallback for docs
This commit is contained in:
parent
3ebc97a780
commit
97d2a198e2
1 changed files with 14 additions and 0 deletions
14
docs/conf.py
14
docs/conf.py
|
|
@ -250,3 +250,17 @@ intersphinx_mapping = {
|
||||||
}
|
}
|
||||||
|
|
||||||
pygments_style = 'flask_theme_support.FlaskyStyle'
|
pygments_style = 'flask_theme_support.FlaskyStyle'
|
||||||
|
|
||||||
|
# fall back if theme is not there
|
||||||
|
try:
|
||||||
|
__import__('flask_theme_support')
|
||||||
|
except ImportError, e:
|
||||||
|
print '-' * 74
|
||||||
|
print 'Warning: Flask themes unavailable. Building with default theme'
|
||||||
|
print 'If you want the Flask themes, run this command and build again:'
|
||||||
|
print
|
||||||
|
print ' git submodule init'
|
||||||
|
print '-' * 74
|
||||||
|
|
||||||
|
pygments_style = 'tango'
|
||||||
|
html_theme = 'default'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue