You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changelog.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Release Notes
2
2
3
+
2023.XX.X
4
+
=========
5
+
6
+
Features
7
+
--------
8
+
9
+
- Added a `docked` field and attribute for the `<py-terminal>` custom element, enabled by default when the terminal is in `auto` mode, and able to dock the terminal at the bottom of the page with auto scroll on new code execution.
Copy file name to clipboardExpand all lines: docs/reference/plugins/py-terminal.md
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,35 @@ This is one of the core plugins in PyScript, which is active by default. With it
4
4
5
5
## Configuration
6
6
7
-
You can control how `<py-terminal>` behaves by setting the value of the `terminal` configuration in your `<py-config>`.
7
+
You can control how `<py-terminal>` behaves by setting the value of the `terminal` configuration in your `<py-config>`, together with the `docked` one.
8
+
9
+
For the **terminal** field, these are the values:
8
10
9
11
| value | description |
10
12
|-------|-------------|
11
13
|`false`| Don't add `<py-terminal>` to the page |
12
14
|`true`| Automatically add a `<py-terminal>` to the page |
13
15
|`"auto"`| This is the default. Automatically add a `<py-terminal auto>`, to the page. The terminal is initially hidden and automatically shown as soon as something writes to `stdout` and/or `stderr`|
14
16
17
+
For the **docked** field, these are the values:
18
+
19
+
| value | description |
20
+
|-------|-------------|
21
+
|`false`| Don't dock `<py-terminal>` to the page |
22
+
|`true`| Automatically dock a `<py-terminal>` to the page |
23
+
|`"docked"`| This is the default. Automatically add a `<py-terminal docked>`, to the page. The terminal, once visible, is automatically shown at the bottom of the page, covering the width of such page |
24
+
25
+
Please note that **docked** mode is currently used as default only when `terminal="auto"`, or *terminal* default, is used.
26
+
27
+
In all other cases it's up to the user decide if a terminal should be docked or not.
0 commit comments