Skip to content

Commit f0be20e

Browse files
why don't the paths match
1 parent d21a812 commit f0be20e

Some content is hidden

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

43 files changed

+490
-8
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tests/tmp/*
2+
_docs/*
23
docs/source/notebooks/tmp/*
34
*.hdf5
45
*.hdf5.gz

_static/css/custom.css

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
/* FONTS */
2+
@font-face {
3+
font-family: 'flexcompute_title';
4+
src: url('ornitons_bold.ttf') format('truetype');
5+
}
6+
7+
@font-face {
8+
font-family: 'flexcompute_subtitle';
9+
src: url('inter_var.woff2') format('truetype');
10+
}
11+
12+
13+
.wy-side-nav-search { background-color: #b5445b; }
14+
.wy-nav-top { background-color: #666666; }
15+
.wy-menu > .caption > span.caption-text { color: #b5445b; }
16+
17+
.wy-nav-content { max-width: 900px !important; }
18+
.wy-table-responsive table td { white-space: normal !important; }
19+
.wy-table-responsive { overflow: visible !important; }
20+
body { line-height: 1.42857143; }
21+
.heading-style, h1, h2, h3, h4, h5, h6 {margin: 1.6rem 0 1rem;}
22+
h1 {font-family: 'flexcompute_title', sans-serif;}
23+
h2, h3, h4, h5, h6 {font-family: 'flexcompute_subtitle', sans-serif;}
24+
p {margin-bottom: 0.5rem; font-family: 'Roboto', sans-serif}
25+
iframe {width: 100%;border: unset}
26+
27+
.toctree-wrapper li[class^=toctree-l1]>a {font-size: 1.4em; text-decoration: none}
28+
.toctree-wrapper li[class^=toctree-l2]>a {font-size: 1em; text-decoration: none}
29+
.toctree-wrapper li[class^=toctree-l3]>a {font-size: 0.9em; text-decoration: none}
30+
.toctree-wrapper li[class^=toctree-l4]>a {font-size: 0.9em; text-decoration: none}
31+
32+
.toctree-wrapper.example-notebook-toc li[class^=toctree-l1] > a::before {
33+
content: "📘 "; /* Emoji before the link */
34+
}
35+
36+
.toctree-wrapper.example-notebook-toc li[class^=toctree-l1] > a:hover::before {
37+
content: "📖 "; /* Change emoji on hover */
38+
}
39+
40+
html[data-theme="light"] {
41+
--pst-color-primary: #b5445b;
42+
--pst-color-secondary: #4772ae;
43+
--tab-color: var(--pst-color-secondary);
44+
--pst-color-link: var(--pst-color-muted);
45+
}
46+
47+
html[data-theme="dark"] {
48+
--pst-color-primary: #4772ae;
49+
--pst-color-secondary: #b5445b;
50+
--tab-color: #9647AE; /*#1C2E46;*/
51+
--pst-color-link: var(--pst-color-muted);
52+
--sd-color-info-bg: var(--pst-color-primary);
53+
}
54+
55+
html[data-theme=dark] .bd-content .nboutput .output_area.rendered_html {
56+
background-color: var(--pst-color-background);
57+
}
58+
59+
img {
60+
margin: 0.1em;
61+
}
62+
63+
/* Experimental below */
64+
.navbar-brand:hover .logo__image .only-light{
65+
opacity: 1;
66+
content: url("_static/img/demo_logo_active.gif");
67+
}
68+
69+
.sphinx-tabs-panel {
70+
background: var(--sd-color-info-bg);
71+
padding: 1em;
72+
border-radius: 0.25rem;
73+
margin-bottom: 0.5em;
74+
border-top-left-radius: 0;
75+
}
76+
77+
.sphinx-tabs-tab {
78+
background: var(--tab-color);
79+
padding: 0.5em;
80+
padding-right: 2em;
81+
padding-left: 2em;
82+
margin-top: 0.5em;
83+
margin-right: 0.5em;
84+
border-top-left-radius: 1em;
85+
border-top-right-radius: 0.1em;
86+
border: 0;
87+
font-weight: bold;
88+
}
89+
90+
.sphinx-tabs-tab[aria-selected="true"] {
91+
background-color: var(--sd-color-info-bg);
92+
}
93+
94+
html[data-theme=dark] .dataframe {
95+
background-color: var(--pst-color-primary);
96+
}
97+
98+
/* TODO make sure this is only for the API tables */
99+
/*table {*/
100+
/* border: solid;*/
101+
/*}*/
102+
103+
/*th {*/
104+
/* border: thin;*/
105+
/*}*/

_static/css/inter_var.woff2

317 KB
Binary file not shown.

_static/css/ornitons_bold.ttf

46.2 KB
Binary file not shown.

_static/img/404.png

4.75 MB

_static/img/AdjointFlow.svg

Lines changed: 4 additions & 0 deletions

_static/img/Tidy3D-logo-white.svg

Lines changed: 1 addition & 0 deletions

_static/img/Tidy3D-logo.svg

Lines changed: 1 addition & 0 deletions

_static/img/apodization.png

24.1 KB

_static/img/beam_waist.png

53.4 KB

_static/img/courant_instability.png

85.8 KB
87.9 KB

_static/img/diagram_Geometry.png

5.72 KB

_static/img/diagram_Monitor.png

13 KB

_static/img/diagram_Simulation.png

132 KB

_static/img/diagram_Source.png

21.9 KB

_static/img/diagram_Structure.png

27.2 KB
62.1 KB
58.4 KB
45.4 KB

_static/img/erosion_dilation.png

250 KB

_static/img/field_update_fdtd.png

39 KB

_static/img/filter_project.png

588 KB

_static/img/logo.png

90.4 KB

_static/img/mode_vs_dipole_source.png

393 KB
21.3 KB
751 KB

_static/img/pml_boundary.png

107 KB

_static/img/snippet.png

831 KB

_static/img/snippet2.png

270 KB

_static/img/structure.png

176 KB
350 KB

_static/img/yee_grid.png

80.3 KB

_static/img/yee_grid_illustration.png

166 KB

_static/js/custom-download.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
(function () {
2+
3+
function getFileAbsoluteUrl(url) {
4+
return new URL(url, window.location.href);;
5+
}
6+
7+
function _xhrDownload(url, fileName) {
8+
let xhr = new XMLHttpRequest();
9+
xhr.open('get', url, true);
10+
xhr.setRequestHeader('Cache-Control', 'no-cache');
11+
xhr.setRequestHeader('Content-type', 'application/ipynb');
12+
xhr.responseType = 'blob';
13+
xhr.onload = function () {
14+
if (this.status === 200) {
15+
let blob = this.response;
16+
let url = window.URL.createObjectURL(blob);
17+
let a = document.createElement('a');
18+
a.href = url;
19+
a.download = fileName;
20+
a.click();
21+
}
22+
};
23+
xhr.onerror = function () {
24+
console.error('error occurred when download file');
25+
};
26+
xhr.send();
27+
}
28+
29+
function handleIpynbDownload(url) {
30+
const fileName = url.split("/").pop();
31+
_xhrDownload(url, fileName)
32+
}
33+
34+
function enhanceDownload() {
35+
window.onload = function () {
36+
setTimeout(() => {
37+
const aTags = document.querySelectorAll(
38+
'a[data-original-title="Download source file"]'
39+
);
40+
// Change the downloading behavior of <a> elements.
41+
// Remove the href attribute and add an onclick event.
42+
aTags.forEach((aTag) => {
43+
aTag.setAttribute("download", "");
44+
const href = aTag.getAttribute("href")
45+
const absoluteUrl = getFileAbsoluteUrl(href);
46+
aTag.setAttribute("onclick", "handleIpynbDownload('" + absoluteUrl + "')")
47+
aTag.setAttribute("href", "javascript:void(0)")
48+
});
49+
}, 1000);
50+
};
51+
}
52+
53+
enhanceDownload()
54+
55+
window.handleIpynbDownload = handleIpynbDownload
56+
57+
})()

_static/logo.svg

Lines changed: 4 additions & 0 deletions

_static/pml_right_wrong.png

22.2 KB

_static/quickstart_fields.png

1.14 MB

_static/ring_resonator.png

2.25 MB

_static/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
3+
Disallow: /notebooks/ # Hidden version

docs/basics/index.rst

Lines changed: 5 additions & 5 deletions

0 commit comments

Comments
 (0)