Skip to content

Commit 06291bc

Browse files
committed
deploy: af24ae5
1 parent c400870 commit 06291bc

File tree

119 files changed

+4012
-16205
lines changed

Some content is hidden

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

119 files changed

+4012
-16205
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: a879d1efa58028f74a80c9e5baed4627
3+
config: b00ca45a6830a4f5abaa760d7805e0bb
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

README.html

Lines changed: 104 additions & 77 deletions
Large diffs are not rendered by default.

_sources/nvatutorials.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ On the notebook pages, use the Rocket icon in the top right menu bar to launch a
2222
- [Tutorial 5: Marine Data: Entries and Blobs](sdkpynb:python/navability-sdk/icra-5-marineexample)
2323

2424
:::{tip}
25-
These notebooks are kept in the {NavAbility/Notebooks repo](https://github.com/NavAbility/BinderNotebooks).
26-
:::
25+
These notebooks are kept in the {NavAbility/Notebooks repo](https://github.com/WhereWhenAI/BinderNotebooks).
26+
:::

_sphinx_design_static/design-tabs.js

Lines changed: 89 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,101 @@
1-
var sd_labels_by_text = {};
1+
// @ts-check
22

3+
// Extra JS capability for selected tabs to be synced
4+
// The selection is stored in local storage so that it persists across page loads.
5+
6+
/**
7+
* @type {Record<string, HTMLElement[]>}
8+
*/
9+
let sd_id_to_elements = {};
10+
const storageKeyPrefix = "sphinx-design-tab-id-";
11+
12+
/**
13+
* Create a key for a tab element.
14+
* @param {HTMLElement} el - The tab element.
15+
* @returns {[string, string, string] | null} - The key.
16+
*
17+
*/
18+
function create_key(el) {
19+
let syncId = el.getAttribute("data-sync-id");
20+
let syncGroup = el.getAttribute("data-sync-group");
21+
if (!syncId || !syncGroup) return null;
22+
return [syncGroup, syncId, syncGroup + "--" + syncId];
23+
}
24+
25+
/**
26+
* Initialize the tab selection.
27+
*
28+
*/
329
function ready() {
4-
const li = document.getElementsByClassName("sd-tab-label");
5-
for (const label of li) {
6-
syncId = label.getAttribute("data-sync-id");
7-
if (syncId) {
8-
label.onclick = onLabelClick;
9-
if (!sd_labels_by_text[syncId]) {
10-
sd_labels_by_text[syncId] = [];
30+
// Find all tabs with sync data
31+
32+
/** @type {string[]} */
33+
let groups = [];
34+
35+
document.querySelectorAll(".sd-tab-label").forEach((label) => {
36+
if (label instanceof HTMLElement) {
37+
let data = create_key(label);
38+
if (data) {
39+
let [group, id, key] = data;
40+
41+
// add click event listener
42+
// @ts-ignore
43+
label.onclick = onSDLabelClick;
44+
45+
// store map of key to elements
46+
if (!sd_id_to_elements[key]) {
47+
sd_id_to_elements[key] = [];
48+
}
49+
sd_id_to_elements[key].push(label);
50+
51+
if (groups.indexOf(group) === -1) {
52+
groups.push(group);
53+
// Check if a specific tab has been selected via URL parameter
54+
const tabParam = new URLSearchParams(window.location.search).get(
55+
group
56+
);
57+
if (tabParam) {
58+
console.log(
59+
"sphinx-design: Selecting tab id for group '" +
60+
group +
61+
"' from URL parameter: " +
62+
tabParam
63+
);
64+
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam);
65+
}
66+
}
67+
68+
// Check is a specific tab has been selected previously
69+
let previousId = window.sessionStorage.getItem(
70+
storageKeyPrefix + group
71+
);
72+
if (previousId === id) {
73+
// console.log(
74+
// "sphinx-design: Selecting tab from session storage: " + id
75+
// );
76+
// @ts-ignore
77+
label.previousElementSibling.checked = true;
78+
}
1179
}
12-
sd_labels_by_text[syncId].push(label);
1380
}
14-
}
81+
});
1582
}
1683

17-
function onLabelClick() {
18-
// Activate other inputs with the same sync id.
19-
syncId = this.getAttribute("data-sync-id");
20-
for (label of sd_labels_by_text[syncId]) {
84+
/**
85+
* Activate other tabs with the same sync id.
86+
*
87+
* @this {HTMLElement} - The element that was clicked.
88+
*/
89+
function onSDLabelClick() {
90+
let data = create_key(this);
91+
if (!data) return;
92+
let [group, id, key] = data;
93+
for (const label of sd_id_to_elements[key]) {
2194
if (label === this) continue;
95+
// @ts-ignore
2296
label.previousElementSibling.checked = true;
2397
}
24-
window.localStorage.setItem("sphinx-design-last-tab", syncId);
98+
window.sessionStorage.setItem(storageKeyPrefix + group, id);
2599
}
26100

27101
document.addEventListener("DOMContentLoaded", ready, false);
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

_static/_sphinx_javascript_frameworks_compat.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
1-
/*
2-
* _sphinx_javascript_frameworks_compat.js
3-
* ~~~~~~~~~~
4-
*
5-
* Compatability shim for jQuery and underscores.js.
6-
*
7-
* WILL BE REMOVED IN Sphinx 6.0
8-
* xref RemovedInSphinx60Warning
1+
/* Compatability shim for jQuery and underscores.js.
92
*
3+
* Copyright Sphinx contributors
4+
* Released under the two clause BSD licence
105
*/
116

12-
/**
13-
* select a different prefix for underscore
14-
*/
15-
$u = _.noConflict();
16-
17-
187
/**
198
* small helper function to urldecode strings
209
*

_static/basic.css

Lines changed: 25 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -237,6 +237,10 @@ a.headerlink {
237237
visibility: hidden;
238238
}
239239

240+
a:visited {
241+
color: #551A8B;
242+
}
243+
240244
h1:hover > a.headerlink,
241245
h2:hover > a.headerlink,
242246
h3:hover > a.headerlink,
@@ -324,17 +328,17 @@ aside.sidebar {
324328
p.sidebar-title {
325329
font-weight: bold;
326330
}
331+
327332
nav.contents,
328333
aside.topic,
329-
330334
div.admonition, div.topic, blockquote {
331335
clear: left;
332336
}
333337

334338
/* -- topics ---------------------------------------------------------------- */
339+
335340
nav.contents,
336341
aside.topic,
337-
338342
div.topic {
339343
border: 1px solid #ccc;
340344
padding: 7px;
@@ -375,7 +379,6 @@ div.sidebar > :last-child,
375379
aside.sidebar > :last-child,
376380
nav.contents > :last-child,
377381
aside.topic > :last-child,
378-
379382
div.topic > :last-child,
380383
div.admonition > :last-child {
381384
margin-bottom: 0;
@@ -385,7 +388,6 @@ div.sidebar::after,
385388
aside.sidebar::after,
386389
nav.contents::after,
387390
aside.topic::after,
388-
389391
div.topic::after,
390392
div.admonition::after,
391393
blockquote::after {
@@ -611,25 +613,6 @@ ul.simple p {
611613
margin-bottom: 0;
612614
}
613615

614-
/* Docutils 0.17 and older (footnotes & citations) */
615-
dl.footnote > dt,
616-
dl.citation > dt {
617-
float: left;
618-
margin-right: 0.5em;
619-
}
620-
621-
dl.footnote > dd,
622-
dl.citation > dd {
623-
margin-bottom: 0em;
624-
}
625-
626-
dl.footnote > dd:after,
627-
dl.citation > dd:after {
628-
content: "";
629-
clear: both;
630-
}
631-
632-
/* Docutils 0.18+ (footnotes & citations) */
633616
aside.footnote > span,
634617
div.citation > span {
635618
float: left;
@@ -654,8 +637,6 @@ div.citation > p:last-of-type:after {
654637
clear: both;
655638
}
656639

657-
/* Footnotes & citations ends */
658-
659640
dl.field-list {
660641
display: grid;
661642
grid-template-columns: fit-content(30%) auto;
@@ -668,10 +649,6 @@ dl.field-list > dt {
668649
padding-right: 5px;
669650
}
670651

671-
dl.field-list > dt:after {
672-
content: ":";
673-
}
674-
675652
dl.field-list > dd {
676653
padding-left: 0.5em;
677654
margin-top: 0em;
@@ -697,6 +674,16 @@ dd {
697674
margin-left: 30px;
698675
}
699676

677+
.sig dd {
678+
margin-top: 0px;
679+
margin-bottom: 0px;
680+
}
681+
682+
.sig dl {
683+
margin-top: 0px;
684+
margin-bottom: 0px;
685+
}
686+
700687
dl > dd:last-child,
701688
dl > dd:last-child > :last-child {
702689
margin-bottom: 0;
@@ -765,6 +752,14 @@ abbr, acronym {
765752
cursor: help;
766753
}
767754

755+
.translated {
756+
background-color: rgba(207, 255, 207, 0.2)
757+
}
758+
759+
.untranslated {
760+
background-color: rgba(255, 207, 207, 0.2)
761+
}
762+
768763
/* -- code displays --------------------------------------------------------- */
769764

770765
pre {

0 commit comments

Comments
 (0)