File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 1
- ( ( ) => {
1
+ ( function ( ) {
2
2
var latestStable = '0.21' ;
3
3
var goodPaths = [ 'stable' , 'dev' , latestStable ] ;
4
4
var showWarning = ( msg ) => {
16
16
if ( ___location . hostname == 'scikit-learn.org' ) {
17
17
var versionPath = ___location . pathname . split ( '/' ) [ 1 ] ;
18
18
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 ' +
20
20
'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 ' +
22
23
'<a href="https://scikit-learn.org/dev">development</a> ' +
23
- 'versions.' )
24
+ '(unstable) versions.' )
24
25
} 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>.' )
29
32
}
30
33
}
31
34
} ) ( )
You can’t perform that action at this time.
0 commit comments