Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move example to root directory [To Merge with 433] #435

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/sync-examples.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -16,7 +16,7 @@ jobs:
id-token: write
defaults:
run:
working-directory: pyscriptjs/examples
working-directory: examples

steps:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 [examples](examples) folder for more examples on how to use it, all you need to do is open them in Chrome.

## How to Contribute

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
60 changes: 0 additions & 60 deletions examples/altair.html

This file was deleted.

20 changes: 0 additions & 20 deletions examples/antigravity.html

This file was deleted.

45 changes: 0 additions & 45 deletions examples/antigravity.py

This file was deleted.

72 changes: 0 additions & 72 deletions examples/antigravity.svg

This file was deleted.

48 changes: 0 additions & 48 deletions examples/bokeh.html

This file was deleted.

98 changes: 0 additions & 98 deletions examples/bokeh_interactive.html

This file was deleted.