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
Rewrite the get started tutorial using the ice cream demo (pyscript#985)
* Rewrite the get started tutorial using the ice cream demo
* Update docs/tutorials/getting-started.md
Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
* Address Antonio's comments
Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
Copy file name to clipboardExpand all lines: docs/reference/elements/py-config.md
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
Use the `<py-config>` tag to set and configure general metadata along with declaring dependencies for your PyScript application. The configuration has to be set in either [TOML](https://toml.io/)(default) or [JSON](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON) format.
4
4
5
+
If you are unfamiliar with TOML, consider [reading about it](https://learnxinyminutes.com/docs/toml/) or if you are unfamiliar with JSON, consider reading [freecodecamp's JSON for beginners](https://www.freecodecamp.org/news/what-is-json-a-json-file-example/) guide for more information.
6
+
5
7
The `<py-config>` element should be placed within the `<body>` element.
6
8
7
9
## Attributes
@@ -13,8 +15,7 @@ The `<py-config>` element should be placed within the `<body>` element.
13
15
14
16
## Examples
15
17
16
-
-`<py-config>` using TOML (default)
17
-
18
+
### `<py-config>` using TOML (default)
18
19
```{note}
19
20
Reminder: when using TOML, any Arrays of Tables defined with double-brackets (like `[[runtimes]]` and `[[fetch]]` must come after individual keys (like `paths = ...` and `packages=...`)
20
21
```
@@ -30,7 +31,8 @@ Reminder: when using TOML, any Arrays of Tables defined with double-brackets (li
30
31
</py-config>
31
32
```
32
33
33
-
- JSON config using the `type` attribute.
34
+
### JSON config using the `type` attribute.
35
+
34
36
```html
35
37
<py-configtype="json">
36
38
{
@@ -44,7 +46,8 @@ Reminder: when using TOML, any Arrays of Tables defined with double-brackets (li
0 commit comments