hyperbook 0.48.1 → 0.48.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ var hyperbook = (function () {
39
39
  const expanded = collapsibles.some((c) => c.id === id);
40
40
  if (expanded) {
41
41
  collapsibleEl.classList.add("expanded");
42
- } else {
42
+ } else if (!id.startsWith("_nav:")) {
43
43
  collapsibleEl.classList.remove("expanded");
44
44
  }
45
45
  }
@@ -81,6 +81,7 @@ var hyperbook = (function () {
81
81
  function search() {
82
82
  const resultsEl = document.getElementById("search-results");
83
83
  resultsEl.innerHTML = "";
84
+ const searchInputEl = document.querySelector("#search-input");
84
85
  const query = searchInputEl.value;
85
86
  const idx = window.lunr.Index.load(LUNR_INDEX);
86
87
  const documents = SEARCH_DOCUMENTS;
@@ -215,7 +215,6 @@ hyperbook.python = (function () {
215
215
  const testCode = test.code.replace("#SCRIPT#", script);
216
216
 
217
217
  const heading = document.createElement("div");
218
- console.log(test);
219
218
  heading.innerHTML = `== Test ${test.name} ==`;
220
219
  heading.classList.add("test-heading");
221
220
  output.appendChild(heading);
@@ -95,9 +95,18 @@ header.inverted > .branding:hover {
95
95
  border-color: var(--color-spacer);
96
96
  }
97
97
 
98
+ .section > .name > .label {
99
+ color: var(--color-text);
100
+ }
101
+
102
+ .section > .name.active > .label {
103
+ color: var(--color-text);
104
+ }
105
+
98
106
  .section .name.empty {
99
107
  color: var(--color-text-deactivated);
100
108
  cursor: pointer;
109
+ font-style: italic;
101
110
  }
102
111
 
103
112
  .section > .name:hover {