Browse Source

Added fallback for docs

pull/112/head
Armin Ronacher 15 years ago
parent
commit
97d2a198e2
  1. 14
      docs/conf.py

14
docs/conf.py

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

Loading…
Cancel
Save