Skip to content

Commit ea643fb

Browse files
committed
Deployed 74388f1 with MkDocs version: 1.6.1
1 parent cfdd9a3 commit ea643fb

47 files changed

Lines changed: 3836 additions & 416 deletions

Some content is hidden

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

.coverage-tmp.html

Lines changed: 0 additions & 49 deletions
This file was deleted.

404.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

assets/_markdown_exec_pyodide.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ html[data-theme="dark"] {
1313

1414
.pyodide-editor {
1515
width: 100%;
16-
min-height: 200px;
17-
max-height: 400px;
1816
font-size: .85em;
1917
}
2018

@@ -47,4 +45,9 @@ html[data-theme="dark"] {
4745
.pyodide-clickable {
4846
cursor: pointer;
4947
text-align: right;
50-
}
48+
}
49+
50+
/* For themes other than Material. */
51+
.pyodide .twemoji svg {
52+
width: 1rem;
53+
}

assets/_markdown_exec_pyodide.js

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ function clearOutput(element) {
1616
}
1717

1818
async function evaluatePython(pyodide, editor, output, session) {
19-
pyodide.setStdout({ batched: (string) => { writeOutput(output, string); } });
19+
pyodide.setStdout({ batched: (string) => { writeOutput(output, new Option(string).innerHTML); } });
2020
let result, code = editor.getValue();
2121
clearOutput(output);
2222
try {
2323
result = await pyodide.runPythonAsync(code, { globals: getSession(session, pyodide) });
2424
} catch (error) {
25-
writeOutput(output, error);
25+
writeOutput(output, new Option(error.toString()).innerHTML);
2626
}
27-
if (result) writeOutput(output, result);
27+
if (result) writeOutput(output, new Option(result).innerHTML);
2828
hljs.highlightElement(output);
2929
}
3030

@@ -77,7 +77,15 @@ function updateTheme(editor, light, dark) {
7777
});
7878
}
7979

