-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
97 changed files
with
761 additions
and
501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 02603f9c04fdd23fb8590753518f61f6 | ||
config: 11765dbe017ca0958d81a30933abfde5 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file added
BIN
+219 KB
_images/02d6afdd9a37968583fd91cdfe6f9982c8d9e9f24b415c79f842377fe299a749.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+45.5 KB
...6d90572ab8a64ab3383b232051382da81b324.png → ...a628b415b96296b117ef89532cb10b0934f25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+455 KB
_images/08a67b10783f26257096eb329a07980b07482bbe0fcd2cd166e70024a83d32b4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+295 KB
_images/0957d52e9e8014340dd2be5dcc4ee56671d001b7a8eafb0e86eab17901d48cb3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+609 KB
_images/0ab7cdd756be7cdbe23080086e19304ffb789a50f6f5e49c14bcc0c4f74c0564.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.3 KB
_images/0b2738de9c12a2135b6fd2c5f89d1830a6123054d13eef09237ed63546f74a44.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+165 KB
...c506969bfdec6f17cb232e5f702fda1eb3fc1.png → ...6778c30c59c3f0ceb4c6d07da752b50e2d1f8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-257 KB
_images/0f515fc9d1ba0b8fb7d3f10e7acad85e884eebaffc32c705dda208e2b268c461.png
Binary file not shown.
Binary file renamed
BIN
+102 KB
...13e2ef8a2be8ed6263f198deb1a76baf4599e.png → ...4433d02a52e61864b5b8efb7960949ccd5459.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+907 KB
...30074fccdf5ae6d8f1df89db574322f0c388b.png → ...f119f99d888dbaeb8952a8761f5f910436e4b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-272 KB
_images/1961401ab667d44ba0514e3f5e0d9e19eb4ed63c06fd47d38d3512399d0b3f2d.png
Binary file not shown.
Binary file renamed
BIN
+146 KB
...a010cb9247f94812528db6f9f3185e6e97e94.png → ...8507a149f7e70c1ebf9c499d2a6e2cbb7ded4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+282 KB
...dce88680bea2f9c7c837ca0a344f7afdc28b1.png → ...930f7771acb46325f564a288b807e5e6aabec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-50.8 KB
_images/1f2f99b8e602ea80aed76181594d2192d64ea81bd026476537cf4ddf5b3c7850.png
Binary file not shown.
Binary file renamed
BIN
+725 KB
...39c4822fe84a2be1bfbe8dab982b900b2bb3b.png → ...b7f86d7564b7ac1e4db5db14adcff47d22143.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-111 KB
_images/2cccd15e787f56cde8f84b93e1e825d9c7b1fa745d064c8d87859b61f0eb38ae.png
Binary file not shown.
Binary file removed
BIN
-296 KB
_images/307aa4bde847b7345b3212cfb24c4201778715d8c1cec269f3e49a838abeee31.png
Binary file not shown.
Binary file renamed
BIN
+40.2 KB
...de9d0368096f501d1b88dce4517032554378a.png → ...1536df91c15cd6eb926f14854141c9b343f9a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-218 KB
_images/3561697975a6c1f6bb6141f28bd99bcab77e0b440365199f1930e99ccbcf109e.png
Binary file not shown.
Binary file added
BIN
+52.3 KB
_images/3561eb6ee206f645b3baf499c66085e222bd823a313a4623d5885de236e96025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-169 KB
_images/3a0b6caef2c0b756e017a623a177ee0d427096e3e858acc344ed81f5143311e2.png
Binary file not shown.
Binary file renamed
BIN
+970 KB
...a564d860e82b0e22f8eb4ddb34cb9cd040071.png → ...2393c958ea0f31d31a2553534616306bdf8b9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+34.8 KB
...997dbc1603f4b406791358f1bfeb0b9a5c8bb.png → ...0e111ea19749a972274f12f7bc6c1db1ba1f1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+1.32 MB
...ec0521df6c048c2b633212756c61a50cfb50f.png → ...f2e0b0e3e09c85695e6aa12985f06e61db6b6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+66.4 KB
_images/5e98936a3e22556b396044cd317fd9fb868ee6b3278e286facf2611b3bb3abcd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-87.6 KB
_images/6cbe3397ad3f4899920e41a6ce0a72a7ade6028932d7b31059a368c6306796f6.png
Diff not rendered.
Binary file renamed
BIN
+4.34 MB
...85887a95dc5e0665e9be930361b267fe1c2ed.png → ...c638799e295884e475ec9118818af59b93d6c.png
Oops, something went wrong.
Binary file added
BIN
+218 KB
_images/7726eb6caebd44a1e93b5b9b8ed1de66e972eb49ed952be42df33e9980a9ec7c.png
Oops, something went wrong.
Binary file renamed
BIN
+149 KB
...2c5360c1abc5f5aaaaf5b16a251ba8cfd8da3.png → ...87ceb5c27cfa9c295dcbb102a1ddce69d1951.png
Oops, something went wrong.
Binary file renamed
BIN
+3.25 MB
...8ca77bcde7a4988e6abc0526cd3a3db6da6cc.png → ...5e09093b870517000b93da38046ede1c9f4ea.png
Oops, something went wrong.
Binary file renamed
BIN
+116 KB
...1e4c935c83668274f71a1e06a243b740bdd33.png → ...07f394d0c72dd73916022a38db7ba23415570.png
Oops, something went wrong.
Binary file renamed
BIN
+118 KB
...433567840365770aaff52d679fdd4a3c137cc.png → ...5699cc607840b6b5558fea8d7d50eb5f336f1.png
Oops, something went wrong.
Binary file renamed
BIN
+138 KB
...5aff25226a0adb950b18876fd3b2793e85d77.png → ...06538d934996f69d7715825b8802c72f7a763.png
Oops, something went wrong.
Binary file removed
BIN
-320 KB
_images/8cfc866bd9d92fb58be27ec740e07a84f52fee4f60def4c58485379e5042eeb3.png
Diff not rendered.
Binary file renamed
BIN
+116 KB
...bb84db4a11a4e3bf9148aeafea0ad7f163595.png → ...800774f7119d9775283f6f2348f89fc53f296.png
Oops, something went wrong.
Binary file renamed
BIN
+101 KB
...7510a74d91a54ff091038a5a4ee4f36583bad.png → ...7032e7452316ae96423db34bf024850832099.png
Oops, something went wrong.
Binary file renamed
BIN
+83.6 KB
...5807a44c349a1fd390b614120c69462c30347.png → ...6fa116189ade1a0fb43da4624ca6f8128cfb4.png
Oops, something went wrong.
Binary file added
BIN
+310 KB
_images/95c4ab9fa4057cad14ef6c81f60786d449d4d2f45deb269cf22cfbf9d638a31f.png
Oops, something went wrong.
Binary file renamed
BIN
+28.8 KB
...64faa67ba1278f83de1480e980628532c6fd2.png → ...f7897d74edb9099f21aac4d2c1ec78dfaa78a.png
Oops, something went wrong.
Binary file removed
BIN
-455 KB
_images/9aff24ab8a6a91d9c621278b3d142dd2d29b25a8b053ece5d3250c1e93537363.png
Diff not rendered.
Binary file renamed
BIN
+123 KB
...a21f6d739c49a0a6aee86a7d2abb75e6889c2.png → ...241bab850ec978fc19e957442bcd6210d9fe5.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
_images/ac7798e8749930cc99fb76c2b1329b237d5e7486d3f9694d7934e97c2b35fc04.png
Oops, something went wrong.
Binary file removed
BIN
-597 KB
_images/af596186e10d6cfeee232ddc89e1b71d63e477d58026d5d4e97c61fb08d4cda9.png
Diff not rendered.
Binary file added
BIN
+319 KB
_images/b12333440768942b3c1ed012e64cf2c59b477aad4aea9bc8dcd2965d36bbb53b.png
Oops, something went wrong.
Binary file added
BIN
+87.7 KB
_images/b3aebed9fd4b0efe0d1cda78041a3aa72ecc0776e5645caa98a10875324d7dc4.png
Oops, something went wrong.
Binary file added
BIN
+257 KB
_images/b5b2dbf1b869e63c6a462fecdc72d1aba51d08f064b637492018d9826c81a8f0.png
Oops, something went wrong.
Binary file added
BIN
+113 KB
_images/b7253029043828b0619076f07f6beda9d5572b3ae3c17abb94cbb9c0d852ead8.png
Oops, something went wrong.
Binary file removed
BIN
-48.2 KB
_images/b87b48abe1a28c9c5abdd62ac977462fa9a63ea7672066ebb86b4c78b3fedf76.png
Diff not rendered.
Binary file renamed
BIN
+57.2 KB
...266147efd58329b71db0241bdd95731b5abfb.png → ...57d2f517236f5cb7c69f7702635e041fe83dd.png
Oops, something went wrong.
Binary file renamed
BIN
+40 KB
...e5cca028216258c0053ca440c690576e94d2b.png → ...a22a7e9ab786990d92ad26534504cb18488e9.png
Oops, something went wrong.
Binary file removed
BIN
-141 KB
_images/c8f8e7b7d7ef20fbc34a59f811617c5c8a27d4c0e2a02aefe61dfd91c6db7229.png
Diff not rendered.
Binary file renamed
BIN
+25.4 KB
...7a6b27091ba27015867a755105a41513122c3.png → ...224624a15a1a49d82651735a44ce49c2174d4.png
Oops, something went wrong.
Binary file added
BIN
+169 KB
_images/ccde599f4803177110a6084ed1f9cfd5084b6d3f90250aeaf7721138ffa09ca7.png
Oops, something went wrong.
Binary file renamed
BIN
+118 KB
...6db769b2dd284e958aa9bc4673c59a456e50a.png → ...4ebdcb6b41092a531b1f659f1ca2a80290bf9.png
Oops, something went wrong.
Binary file renamed
BIN
+199 KB
...2f93238b76d593cab949b37f758a73e3a04ec.png → ...bac832eff33580b773f94131e5f9396c2653b.png
Oops, something went wrong.
Binary file renamed
BIN
+50.6 KB
...d87c12368145d2a7a5946175d7a0d6a0f6744.png → ...1245990308edacfdb2b3c4d12cdace45c3da0.png
Oops, something went wrong.
Binary file renamed
BIN
+584 KB
...24d8d890988b148d47c9c34a5557166fe7848.png → ...ad4c77ac6b0b3a1c743e302695ba50961a97d.png
Oops, something went wrong.
Binary file renamed
BIN
+127 KB
...125cd6d4f8a48278fd20006c33a32bfbe6f1e.png → ...51b6f14ba2205de729e90ee971b0ce0e9cb7a.png
Oops, something went wrong.
Binary file renamed
BIN
+11.8 KB
...6f80e480abf93f6c1938fc3b73d02c11a8c73.png → ...b5d1f833989debb9e86cb2311e50238ae19c6.png
Oops, something went wrong.
Binary file renamed
BIN
+1000 KB
...f70948cd3f488f83455372f292c33502260b9.png → ...a1278a02f9c4357f6d072f29b147b5b77c827.png
Oops, something went wrong.
Binary file removed
BIN
-219 KB
_images/fd068b5f8a21d3e3400e7062bca50a775b392ca9b38dc8c967c3c48affd97ebc.png
Diff not rendered.
Binary file renamed
BIN
+53.7 KB
...e2d840f7577b3aa0c25a67ee56bff37e33c3c.png → ...1bae598a7196b5d83ac10465acaf2fbe3e568.png
Oops, something went wrong.
Binary file removed
BIN
-66.4 KB
_images/fea86a9ae95f9546d2624d0954a0c2d40b78bb9c4a13c2209699de1f89c51296.png
Diff not rendered.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,101 @@ | ||
var sd_labels_by_text = {}; | ||
// @ts-check | ||
|
||
// Extra JS capability for selected tabs to be synced | ||
// The selection is stored in local storage so that it persists across page loads. | ||
|
||
/** | ||
* @type {Record<string, HTMLElement[]>} | ||
*/ | ||
let sd_id_to_elements = {}; | ||
const storageKeyPrefix = "sphinx-design-tab-id-"; | ||
|
||
/** | ||
* Create a key for a tab element. | ||
* @param {HTMLElement} el - The tab element. | ||
* @returns {[string, string, string] | null} - The key. | ||
* | ||
*/ | ||
function create_key(el) { | ||
let syncId = el.getAttribute("data-sync-id"); | ||
let syncGroup = el.getAttribute("data-sync-group"); | ||
if (!syncId || !syncGroup) return null; | ||
return [syncGroup, syncId, syncGroup + "--" + syncId]; | ||
} | ||
|
||
/** | ||
* Initialize the tab selection. | ||
* | ||
*/ | ||
function ready() { | ||
const li = document.getElementsByClassName("sd-tab-label"); | ||
for (const label of li) { | ||
syncId = label.getAttribute("data-sync-id"); | ||
if (syncId) { | ||
label.onclick = onLabelClick; | ||
if (!sd_labels_by_text[syncId]) { | ||
sd_labels_by_text[syncId] = []; | ||
// Find all tabs with sync data | ||
|
||
/** @type {string[]} */ | ||
let groups = []; | ||
|
||
document.querySelectorAll(".sd-tab-label").forEach((label) => { | ||
if (label instanceof HTMLElement) { | ||
let data = create_key(label); | ||
if (data) { | ||
let [group, id, key] = data; | ||
|
||
// add click event listener | ||
// @ts-ignore | ||
label.onclick = onSDLabelClick; | ||
|
||
// store map of key to elements | ||
if (!sd_id_to_elements[key]) { | ||
sd_id_to_elements[key] = []; | ||
} | ||
sd_id_to_elements[key].push(label); | ||
|
||
if (groups.indexOf(group) === -1) { | ||
groups.push(group); | ||
// Check if a specific tab has been selected via URL parameter | ||
const tabParam = new URLSearchParams(window.location.search).get( | ||
group | ||
); | ||
if (tabParam) { | ||
console.log( | ||
"sphinx-design: Selecting tab id for group '" + | ||
group + | ||
"' from URL parameter: " + | ||
tabParam | ||
); | ||
window.sessionStorage.setItem(storageKeyPrefix + group, tabParam); | ||
} | ||
} | ||
|
||
// Check is a specific tab has been selected previously | ||
let previousId = window.sessionStorage.getItem( | ||
storageKeyPrefix + group | ||
); | ||
if (previousId === id) { | ||
// console.log( | ||
// "sphinx-design: Selecting tab from session storage: " + id | ||
// ); | ||
// @ts-ignore | ||
label.previousElementSibling.checked = true; | ||
} | ||
} | ||
sd_labels_by_text[syncId].push(label); | ||
} | ||
} | ||
}); | ||
} | ||
|
||
function onLabelClick() { | ||
// Activate other inputs with the same sync id. | ||
syncId = this.getAttribute("data-sync-id"); | ||
for (label of sd_labels_by_text[syncId]) { | ||
/** | ||
* Activate other tabs with the same sync id. | ||
* | ||
* @this {HTMLElement} - The element that was clicked. | ||
*/ | ||
function onSDLabelClick() { | ||
let data = create_key(this); | ||
if (!data) return; | ||
let [group, id, key] = data; | ||
for (const label of sd_id_to_elements[key]) { | ||
if (label === this) continue; | ||
// @ts-ignore | ||
label.previousElementSibling.checked = true; | ||
} | ||
window.localStorage.setItem("sphinx-design-last-tab", syncId); | ||
window.sessionStorage.setItem(storageKeyPrefix + group, id); | ||
} | ||
|
||
document.addEventListener("DOMContentLoaded", ready, false); |
2 changes: 1 addition & 1 deletion
2
....1e8bd061cd6da7fc9cf755528e8ffc24.min.css → _sphinx_design_static/sphinx-design.min.css
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.