Skip to content

Commit 2ef6518

Browse files
committed
Deployed df4e7c8 with MkDocs version: 1.6.1
1 parent d1394c4 commit 2ef6518

File tree

27 files changed

+139
-74
lines changed

27 files changed

+139
-74
lines changed

404.html

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

assets/_markdown_exec_pyodide.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,9 @@ html[data-theme="dark"] {
4747
.pyodide-clickable {
4848
cursor: pointer;
4949
text-align: right;
50-
}
50+
}
51+
52+
/* For themes other than Material. */
53+
.pyodide .twemoji svg {
54+
width: 1rem;
55+
}

assets/_markdown_exec_pyodide.js

Lines changed: 15 additions & 7 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

@@ -91,11 +91,19 @@ async function setupPyodide(idPrefix, install = null, themeLight = 'tomorrow', t
9191
writeOutput(output, "Initializing...");
9292
let pyodide = await pyodidePromise;
9393
if (install && install.length) {
94-
micropip = pyodide.pyimport("micropip");
95-
for (const package of install)
96-
await micropip.install(package);
94+
try {
95+
micropip = pyodide.pyimport("micropip");
96+
for (const package of install)
97+
await micropip.install(package);
98+
clearOutput(output);
99+
} catch (error) {
100+
clearOutput(output);
101+
writeOutput(output, `Could not install one or more packages: ${install.join(", ")}\n`);
102+
writeOutput(output, new Option(error.toString()).innerHTML);
103+
}
104+
} else {
105+
clearOutput(output);
97106
}
98-
clearOutput(output);
99107
run.onclick = () => evaluatePython(pyodide, editor, output, session);
100108
clear.onclick = () => clearOutput(output);
101109
output.parentElement.parentElement.addEventListener("keydown", (event) => {

assets/_mkdocstrings.css

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,28 @@
4242
font-weight: bold;
4343
}
4444

45+
/* Backlinks crumb separator. */
46+
.doc-backlink-crumb {
47+
display: inline-flex;
48+
gap: .2rem;
49+
white-space: nowrap;
50+
align-items: center;
51+
vertical-align: middle;
52+
}
53+
.doc-backlink-crumb:not(:first-child)::before {
54+
background-color: var(--md-default-fg-color--lighter);
55+
content: "";
56+
display: inline;
57+
height: 1rem;
58+
--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>');
59+
-webkit-mask-image: var(--md-path-icon);
60+
mask-image: var(--md-path-icon);
61+
width: 1rem;
62+
}
63+
.doc-backlink-crumb.last {
64+
font-weight: bold;
65+
}
66+
4567
/* Symbols in Navigation and ToC. */
4668
:root, :host,
4769
[data-md-color-scheme="default"] {
@@ -83,7 +105,8 @@ code.doc-symbol {
83105
font-weight: bold;
84106
}
85107

86-
code.doc-symbol-parameter {
108+
code.doc-symbol-parameter,
109+
a code.doc-symbol-parameter {
87110
color: var(--doc-symbol-parameter-fg-color);
88111
background-color: var(--doc-symbol-parameter-bg-color);
89112
}
@@ -92,7 +115,8 @@ code.doc-symbol-parameter::after {
92115
content: "param";
93116
}
94117

95-
code.doc-symbol-attribute {
118+
code.doc-symbol-attribute,
119+
a code.doc-symbol-attribute {
96120
color: var(--doc-symbol-attribute-fg-color);
97121
background-color: var(--doc-symbol-attribute-bg-color);
98122
}
@@ -101,7 +125,8 @@ code.doc-symbol-attribute::after {
101125
content: "attr";
102126
}
103127

104-
code.doc-symbol-function {
128+
code.doc-symbol-function,
129+
a code.doc-symbol-function {
105130
color: var(--doc-symbol-function-fg-color);
106131
background-color: var(--doc-symbol-function-bg-color);
107132
}
@@ -110,7 +135,8 @@ code.doc-symbol-function::after {
110135
content: "func";
111136
}
112137

113-
code.doc-symbol-method {
138+
code.doc-symbol-method,
139+
a code.doc-symbol-method {
114140
color: var(--doc-symbol-method-fg-color);
115141
background-color: var(--doc-symbol-method-bg-color);
116142
}
@@ -119,7 +145,8 @@ code.doc-symbol-method::after {
119145
content: "meth";
120146
}
121147

122-
code.doc-symbol-class {
148+
code.doc-symbol-class,
149+
a code.doc-symbol-class {
123150
color: var(--doc-symbol-class-fg-color);
124151
background-color: var(--doc-symbol-class-bg-color);
125152
}
@@ -128,7 +155,8 @@ code.doc-symbol-class::after {
128155
content: "class";
129156
}
130157

131-
code.doc-symbol-module {
158+
code.doc-symbol-module,
159+
a code.doc-symbol-module {
132160
color: var(--doc-symbol-module-fg-color);
133161
background-color: var(--doc-symbol-module-bg-color);
134162
}
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/stylesheets/main.ade31302.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.

assets/stylesheets/main.f15084e1.min.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/index.html

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

code_of_conduct/index.html

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

contributing/index.html

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

0 commit comments

Comments
 (0)