Skip to content

Commit

Permalink
Hide sidebar
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Perrien <[email protected]>
  • Loading branch information
mperrien committed Nov 28, 2023
1 parent 3c43ad6 commit 03dd550
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,4 @@ nav:
- Resources:
- Logos: resources/logos.md
- Slides: resources/slides.md
- Offering: offering.md
6 changes: 6 additions & 0 deletions sources/offering.md
Original file line number Diff line number Diff line change
Expand Up @@ -591,5 +591,11 @@ h1.small-title {
const w = document.getElementById("offering-wrapper");
const t = w.previousElementSibling;
t.classList.add("small-title");

const sidebar = w.parentElement.parentElement.previousElementSibling.previousElementSibling;
const activeListItem = sidebar.querySelector(
".md-nav__item.md-nav__item--active"
);
activeListItem.classList.remove("md-nav__item--active");
</script>
</div>

0 comments on commit 03dd550

Please sign in to comment.