Skip to content

Commit 4da7119

Browse files
Deployed 1cc642e to 1.31 in riddl with MkDocs 1.6.1 and mike 2.2.0
1 parent adb6eaf commit 4da7119

244 files changed

Lines changed: 9518 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

riddl/1.31/404.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,45 @@
188188
});
189189
var input = mount.querySelector("input");
190190
if (input) input.id = "ossum-fullsearch-input";
191+
192+
// Make the WHOLE result row clickable, not just its title.
193+
//
194+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
195+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
196+
// anchor -- so the anchor cannot simply be stretched to fill the row
197+
// without also swallowing the sub-results, which carry their own links.
198+
// Delegating the click is the option that leaves that markup alone.
199+
//
200+
// Bound to the mount rather than the drawer: Pagefind destroys and
201+
// rebuilds the drawer on every keystroke, so a listener on it would be
202+
// thrown away with the first character typed.
203+
mount.addEventListener("click", function (ev) {
204+
// Never hijack a real link. This is what keeps the sub-result links,
205+
// and any link inside an excerpt, behaving normally.
206+
if (ev.target.closest("a")) return;
207+
208+
// A click that finishes selecting text is not a request to navigate.
209+
var sel = window.getSelection();
210+
if (sel && !sel.isCollapsed) return;
211+
212+
// Sub-results are nested INSIDE the parent result, so they must be
213+
// tested first -- otherwise every sub-result would open the top of
214+
// the page instead of its own anchor.
215+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
216+
ev.target.closest(".pagefind-ui__result");
217+
if (!row) return;
218+
219+
var link = row.querySelector("a.pagefind-ui__result-link");
220+
if (!link) return;
221+
222+
// Honour the usual "open in a new tab" chord, which a bare
223+
// location assignment would silently swallow.
224+
if (ev.metaKey || ev.ctrlKey) {
225+
window.open(link.href, "_blank", "noopener");
226+
} else {
227+
window.location.href = link.href;
228+
}
229+
});
191230
});
192231
</script>
193232

riddl/1.31/concepts/adaptor/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

riddl/1.31/concepts/application/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

riddl/1.31/concepts/author/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

riddl/1.31/concepts/comment/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

riddl/1.31/concepts/conditional/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

riddl/1.31/concepts/connector/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

riddl/1.31/concepts/constant/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,45 @@
194194
});
195195
var input = mount.querySelector("input");
196196
if (input) input.id = "ossum-fullsearch-input";
197+
198+
// Make the WHOLE result row clickable, not just its title.
199+
//
200+
// Pagefind renders each hit as a `.pagefind-ui__result` holding one
201+
// `a.pagefind-ui__result-link`, with the excerpt as a SIBLING of that
202+
// anchor -- so the anchor cannot simply be stretched to fill the row
203+
// without also swallowing the sub-results, which carry their own links.
204+
// Delegating the click is the option that leaves that markup alone.
205+
//
206+
// Bound to the mount rather than the drawer: Pagefind destroys and
207+
// rebuilds the drawer on every keystroke, so a listener on it would be
208+
// thrown away with the first character typed.
209+
mount.addEventListener("click", function (ev) {
210+
// Never hijack a real link. This is what keeps the sub-result links,
211+
// and any link inside an excerpt, behaving normally.
212+
if (ev.target.closest("a")) return;
213+
214+
// A click that finishes selecting text is not a request to navigate.
215+
var sel = window.getSelection();
216+
if (sel && !sel.isCollapsed) return;
217+
218+
// Sub-results are nested INSIDE the parent result, so they must be
219+
// tested first -- otherwise every sub-result would open the top of
220+
// the page instead of its own anchor.
221+
var row = ev.target.closest(".pagefind-ui__result-nested") ||
222+
ev.target.closest(".pagefind-ui__result");
223+
if (!row) return;
224+
225+
var link = row.querySelector("a.pagefind-ui__result-link");
226+
if (!link) return;
227+
228+
// Honour the usual "open in a new tab" chord, which a bare
229+
// location assignment would silently swallow.
230+
if (ev.metaKey || ev.ctrlKey) {
231+
window.open(link.href, "_blank", "noopener");
232+
} else {
233+
window.location.href = link.href;
234+
}
235+
});
197236
});
198237
</script>
199238

0 commit comments

Comments
 (0)