mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-04 21:21:58 +08:00
DOC: Add arrow to indicate current doc version.
This commit is contained in:
@@ -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('▸ ');
|
||||
}
|
||||
document.write('<a href="URL">skimage VERSION</a> </li>\n'
|
||||
.replace('VERSION', labels[i])
|
||||
.replace('URL', 'http://scikits-image.org/docs/' + labels[i]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user