Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jul 22, 2024
1 parent 02105b0 commit a19b37e
Show file tree
Hide file tree
Showing 135 changed files with 29,060 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 1.1.0/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: e02cda8c7dff014f3ff94a6a216e3f43
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added 1.1.0/.doctrees/api.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 1.1.0/.doctrees/environment.pickle
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/0.1_overview.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/2.1_project_info.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/2.2_site_info.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/2.7_window_info.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/3.1_model_view.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/3.2_element_view.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/4.1_edit_export.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/examples/4.2_create_new.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/index.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/installation.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/license.doctree
Binary file not shown.
Binary file added 1.1.0/.doctrees/tutorial.doctree
Binary file not shown.
Empty file added 1.1.0/.nojekyll
Empty file.
Binary file added 1.1.0/_images/element_view.jpg
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 1.1.0/_images/model_view.jpg
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 1.1.0/_images/visualisation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions 1.1.0/_sphinx_design_static/design-tabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
// @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() {
// 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;
}
}
}
});
}

/**
* 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.sessionStorage.setItem(storageKeyPrefix + group, id);
}

document.addEventListener("DOMContentLoaded", ready, false);
1 change: 1 addition & 0 deletions 1.1.0/_sphinx_design_static/sphinx-design.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions 1.1.0/_static/PLACEHOLDER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# container for static files, e.g. logo, banner images, javascript, stylesheets, ...
Loading

0 comments on commit a19b37e

Please sign in to comment.