Skip to content

Commit 96cf353

Browse files
zhangqiaorjcYour Name
authored and
Your Name
committed
Make primary sidebar open by default and toggleable.
1 parent 351c13e commit 96cf353

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

docs/_static/style.css

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@import url('https://fonts.googleapis.com/css2?family=Google+Sans');
33

44
/* Base LP sidebar modifications */
5-
body:has(.hero) .sidebar-toggle,
65
body:has(.hero) .bd-sidebar-secondary {
76
display: none !important;
87
}

docs/index.rst

-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
JAX: High performance array computing
22
=====================================
33

4-
.. raw:: html
5-
6-
<script>
7-
/* Along with some CSS settings in style.css (look for `body:has(.hero)`)
8-
this will ensure that the menu sidebar is hidden on the main page. */
9-
if (window.innerWidth >= 960) {
10-
document.getElementById("__primary").checked = true;
11-
}
12-
</script>
13-
14-
154
.. raw:: html
165
:file: hero.html
176

0 commit comments

Comments
 (0)