mirror of
https://github.com/pyscript/pyscript.git
synced 2026-03-24 11:00:38 -04:00
Fix examples Ci, Makefile, some doc references (#469)
* fix examples ci, makefile, and update docs * getting started reference
This commit is contained in:
6
.github/workflows/sync-examples.yml
vendored
6
.github/workflows/sync-examples.yml
vendored
@@ -1,11 +1,11 @@
|
||||
name: '[CI] Sync Examples'
|
||||
|
||||
on:
|
||||
push: # Only run on merges into main that modify files under pyscriptjs/examples/
|
||||
push: # Only run on merges into main that modify files under examples/
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- pyscriptjs/examples/**
|
||||
- examples/**
|
||||
- .github/workflows/sync-examples.yml # Test that workflow works when changed
|
||||
|
||||
jobs:
|
||||
@@ -16,7 +16,7 @@ jobs:
|
||||
id-token: write
|
||||
defaults:
|
||||
run:
|
||||
working-directory: pyscriptjs/examples
|
||||
working-directory: examples
|
||||
|
||||
steps:
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ PyScript is a Pythonic alternative to Scratch, JSFiddle, and other "easy to use"
|
||||
|
||||
To get started see the [getting started tutorial](docs/tutorials/getting-started.md).
|
||||
|
||||
For examples see [the pyscript folder](pyscriptjs).
|
||||
For examples see [here](examples).
|
||||
|
||||
### Longer Version
|
||||
PyScript is a meta project that aims to combine multiple open technologies into a framework that allows users to create sophisticated browser applications with Python. It integrates seamlessly with the way the DOM works in the browser and allows users to add Python logic in a way that feels natural both to web and Python developers.
|
||||
@@ -24,7 +24,7 @@ You can then use PyScript components in your html page. PyScript currently imple
|
||||
* `<py-script>`: can be used to define python code that is executable within the web page. The element itself is not rendered to the page and is only used to add logic
|
||||
* `<py-repl>`: creates a REPL component that is rendered to the page as a code editor and allows users to write executable code
|
||||
|
||||
Check out the [pyscriptjs/examples](pyscriptjs/examples) folder for more examples on how to use it, all you need to do is open them in Chrome.
|
||||
Check out the [the examples directory](examples) folder for more examples on how to use it, all you need to do is open them in Chrome.
|
||||
|
||||
## How to Contribute
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ In addition to the [Python Standard Library](https://docs.python.org/3/library/)
|
||||
the `pyscript` module, many 3rd-party OSS packages will work out-of-the-box with PyScript.
|
||||
|
||||
In order to use them, you will need to declare the dependencies using the `<py-env>` tag in the
|
||||
HTML head. You can also link to `.whl` files directly on disk like in our [toga example](https://github.com/pyscript/pyscript/blob/main/pyscriptjs/examples/toga/freedom.html).
|
||||
HTML head. You can also link to `.whl` files directly on disk like in our [toga example](https://github.com/pyscript/pyscript/blob/main/examples/toga/freedom.html).
|
||||
|
||||
```
|
||||
<py-env>
|
||||
|
||||
@@ -3,7 +3,7 @@ git_hash ?= $(shell git log -1 --pretty=format:%h)
|
||||
|
||||
base_dir ?= $(shell git rev-parse --show-toplevel)
|
||||
src_dir ?= $(base_dir)/src
|
||||
examples ?= $(base_dir)/examples
|
||||
examples ?= ../$(base_dir)/examples
|
||||
app_dir ?= $(shell git rev-parse --show-prefix)
|
||||
|
||||
CONDA_EXE := conda
|
||||
|
||||
Reference in New Issue
Block a user