Skip to content

Commit 4b3df59

Browse files
committed
Deployed a77611b with MkDocs version: 1.6.1
1 parent 302b139 commit 4b3df59

20 files changed

Lines changed: 180 additions & 288 deletions

File tree

404.html

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

assets/_markdown_exec_pyodide.css

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

assets/_markdown_exec_pyodide.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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,6 +96,12 @@ 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) {

assets/_mkdocstrings.css

Lines changed: 69 additions & 3 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
}
@@ -68,33 +81,41 @@
6881
:root, :host,
6982
[data-md-color-scheme="default"] {
7083
--doc-symbol-parameter-fg-color: #df50af;
84+
--doc-symbol-type_parameter-fg-color: #df50af;
7185
--doc-symbol-attribute-fg-color: #953800;
7286
--doc-symbol-function-fg-color: #8250df;
7387
--doc-symbol-method-fg-color: #8250df;
7488
--doc-symbol-class-fg-color: #0550ae;
89+
--doc-symbol-type_alias-fg-color: #0550ae;
7590
--doc-symbol-module-fg-color: #5cad0f;
7691

7792
--doc-symbol-parameter-bg-color: #df50af1a;
93+
--doc-symbol-type_parameter-bg-color: #df50af1a;
7894
--doc-symbol-attribute-bg-color: #9538001a;
7995
--doc-symbol-function-bg-color: #8250df1a;
8096
--doc-symbol-method-bg-color: #8250df1a;
8197
--doc-symbol-class-bg-color: #0550ae1a;
98+
--doc-symbol-type_alias-bg-color: #0550ae1a;
8299
--doc-symbol-module-bg-color: #5cad0f1a;
83100
}
84101

85102
[data-md-color-scheme="slate"] {
86103
--doc-symbol-parameter-fg-color: #ffa8cc;
104+
--doc-symbol-type_parameter-fg-color: #ffa8cc;
87105
--doc-symbol-attribute-fg-color: #ffa657;
88106
--doc-symbol-function-fg-color: #d2a8ff;
89107
--doc-symbol-method-fg-color: #d2a8ff;
90108
--doc-symbol-class-fg-color: #79c0ff;
109+
--doc-symbol-type_alias-fg-color: #79c0ff;
91110
--doc-symbol-module-fg-color: #baff79;
92111

93112
--doc-symbol-parameter-bg-color: #ffa8cc1a;
113+
--doc-symbol-type_parameter-bg-color: #ffa8cc1a;
94114
--doc-symbol-attribute-bg-color: #ffa6571a;
95115
--doc-symbol-function-bg-color: #d2a8ff1a;
96116
--doc-symbol-method-bg-color: #d2a8ff1a;
97117
--doc-symbol-class-bg-color: #79c0ff1a;
118+
--doc-symbol-type_alias-bg-color: #79c0ff1a;
98119
--doc-symbol-module-bg-color: #baff791a;
99120
}
100121

@@ -115,6 +136,16 @@ code.doc-symbol-parameter::after {
115136
content: "param";
116137
}
117138

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+
118149
code.doc-symbol-attribute,
119150
a code.doc-symbol-attribute {
120151
color: var(--doc-symbol-attribute-fg-color);
@@ -155,6 +186,17 @@ code.doc-symbol-class::after {
155186
content: "class";
156187
}
157188

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+
158200
code.doc-symbol-module,
159201
a code.doc-symbol-module {
160202
color: var(--doc-symbol-module-fg-color);
@@ -169,3 +211,27 @@ code.doc-symbol-module::after {
169211
color: inherit;
170212
border-bottom: 1px dotted currentcolor;
171213
}
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+
}
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog/index.html

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

code_of_conduct/index.html

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

contributing/index.html

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

coverage/index.html

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

0 commit comments

Comments
 (0)