Skip to content

Commit

Permalink
Hide non-working links of release/1.0 and main branch
Browse files Browse the repository at this point in the history
as there was no rendered documentation back then
  • Loading branch information
sgrossberndt committed Apr 4, 2024
1 parent 3914a21 commit 246645e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ <h2>Releases</h2>
</ul>
<h2>Main repositories</h2>
<ul id="main">
<li><a href="./main/index.html">main</a></li>
<!-- Not visible until 2.0 has been released
<li><a href="./main/index.html">main</a></li>
-->
<li><a href="./develop/index.html">develop</a></li>
</ul>
<h2>Features</h2>
Expand All @@ -25,7 +27,7 @@ <h2>Bugfixes</h2>
for (let type of types) {
let ul = document.getElementById(type);
for (let branch of branches) {
if (branch.name.startsWith(type + '/')) {
if (branch.name.startsWith(type + '/') && branch.name !== 'release/1.0') {
ul.insertAdjacentHTML("beforeend", `<li><a href="./${branch.name}/index.html">${branch.name}</a></li>`);
}
}
Expand Down

0 comments on commit 246645e

Please sign in to comment.