8000 warnings for old version(0.6) · seckcoder/scikit-learn@32068b8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 32068b8

Browse files
committed
warnings for old version(0.6)
1 parent 883a10c commit 32068b8

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

doc/themes/scikit-learn/layout.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
{%- endif %}
1616

1717
{% 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+
&mdash; <a href="http://scikit-learn.org/stable/">
23+
Latest stable version</a></p></p>
24+
</div>
25+
{%- endif %}
26+
1827
<div class="header-wrapper">
1928
<div class="header">
2029
{%- if logo %}

doc/themes/scikit-learn/static/nature.css_t

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,18 @@ div.header-wrapper {
3434
div.header {
3535
/* for the logo to correctly expand when showing results
3636
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;
3849
}
3950

4051

doc/themes/scikit-learn/theme.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
inherit = basic
33
stylesheet = nature.css
44
pygments_style = tango
5+
6+
[options]
7+
oldversion = True

0 commit comments

Comments
 (0)
0