Skip to content

Commit 97d2a19

Browse files
committed
Added fallback for docs
1 parent 3ebc97a commit 97d2a19

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,3 +250,17 @@
250250
}
251251

252252
pygments_style = 'flask_theme_support.FlaskyStyle'
253+
254+
# fall back if theme is not there
255+
try:
256+
__import__('flask_theme_support')
257+
except ImportError, e:
258+
print '-' * 74
259+
print 'Warning: Flask themes unavailable. Building with default theme'
260+
print 'If you want the Flask themes, run this command and build again:'
261+
print
262+
print ' git submodule init'
263+
print '-' * 74
264+
265+
pygments_style = 'tango'
266+
html_theme = 'default'

0 commit comments

Comments
 (0)