10000 Fix examples Ci, Makefile, some doc references (#469) · Siddharth-cmd/pyscript@1bf6cc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bf6cc0

Browse files
authored
Fix examples Ci, Makefile, some doc references (pyscript#469)
* fix examples ci, makefile, and update docs * getting started reference
1 parent a9470ed commit 1bf6cc0

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/sync-examples.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name: '[CI] Sync Examples'
22

33
on:
4-
push: # Only run on merges into main that modify files under pyscriptjs/examples/
4+
push: # Only run on merges into main that modify files under examples/
55
branches:
66
- main
77
paths:
8-
- pyscriptjs/examples/**
8+
- examples/**
99
- .github/workflows/sync-examples.yml # Test that workflow works when changed
1010

1111
jobs:
@@ -16,7 +16,7 @@ jobs:
1616
id-token: write
1717
defaults:
1818
run:
19-
working-directory: pyscriptjs/examples
19+
working-directory: examples
2020

2121
steps:
2222

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PyScript is a Pythonic alternative to Scratch, JSFiddle, and other "easy to use"
77

88
To get started see the [getting started tutorial](docs/tutorials/getting-started.md).
99

10-
For examples see [the pyscript folder](pyscriptjs).
10+
For examples see [here](examples).
1111

1212
### Longer Version
1313
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
2424
* `<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
2525
* `<py-repl>`: creates a REPL component that is rendered to the page as a code editor and allows users to write executable code
2626

27-
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.
27+
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.
2828

2929
## How to Contribute
3030

docs/tutorials/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ In addition to the [Python Standard Library](https://docs.python.org/3/library/)
115115
the `pyscript` module, many 3rd-party OSS packages will work out-of-the-box with PyScript.
116116

117117
In order to use them, you will need to declare the dependencies using the `<py-env>` tag in the
118-
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).
118+
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).
119119

120120
```
121121
<py-env>

pyscriptjs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git_hash ?= $(shell git log -1 --pretty=format:%h)
33

44
base_dir ?= $(shell git rev-parse --show-toplevel)
55
src_dir ?= $(base_dir)/src
6-
examples ?= $(base_dir)/examples
6+
examples ?= ../$(base_dir)/examples
77
app_dir ?= $(shell git rev-parse --show-prefix)
88

99
CONDA_EXE := conda

0 commit comments

Comments
 (0)
0