DOC: Add arrow to indicate current doc version.

This commit is contained in:
Stefan van der Walt
2012-02-08 02:34:46 -08:00
parent d4a23dafd2
commit e548a9fa8b
+6 -1
View File
@@ -4,7 +4,12 @@ function insert_version_links() {
document.write('<ul class="versions">\n');
for (i = 0; i < labels.length; i++){
document.write('<li> <a href="URL">skimage VERSION</a> </li>\n'
document.write('<li>');
if ((DOCUMENTATION_OPTIONS['VERSION'] == labels[i]) ||
(DOCUMENTATION_OPTIONS['VERSION'].match(/dev$/) && (i == 0))) {
document.write('&#9656;&nbsp;');
}
document.write('<a href="URL">skimage VERSION</a> </li>\n'
.replace('VERSION', labels[i])
.replace('URL', 'http://scikits-image.org/docs/' + labels[i]));
}