Skip to content

Commit 0687dc5

Browse files
committed
Deployed b5080b2 with MkDocs version: 1.6.1
1 parent ccc8461 commit 0687dc5

File tree

33 files changed

+662
-677
lines changed

33 files changed

+662
-677
lines changed

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) {
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: 2 additions & 2 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: 3 additions & 3 deletions
Large diffs are not rendered by default.

credits/index.html

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

index.html

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

index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ pyproject.toml
1919
dependencies = [
2020
"mkdocstrings[python]>=0.18",
2121
]
22-
2322
```
2423

2524
You can also explicitly depend on the handler:
@@ -33,7 +32,6 @@ pyproject.toml
3332
dependencies = [
3433
"mkdocstrings-python",
3534
]
36-
3735
```
3836

3937
## Preview

0 commit comments

Comments
 (0)