80-
async function setupPyodide(idPrefix, install = null, themeLight = 'tomorrow', themeDark = 'tomorrow_night', session = null) {
80+
async function setupPyodide(
81+
idPrefix,
82+
install = null,
83+
themeLight = 'tomorrow',
84+
themeDark = 'tomorrow_night',
85+
session = null,
86+
minLines = 5,
87+
maxLines = 30,
88+
) {
8189
const editor = ace.edit(idPrefix + "editor");
8290
const run = document.getElementById(idPrefix + "run");
8391
const clear = document.getElementById(idPrefix + "clear");
@@ -88,14 +96,28 @@ async function setupPyodide(idPrefix, install = null, themeLight = 'tomorrow', t
8896
editor.session.setMode("ace/mode/python");
8997
setTheme(editor, getTheme(), themeLight, themeDark);
9098

99+
editor.setOption("minLines", minLines);
100+
editor.setOption("maxLines", maxLines);
101+
102+
// Force editor to resize after setting options
103+
editor.resize();
104+
91105
writeOutput(output, "Initializing...");
92106
let pyodide = await pyodidePromise;
93107
if (install && install.length) {
94-
micropip = pyodide.pyimport("micropip");
95-
for (const package of install)
96-
await micropip.install(package);
108+
try {
109+
micropip = pyodide.pyimport("micropip");
110+
for (const package of install)
111+
await micropip.install(package);
112+
clearOutput(output);
113+
} catch (error) {
114+
clearOutput(output);
115+
writeOutput(output, `Could not install one or more packages: ${install.join(", ")}\n`);
116+
writeOutput(output, new Option(error.toString()).innerHTML);
117+
}
118+
} else {
119+
clearOutput(output);
97120
}
98-
clearOutput(output);
99121
run.onclick = () => evaluatePython(pyodide, editor, output, session);
100122
clear.onclick = () => clearOutput(output);
101123
output.parentElement.parentElement.addEventListener("keydown", (event) => {

assets/_mkdocstrings.css

Lines changed: 104 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
display: inline;
1111
}
1212

13+
/* No text transformation from Material for MkDocs for H5 headings. */
14+
.md-typeset h5 .doc-object-name {
15+
text-transform: none;
16+
}
17+
1318
/* Max width for docstring sections tables. */
1419
.doc .md-typeset__table,
1520
.doc .md-typeset__table table {
@@ -22,17 +27,25 @@
2227
}
2328

2429
/* Defaults in Spacy table style. */
25-
.doc-param-default {
30+
.doc-param-default,
31+
.doc-type_param-default {
2632
float: right;
2733
}
2834

2935
/* Parameter headings must be inline, not blocks. */
30-
.doc-heading-parameter {
36+
.doc-heading-parameter,
37+
.doc-heading-type_parameter {
3138
display: inline;
3239
}
3340

41+
/* Default font size for parameter headings. */
42+
.md-typeset .doc-heading-parameter {
43+
font-size: inherit;
44+
}
45+
3446
/* Prefer space on the right, not the left of parameter permalinks. */
35-
.doc-heading-parameter .headerlink {
47+
.doc-heading-parameter .headerlink,
48+
.doc-heading-type_parameter .headerlink {
3649
margin-left: 0 !important;
3750
margin-right: 0.2rem;
3851
}
@@ -42,37 +55,67 @@
4255
font-weight: bold;
4356
}
4457

58+
/* Backlinks crumb separator. */
59+
.doc-backlink-crumb {
60+
display: inline-flex;
61+
gap: .2rem;
62+
white-space: nowrap;
63+
align-items: center;
64+
vertical-align: middle;
65+
}
66+
.doc-backlink-crumb:not(:first-child)::before {
67+
background-color: var(--md-default-fg-color--lighter);
68+
content: "";
69+
display: inline;
70+
height: 1rem;
71+
--md-path-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6z"/></svg>');
72+
-webkit-mask-image: var(--md-path-icon);
73+
mask-image: var(--md-path-icon);
74+
width: 1rem;
75+
}
76+
.doc-backlink-crumb.last {
77+
font-weight: bold;
78+
}
79+
4580
/* Symbols in Navigation and ToC. */
46-
:root,
81+
:root, :host,
4782
[data-md-color-scheme="default"] {
4883
--doc-symbol-parameter-fg-color: #df50af;
84+
--doc-symbol-type_parameter-fg-color: #df50af;
4985
--doc-symbol-attribute-fg-color: #953800;
5086
--doc-symbol-function-fg-color: #8250df;
5187
--doc-symbol-method-fg-color: #8250df;
5288
--doc-symbol-class-fg-color: #0550ae;
89+
--doc-symbol-type_alias-fg-color: #0550ae;
5390
--doc-symbol-module-fg-color: #5cad0f;
5491

5592
--doc-symbol-parameter-bg-color: #df50af1a;
93+
--doc-symbol-type_parameter-bg-color: #df50af1a;
5694
--doc-symbol-attribute-bg-color: #9538001a;
5795
--doc-symbol-function-bg-color: #8250df1a;
5896
--doc-symbol-method-bg-color: #8250df1a;
5997
--doc-symbol-class-bg-color: #0550ae1a;
98+
--doc-symbol-type_alias-bg-color: #0550ae1a;
6099
--doc-symbol-module-bg-color: #5cad0f1a;
61100
}
62101

63102
[data-md-color-scheme="slate"] {
64103
--doc-symbol-parameter-fg-color: #ffa8cc;
104+
--doc-symbol-type_parameter-fg-color: #ffa8cc;
65105
--doc-symbol-attribute-fg-color: #ffa657;
66106
--doc-symbol-function-fg-color: #d2a8ff;
67107
--doc-symbol-method-fg-color: #d2a8ff;
68108
--doc-symbol-class-fg-color: #79c0ff;
109+
--doc-symbol-type_alias-fg-color: #79c0ff;
69110
--doc-symbol-module-fg-color: #baff79;
70111

71112
--doc-symbol-parameter-bg-color: #ffa8cc1a;
113+
--doc-symbol-type_parameter-bg-color: #ffa8cc1a;
72114
--doc-symbol-attribute-bg-color: #ffa6571a;
73115
--doc-symbol-function-bg-color: #d2a8ff1a;
74116
--doc-symbol-method-bg-color: #d2a8ff1a;
75117
--doc-symbol-class-bg-color: #79c0ff1a;
118+
--doc-symbol-type_alias-bg-color: #79c0ff1a;
76119
--doc-symbol-module-bg-color: #baff791a;
77120
}
78121

@@ -83,7 +126,8 @@ code.doc-symbol {
83126
font-weight: bold;
84127
}
85128

86-
code.doc-symbol-parameter {
129+
code.doc-symbol-parameter,
130+
a code.doc-symbol-parameter {
87131
color: var(--doc-symbol-parameter-fg-color);
88132
background-color: var(--doc-symbol-parameter-bg-color);
89133
}
@@ -92,7 +136,18 @@ code.doc-symbol-parameter::after {
92136
content: "param";
93137
}
94138

95-
code.doc-symbol-attribute {
139+
code.doc-symbol-type_parameter,
140+
a code.doc-symbol-type_parameter {
141+
color: var(--doc-symbol-type_parameter-fg-color);
142+
background-color: var(--doc-symbol-type_parameter-bg-color);
143+
}
144+
145+
code.doc-symbol-type_parameter::after {
146+
content: "type-param";
147+
}
148+
149+
code.doc-symbol-attribute,
150+
a code.doc-symbol-attribute {
96151
color: var(--doc-symbol-attribute-fg-color);
97152
background-color: var(--doc-symbol-attribute-bg-color);
98153
}
@@ -101,7 +156,8 @@ code.doc-symbol-attribute::after {
101156
content: "attr";
102157
}
103158

104-
code.doc-symbol-function {
159+
code.doc-symbol-function,
160+
a code.doc-symbol-function {
105161
color: var(--doc-symbol-function-fg-color);
106162
background-color: var(--doc-symbol-function-bg-color);
107163
}
@@ -110,7 +166,8 @@ code.doc-symbol-function::after {
110166
content: "func";
111167
}
112168

113-
code.doc-symbol-method {
169+
code.doc-symbol-method,
170+
a code.doc-symbol-method {
114171
color: var(--doc-symbol-method-fg-color);
115172
background-color: var(--doc-symbol-method-bg-color);
116173
}
@@ -119,7 +176,8 @@ code.doc-symbol-method::after {
119176
content: "meth";
120177
}
121178

122-
code.doc-symbol-class {
179+
code.doc-symbol-class,
180+
a code.doc-symbol-class {
123181
color: var(--doc-symbol-class-fg-color);
124182
background-color: var(--doc-symbol-class-bg-color);
125183
}
@@ -128,7 +186,19 @@ code.doc-symbol-class::after {
128186
content: "class";
129187
}
130188

131-
code.doc-symbol-module {
189+
190+
code.doc-symbol-type_alias,
191+
a code.doc-symbol-type_alias {
192+
color: var(--doc-symbol-type_alias-fg-color);
193+
background-color: var(--doc-symbol-type_alias-bg-color);
194+
}
195+
196+
code.doc-symbol-type_alias::after {
197+
content: "type";
198+
}
199+
200+
code.doc-symbol-module,
201+
a code.doc-symbol-module {
132202
color: var(--doc-symbol-module-fg-color);
133203
background-color: var(--doc-symbol-module-bg-color);
134204
}
@@ -141,3 +211,27 @@ code.doc-symbol-module::after {
141211
color: inherit;
142212
border-bottom: 1px dotted currentcolor;
143213
}
214+
215+
/* Source code blocks (admonitions). */
216+
:root {
217+
--md-admonition-icon--mkdocstrings-source: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.22 4.97a.75.75 0 0 1 1.06 0l6.5 6.5a.75.75 0 0 1 0 1.06l-6.5 6.5a.749.749 0 0 1-1.275-.326.75.75 0 0 1 .215-.734L21.19 12l-5.97-5.97a.75.75 0 0 1 0-1.06m-6.44 0a.75.75 0 0 1 0 1.06L2.81 12l5.97 5.97a.749.749 0 0 1-.326 1.275.75.75 0 0 1-.734-.215l-6.5-6.5a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 0 1 1.06 0"/></svg>')
218+
}
219+
.md-typeset .admonition.mkdocstrings-source,
220+
.md-typeset details.mkdocstrings-source {
221+
border: none;
222+
padding: 0;
223+
}
224+
.md-typeset .admonition.mkdocstrings-source:focus-within,
225+
.md-typeset details.mkdocstrings-source:focus-within {
226+
box-shadow: none;
227+
}
228+
.md-typeset .mkdocstrings-source > .admonition-title,
229+
.md-typeset .mkdocstrings-source > summary {
230+
background-color: inherit;
231+
}
232+
.md-typeset .mkdocstrings-source > .admonition-title::before,
233+
.md-typeset .mkdocstrings-source > summary::before {
234+
background-color: var(--md-default-fg-color);
235+
-webkit-mask-image: var(--md-admonition-icon--mkdocstrings-source);
236+
mask-image: var(--md-admonition-icon--mkdocstrings-source);
237+
}

assets/javascripts/bundle.9c5b6415.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

assets/javascripts/bundle.f55ec18e.min.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/workers/search.26099bd0.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/javascripts/workers/search.c7c1ca2c.min.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

assets/stylesheets/main.1caf78d2.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)