Skip to content

Commit

Permalink
strip product name from online version of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
psifertex committed May 3, 2022
1 parent 2bac73c commit df0d85e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sphinx_rtd/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,13 @@
<div class="version">
<script>
window.addEventListener("load", function () {
var appVer = DOCUMENTATION_OPTIONS["VERSION"];
var ver = document.getElementsByClassName("version");
ver[0].innerHTML = DOCUMENTATION_OPTIONS['VERSION'];
if (window.location.protocol.includes("http"))
{
appVer = appVer.split(" ")[0];
}
ver[0].innerHTML = appVer;
});
</script>
</div>
Expand Down

0 comments on commit df0d85e

Please sign in to comment.