mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-18 04:01:10 -05:00
Change the metadata format (#457)
* Chnage the metadata format * Add syntax highlighting * have simple_clock example run from local build to test change Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
This commit is contained in:
@@ -217,12 +217,11 @@ Use the `<py-config>` tag to set and configure general metadata about your PyScr
|
||||
|
||||
The `<py-config>` tag can be used as follows:
|
||||
|
||||
```
|
||||
```html
|
||||
<py-config>
|
||||
- autoclose_loader: false
|
||||
- runtimes:
|
||||
-
|
||||
src: "https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js"
|
||||
autoclose_loader: false
|
||||
runtimes:
|
||||
- src: "https://cdn.jsdelivr.net/pyodide/v0.20.0/full/pyodide.js"
|
||||
name: pyodide-0.20
|
||||
lang: python
|
||||
</py-config>
|
||||
@@ -230,13 +229,14 @@ The `<py-config>` tag can be used as follows:
|
||||
|
||||
The following optional values are supported by `<py-config>`:
|
||||
|
||||
* autoclose_loader (boolean): If false, PyScript will not close the loading splash screen when the startup operations finish.
|
||||
* name (string): Name of the user application. This field can be any string and is to be used by the application author for their own customization purposes.
|
||||
* version (string): Version of the user application. This field can be any string and is to be used by the application author for their own customization purposes. It is not related to the PyScript version.
|
||||
* runtimes (List of Runtimes): List of runtime configurations. Each Runtime expects the following fields:
|
||||
* src (string, Required): URL to the runtime source.
|
||||
* name (string): Name of the runtime. This field can be any string and is to be used by the application author for their own customization purposes.
|
||||
* lang (string): Programming language supported by the runtime. This field can be used by the application author to provide clarification. It currently has no implications on how PyScript behaves.
|
||||
* `autoclose_loader` (boolean): If false, PyScript will not close the loading splash screen when the startup operations finish.
|
||||
* `name` (string): Name of the user application. This field can be any string and is to be used by the application author for their own customization purposes.
|
||||
* `version` (string): Version of the user application. This field can be any string and is to be used by the application author for their own customization purposes. It is not related to the PyScript version.
|
||||
* `runtimes` (List of Runtimes): List of runtime configurations. Each Runtime expects the following fields:
|
||||
* `src` (string, Required): URL to the runtime source.
|
||||
* `name` (string): Name of the runtime. This field can be any string and is to be used by the application author for their own customization purposes.
|
||||
* `lang` (string): Programming language supported by the runtime. This field can be used by the application author to provide clarification. It currently has no implications on how PyScript behaves.
|
||||
|
||||
|
||||
## Visual component tags
|
||||
|
||||
|
||||
Reference in New Issue
Block a user