File tree 4 files changed +24
-2
lines changed 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 122
122
# Theme options are theme-specific and customize the look and feel of a theme
123
123
# further. For a list of options available for each theme, see the
124
124
# documentation.
125
- # html_theme_options = {}
125
+ html_theme_options = {'oldversion' : True }
126
126
127
127
# Add any paths that contain custom themes here, relative to this directory.
128
128
html_theme_path = ['themes' ]
Original file line number Diff line number Diff line change 31
31
{%- endif %}
32
32
33
33
{% block header %}
34
+ {%- if theme_oldversion|tobool %}
35
+ < div class ="warning-wrapper ">
36
+ < p > Warning: This documentation is
37
+ for {{project}} < strong > version {{ release|e }}</ strong > .
38
+ — < a href ="http://scikit-learn.org/stable/ ">
39
+ Latest stable version</ a > </ p > </ p >
40
+ </ div >
41
+ {%- endif %}
42
+
34
43
< div class ="header-wrapper ">
35
44
< div class ="header ">
36
45
{%- if logo %}
66
75
</ script >
67
76
68
77
</ div >
69
-
70
78
</ div > <!-- end navbar -->
71
79
{%- endblock -%}
72
80
Original file line number Diff line number Diff line change @@ -184,6 +184,17 @@ div.rel {
184
184
margin-top: 20px;
185
185
}
186
186
187
+ /* -------- warning header for old versions --------------------------------*/
188
+
189
+ div.warning-wrapper {
190
+ background-color: #ffaaaa;
191
+ max-width: auto;
192
+ text-align: center;
193
+ }
194
+ div.warning-wrapper p {
195
+ margin: 0;
196
+ }
197
+
187
198
div.sphinxsidebar h3,
188
199
div.sphinxsidebar h4 {
189
200
padding: 5px 10px;
Original file line number Diff line number Diff line change 2
2
inherit = basic
3
3
stylesheet = nature.css
4
4
pygments_style = tango
5
+
6
+ [options]
7
+ oldversion = False
You can’t perform that action at this time.
0 commit comments