Skip to content
Snippets Groups Projects
Commit c70272e9 authored by Jaques Grobler's avatar Jaques Grobler
Browse files

Merge pull request #1543 from jaquesgrobler/warn10

warnings for old version(0.10)
parents 021a4e0d d022cfb1
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ html_theme = 'scikit-learn'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
html_theme_options = {'oldversion':True}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ['themes']
......
......@@ -31,6 +31,15 @@
{%- endif %}
{% block header %}
{%- if theme_oldversion|tobool %}
<div class="warning-wrapper">
<p>Warning: This documentation is
for {{project}} <strong>version {{ release|e }}</strong>.
&mdash; <a href="http://scikit-learn.org/stable/">
Latest stable version</a></p></p>
</div>
{%- endif %}
<div class="header-wrapper">
<div class="header">
{%- if logo %}
......
......@@ -46,6 +46,16 @@ div.header {
overflow: hidden;
}
/* -------- warning header for old versions --------------------------------*/
div.warning-wrapper {
background-color: #ffaaaa;
max-width: auto;
text-align: center;
}
div.warning-wrapper p {
margin: 0;
}
p.logo {
margin-top: auto;
......
......@@ -2,3 +2,6 @@
inherit = basic
stylesheet = nature.css
pygments_style = tango
[options]
oldversion = False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment