Skip to content

Commit 0810acd

Browse files
committed
Merge branch 'main' into fpliger/69_add_makefile
2 parents 22e6e14 + 53044cb commit 0810acd

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

GETTING-STARTED.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ This page will guide you through getting started with PyScript.
55
## Development setup
66

77
PyScript does not require any development environment other
8-
than a web browser. We recommend using Chrome.
8+
than a web browser. We recommend using [Chrome](https://www.google.com/chrome/).
99

10-
If you're using [VSCode](https://code.visualstudio.com/) the
10+
If you're using [VSCode](https://code.visualstudio.com/), the
1111
[Live Server extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer)
1212
can be used to reload the page as you edit the HTML file.
1313

@@ -16,16 +16,16 @@ can be used to reload the page as you edit the HTML file.
1616
There is no installation required. In this document we'll use
1717
the PyScript assets served on https://pyscript.net.
1818

19-
If you want to download the source and build it yourself follow
19+
If you want to download the source and build it yourself, follow
2020
the instructions in the README.md file.
2121

2222
## Your first PyScript HTML file
2323

24-
Here's a "Hello, world!" example using PyScript
24+
Here's a "Hello, world!" example using PyScript.
2525

2626
Using your favorite editor create a new file called `hello.html` in
27-
the same directory as your PyScript JavaScript and CSS files with the
28-
following content and open the file in your web browser. You can typically
27+
the same directory as your PyScript, JavaScript, and CSS files with the
28+
following content, and open the file in your web browser. You can typically
2929
open an HTML by double clicking it in your file explorer.
3030

3131
```html
@@ -124,7 +124,8 @@ HTML head. You can also link to `.whl` files directly on disk like in our [toga
124124
</py-env>
125125
```
126126

127-
If your `.whl` is not a pure Python wheel then open a PR or issue with [pyodide](https://github.com/pyodide/pyodide) to get it added here https://github.com/pyodide/pyodide/tree/main/packages. If there's enough popular demand the pyodide team will likely work on supporting your package, regardless things will likely move faster if you make the PR and consult with the team to get unblocked.
127+
If your `.whl` is not a pure Python wheel, then open a PR or issue with [pyodide](https://github.com/pyodide/pyodide) to get it added [here](https://github.com/pyodide/pyodide/tree/main/packages).
128+
If there's enough popular demand the pyodide team will likely work on supporting your package, regardless things will likely move faster if you make the PR and consult with the team to get unblocked.
128129

129130
For example, NumPy and Matplotlib are available. Notice here we're using `<py-script output="plot">`
130131
as a shortcut, which takes the expression on the last line of the script and runs `pyscript.write('plot', fig)`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## What is PyScript
44

5-
### tl;dr
5+
### Summary
66
PyScript is a Pythonic alternative to Scratch, JSFiddle or other "easy to use" programming frameworks, making the web a friendly, hackable, place where anyone can author interesting and interactive applications.
77

88
To get started see [GETTING-STARTED](GETTING-STARTED.md).

pyscriptjs/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function addClasses(element: HTMLElement, classes: Array<string>) {
44
}
55
}
66

7-
const getLastPath = function (str) {
7+
function getLastPath(str: string): string {
88
return str.split('\\').pop().split('/').pop();
9-
};
9+
}
1010

11-
function htmlDecode(input) {
11+
function htmlDecode(input: string): string {
1212
const doc = new DOMParser().parseFromString(ltrim(input), 'text/html');
1313
return doc.documentElement.textContent;
1414
}

0 commit comments

Comments
 (0)