mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 03:47:19 +08:00
20 lines
726 B
JavaScript
20 lines
726 B
JavaScript
function insert_version_links() {
|
|
var labels = ['dev', '0.4', '0.3'];
|
|
|
|
document.write('<ul class="versions">\n');
|
|
|
|
for (i = 0; i < labels.length; i++){
|
|
document.write('<li>');
|
|
if (typeof(DOCUMENTATION_OPTIONS) !== 'undefined') {
|
|
if ((DOCUMENTATION_OPTIONS['VERSION'] == labels[i]) ||
|
|
(DOCUMENTATION_OPTIONS['VERSION'].match(/dev$/) && (i == 0))) {
|
|
document.write('▸ ');
|
|
}
|
|
}
|
|
document.write('<a href="URL">skimage VERSION</a> </li>\n'
|
|
.replace('VERSION', labels[i])
|
|
.replace('URL', 'http://scikits-image.org/docs/' + labels[i]));
|
|
}
|
|
document.write('</ul>\n');
|
|
}
|