-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
docversions.js
21 lines (19 loc) · 918 Bytes
/
docversions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var versions = ['dev', '0.23.x', '0.22.x', '0.21.x', '0.20.x', '0.19.x', '0.18.x', '0.17.x', '0.16.x', '0.15.x', '0.14.x', '0.13.x', '0.12.x', '0.11.x', '0.10.x', '0.9.x', '0.8.0', '0.7.0', '0.6', '0.5', '0.4', '0.3'];
function insert_version_links() {
for (i = 0; i < versions.length; i++){
open_list = '<li>'
if (typeof(DOCUMENTATION_OPTIONS) !== 'undefined') {
if ((DOCUMENTATION_OPTIONS['VERSION'] == versions[i]) ||
(DOCUMENTATION_OPTIONS['VERSION'].match(/dev$/) && (i == 0))) {
open_list = '<li id="current">'
}
}
document.write(open_list);
document.write('<a href="URL">skimage VERSION</a> </li>\n'
.replace('VERSION', versions[i])
.replace('URL', 'https://scikit-image.org/docs/' + versions[i]));
}
}
function stable_version() {
return versions[1];
}