提交 df15c96b authored 作者: Francesco Visin's avatar Francesco Visin

Display "v: release" correctly

上级 48064140
...@@ -30,10 +30,14 @@ ...@@ -30,10 +30,14 @@
function build_vswitch() { function build_vswitch() {
// Build HTML string for version selector, based on ReadTheDocs theme's versions.html // Build HTML string for version selector, based on ReadTheDocs theme's versions.html
var vlabel = current_version.replace("theano_versions/", "");
if (vlabel == 'theano') {
vlabel = 'release';
}
var vswitch = ['<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions" align=left>']; var vswitch = ['<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions" align=left>'];
vswitch.push('<span class="rst-current-version" data-toggle="rst-current-version">'); vswitch.push('<span class="rst-current-version" data-toggle="rst-current-version">');
vswitch.push('<span class="fa fa-book"></span>'); vswitch.push('<span class="fa fa-book"></span>');
vswitch.push('v: ', current_version.replace("theano_versions/", ""), ' '); vswitch.push('v: ', vlabel, ' ');
vswitch.push('<span class="fa fa-caret-down"></span>'); vswitch.push('<span class="fa fa-caret-down"></span>');
vswitch.push('</span>'); vswitch.push('</span>');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论