Added fallback for docs

This commit is contained in:
Armin Ronacher 2010-07-17 16:05:06 +02:00
parent 3ebc97a780
commit 97d2a198e2

View file

@ -250,3 +250,17 @@ intersphinx_mapping = {
}
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'