Skip to content

Commit

Permalink
Merge pull request #3234 from eseiler/infra/doc
Browse files Browse the repository at this point in the history
[DOC] Improve version selector
  • Loading branch information
eseiler authored Feb 8, 2024
2 parents 2ddce9d + 63d0f53 commit ffabe95
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
5 changes: 4 additions & 1 deletion test/documentation/seqan3_footer.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
<!-- HTML footer for doxygen 1.9.8-->
<!-- start footer part -->
<!--BEGIN GENERATE_TREEVIEW-->
<!--Doxygen adds <a href="doxygen_crawl.html"/>; which would overwrite version selector.-->
<a href="doxygen_crawl.html"><div style="display: none;">Hide me</div></a>
<script type="text/javascript" charset="utf-8" src="api-stability.js"></script>
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<div id="list_bottom_right" style="text-align:right; float:left; color:black; padding: 0px 0px 0px 10px"></div> <!-- div for version.js -->
<!-- li for version.js -->
<li id="list_bottom_right" class="footer" style="float:left; font-size: 12pt; color: var(--page-foreground-color); font-weight: normal;">Version: <li>
<script type="text/javascript" charset="utf-8" src="version.js"></script>
$navpath
${SEQAN3_FOOTER_HTML_OPTION_POWERED_BY_VERCEL}
Expand Down
8 changes: 2 additions & 6 deletions test/documentation/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,9 @@ function addVersionSelection(arr)
{
// add HTMLs
var version_select = document.createElement("select");
var version_div = document.createElement("div");

version_select.setAttribute("id","version_select");
version_div.setAttribute("style","vertical-align:middle; text-align:right;");
version_div.appendChild(document.createTextNode("Version: "));
version_div.appendChild(version_select);
document.getElementById("list_bottom_right").appendChild(version_div);
version_select.setAttribute("style","color: var(--page-foreground-color);");
document.getElementById("list_bottom_right").appendChild(version_select);

version_select.addEventListener("change", function(){changeVersion(this.id);}, false);

Expand Down
6 changes: 3 additions & 3 deletions test/documentation/version.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!--
<?php
/*
SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
SPDX-License-Identifier: BSD-3-Clause
-->
<?php
*/
/* Jongkyu Kim([email protected]), 2016.01.12
Adaptations by Enrico Seiler ([email protected]), 2020 */
$LOCALDIR = "../";
Expand Down

0 comments on commit ffabe95

Please sign in to comment.