8000 warnings for old version(0.6) by jaquesgrobler · Pull Request #1542 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

warnings for old version(0.6) #1542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 11, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
# 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']
Expand Down
9 changes: 9 additions & 0 deletions doc/themes/scikit-learn/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,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 %}
Expand Down
13 changes: 12 additions & 1 deletion doc/themes/scikit-learn/static/nature.css_t
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,18 @@ div.header-wrapper {
div.header {
/* for the logo to correctly expand when showing results
but remain cut when not */
overflow: hidden;
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;
}


Expand Down
3 changes: 3 additions & 0 deletions doc/themes/scikit-learn/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
inherit = basic
stylesheet = nature.css
pygments_style = tango

[options]
oldversion = False
0