File tree 3 files changed +23
-3
lines changed
3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "docs/bw_sphinxtheme "]
2
+ path = docs/bw_sphinxtheme
3
+ url = git://github.com/dahlia/bw_sphinxtheme.git
Submodule bw_sphinxtheme added at
eaee00d Original file line number Diff line number Diff line change @@ -115,15 +115,31 @@ def __repr__(self):
115
115
116
116
# The theme to use for HTML and HTML Help pages. See the documentation for
117
117
# a list of builtin themes.
118
- html_theme = 'nature'
118
+ if os .path .isdir ('bw_sphinxtheme/bw_sphinxtheme' ):
119
+ html_theme = 'bw'
120
+ pygments_style = 'pastie'
121
+ else :
122
+ print '-' * 74
123
+ print 'Warning: bw_sphinxtheme unavailable. Building with default theme'
124
+ print 'If you want the bw_sphinxtheme, run this command and build again:'
125
+ print
126
+ print ' git submodule update --init'
127
+ print '-' * 74
128
+
129
+ html_theme = 'default'
119
130
120
131
# Theme options are theme-specific and customize the look and feel of a theme
121
132
# further. For a list of options available for each theme, see the
122
133
# documentation.
123
- html_theme_options = {}
134
+ html_theme_options = {
135
+ 'github_ribbon' : True ,
136
+ 'github_ribbon_link' : 'https://github.com/crosspop/sqlalchemy-imageattach'
137
+ } if html_theme == 'bw' else {}
124
138
125
139
# Add any paths that contain custom themes here, relative to this directory.
126
- #html_theme_path = []
140
+ html_theme_path = (['bw_sphinxtheme/bw_sphinxtheme/themes' ]
141
+ if html_theme == 'bw'
142
+ else [])
127
143
128
144
# The name for this set of Sphinx documents. If None, it defaults to
129
145
# "<project> v<release> documentation".
You can’t perform that action at this time.
0 commit comments