Skip to content

Commit a7a540a

Browse files
authored
Improvements to wording (some due to reviews)
1 parent 92e0704 commit a7a540a

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

versionwarning.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(() => {
1+
(function() {
22
var latestStable = '0.21';
33
var goodPaths = ['stable', 'dev', latestStable];
44
var showWarning = (msg) => {
@@ -16,16 +16,19 @@
1616
if (___location.hostname == 'scikit-learn.org') {
1717
var versionPath = ___location.pathname.split('/')[1];
1818
if (!goodPaths.includes(versionPath)) {
19-
showWarning('You are looking at documentation for an old release of ' +
19+
showWarning('This is documentation for an old release of ' +
2020
'Scikit-learn (version ' + versionPath + '). Try the ' +
21-
'<a href="https://scikit-learn.org">latest release</a> or ' +
21+
'<a href="https://scikit-learn.org">latest stable ' +
22+
'release</a> (version ' + latestStable + ') or ' +
2223
'<a href="https://scikit-learn.org/dev">development</a> ' +
23-
'versions.')
24+
'(unstable) versions.')
2425
} else if (versionPath == 'dev') {
25-
showWarning('You are looking at documentation for the unstable ' +
26-
'development version of Scikit-learn. See also the ' +
27-
'<a href="https://scikit-learn.org">latest release</a> ' +
28-
'version.')
26+
showWarning('This is documentation for the unstable ' +
27+
'development version of Scikit-learn. (To use it, ' +
28+
'<a href="https://scikit-learn.org/stable/developers/advanced_installation.html#installing-nightly-builds">install the nightly build</a>.) ' +
29+
'The latest stable ' +
30+
'release is <a href="https://scikit-learn.org">version ' +
31+
latestStable + '</a>.')
2932
}
3033
}
3134
})()

0 commit comments

Comments
 (0)