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

Skip to content

Commit 5b34e54

Browse files
committed
warnings for old version(0.10)
1 parent 021a4e0 commit 5b34e54

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

doc/themes/scikit-learn/layout.html

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

3333
{% 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+
&mdash; <a href="http://scikit-learn.org/stable/">
39+
Latest stable version</a></p></p>
40+
</div>
41+
{%- endif %}
42+
3443
<div class="header-wrapper">
3544
<div class="header">
3645
{%- if logo %}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ div.header {
4646
overflow: hidden;
4747
}
4848

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+
}
4959

5060
p.logo {
5161
margin-top: auto;

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