File tree Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Expand file tree Collapse file tree 4 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 126
126
# Theme options are theme-specific and customize the look and feel of a theme
127
127
# further. For a list of options available for each theme, see the
128
128
# documentation.
129
- # html_theme_options = {}
129
+ html_theme_options = {'oldversion' : True }
130
130
131
131
# Add any paths that contain custom themes here, relative to this directory.
132
132
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 %}
Original file line number Diff line number Diff line change @@ -46,6 +46,16 @@ div.header {
46
46
overflow: hidden;
47
47
}
48
48
49
+ /* -------- warning header for old versions --------------------------------*/
50
+
51
+ div.warning-wrapper {
52
+ background-color: #ffaaaa;
53
+ max-width: auto;
54
+ text-align: center;
55
+ }
56
+ div.warning-wrapper p {
57
+ margin: 0;
58
+ }
49
59
50
60
p.logo {
51
61
margin-top: auto;
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