File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 111
111
# Theme options are theme-specific and customize the look and feel of a theme
112
112
# further. For a list of options available for each theme, see the
113
113
# documentation.
114
- # html_theme_options = {}
114
+ html_theme_options = {'oldversion' : True }
115
115
116
116
# Add any paths that contain custom themes here, relative to this directory.
117
117
html_theme_path = ['themes' ]
Original file line number Diff line number Diff line change 15
15
{%- endif %}
16
16
17
17
{% block header %}
18
+ {%- if theme_oldversion|tobool %}
19
+ < div class ="warning-wrapper ">
20
+ < p > Warning: This documentation is
21
+ for {{project}} < strong > version {{ release|e }}</ strong > .
22
+ — < a href ="http://scikit-learn.org/stable/ ">
23
+ Latest stable version</ a > </ p > </ p >
24
+ </ div >
25
+ {%- endif %}
26
+
18
27
< div class ="header-wrapper ">
19
28
< div class ="header ">
20
29
{%- if logo %}
Original file line number Diff line number Diff line change @@ -34,7 +34,18 @@ div.header-wrapper {
34
34
div.header {
35
35
/* for the logo to correctly expand when showing results
36
36
but remain cut when not */
37
- overflow: hidden;
37
+ overflow: hidden;
38
+ }
39
+
40
+ /* -------- warning header for old versions --------------------------------*/
41
+
42
+ div.warning-wrapper {
43
+ background-color: #ffaaaa;
44
+ max-width: auto;
45
+ text-align: center;
46
+ }
47
+ div.warning-wrapper p {
48
+ margin: 0;
38
49
}
39
50
40
51
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.