Skip to content

Commit b194674

Browse files
authored
[MRG] MNT Fixes link to whats new in front page (scikit-learn#16009) (scikit-learn#16032)
1 parent e5698bd commit b194674

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
# The short X.Y version.
8989
import sklearn
9090
version = parse(sklearn.__version__).base_version
91+
version = ".".join(version.split(".")[:2])
9192
# The full version, including alpha/beta/rc tags.
9293
release = sklearn.__version__
9394

doc/templates/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<h1 class="sk-landing-header text-white text-monospace">scikit-learn</h1>
99
<h4 class="sk-landing-subheader text-white font-italic mb-3">Machine Learning in Python</h4>
1010
<a class="btn sk-landing-btn mb-1" href="{{ pathto('getting_started') }}" role="button">Getting Started</a>
11-
<a class="btn sk-landing-btn mb-1" href="whats_new/v{{ version }}.html" role="button">What's New in {{ version }}</a>
11+
<a class="btn sk-landing-btn mb-1" href="whats_new/v{{ version }}.html" role="button">What's New in {{ release }}</a>
1212
<a class="btn sk-landing-btn mb-1" href="https://github.com/scikit-learn/scikit-learn" role="button">GitHub</a>
1313
</div>
1414
<div class="col-md-6 d-flex">
@@ -156,6 +156,7 @@ <h4 class="sk-landing-call-header">News</h4>
156156
<li><strong>On-going development:</strong>
157157
<a href="https://scikit-learn.org/dev/whats_new.html"><strong>What's new</strong> (Changelog)</a>
158158
</li>
159+
<li><strong>January 2020.</strong> scikit-learn 0.22.1 is available for download (<a href="whats_new/v0.22.html#version-0-22-1">Changelog</a>).
159160
<li><strong>December 2019.</strong> scikit-learn 0.22 is available for download (<a href="whats_new/v0.22.html#version-0-22-0">Changelog</a>).
160161
</li>
161162
<li><strong>Scikit-learn from 0.21 requires Python 3.5 or greater.</strong>

doc/themes/scikit-learn-modern/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
{%- if pagename != "install" %}
7878
<div class="alert alert-danger p-1 mb-2" role="alert">
7979
<p class="text-center mb-0">
80-
<strong>scikit-learn {{ version }}</strong><br/>
80+
<strong>scikit-learn {{ release }}</strong><br/>
8181
<a href="http://scikit-learn.org/dev/versions.html">Other versions</a>
8282
</p>
8383
</div>

0 commit comments

Comments
 (0)