Skip to content

Commit 7cea706

Browse files
committed
Fix typos discovered by codespell
1 parent 0d97975 commit 7cea706

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

docs/beginning-pyscript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ behaviour we need to write some Python. Specifically, we need to define the
177177

178178
### main.py
179179

180-
The behaviour of the appication is defined in `main.py`. It looks like this:
180+
The behaviour of the application is defined in `main.py`. It looks like this:
181181

182182
``` python linenums="1" title="main.py"
183183
import arrr

docs/developers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ is through this environment that you contribute to PyScript.
253253
[discussions section](https://github.com/pyscript/pyscript/discussions) of
254254
our GitHub repository.
255255
256-
* Every Tusday is a community video call, the details of which are posted onto
256+
* Every Tuesday is a community video call, the details of which are posted onto
257257
the discord server. Face to face technical discussions happen here.
258258
259259
* Every two weeks, on a Thursday, is a PyScript FUN call, the details of which

docs/user-guide/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ PolyScript's capabilities, upon which PyScript is built, can be summarised as:
7070
* [Hooks](https://pyscript.github.io/polyscript/#hooks), called at clearly
7171
defined moments in the page lifecycle, provide a means of calling user
7272
defined functions to modify and enhance PolyScript's default behaviour.
73-
* [Multipe interpreters](https://pyscript.github.io/polyscript/#interpreter-features)
73+
* [Multiple interpreters](https://pyscript.github.io/polyscript/#interpreter-features)
7474
(in addition to Pyodide and MicroPython, PolyScript works with Lua and Ruby -
7575
although these are beyond the scope of this project).
7676

@@ -223,7 +223,7 @@ It includes many useful features:
223223
"pure Python wheel" error.
224224

225225
There are plans afoot to make WASM a target in PyPI so packages with C
226-
extenions are automatically compiled to WASM.
226+
extensions are automatically compiled to WASM.
227227

228228
### MicroPython
229229

docs/user-guide/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Sometimes many resources are needed to be fetched from a single location and
180180
copied into the same directory on the file system. To aid readability and
181181
reduce repetition, the `files` option comes with a mini
182182
[templating language](https://en.wikipedia.org/wiki/Template_processor)
183-
that allows re-usable placeholders to be defined between curly brackets (`{`
183+
that allows reusable placeholders to be defined between curly brackets (`{`
184184
and `}`). When these placeholders are encountered in the `files` configuration,
185185
their name is replaced with their associated value.
186186

docs/user-guide/dom.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ equivalent values: `["hello", 1, 2, 3]`.
7272
## PyDom
7373

7474
The Standard Web APIs are massive and not always very user-friendly. `PyDom` is a
75-
Python modue that exposes the power of the web with an easy and idiomatic Pythonic
75+
Python module that exposes the power of the web with an easy and idiomatic Pythonic
7676
interface on top.
7777

7878
While the [FFI](#ffi) interface described above focuses on giving full access to
@@ -87,7 +87,7 @@ feature parity. On the contrary, it's intentionally small and focused on the mos
8787
use cases while still providing [a backdoor] access to the full JS API.
8888

8989
`Pydom` draws inspiration from popular Python APIs/Libraries known to be friendly and
90-
easy to learn, and other successful projects related the web as well (for isntance,
90+
easy to learn, and other successful projects related the web as well (for instance,
9191
`JQuery` was a good source of inspiration).
9292

9393
!!! warning
@@ -103,7 +103,7 @@ easy to learn, and other successful projects related the web as well (for isntan
103103

104104
* __`Element`:__ any component that is part of a web page. This is a rough abstraction of an
105105
[HTMLElement](https://developer.mozilla.org/en-US/docs/Glossary/Element). In general,
106-
`pydom` elements always map to an underlying `HTML` `Element` in a we page
106+
`pydom` elements always map to an underlying `HTML` `Element` in a web page
107107
* __`ElementCollection`:__ a collection of one or more `Elements`. It is a rough abstraction
108108
of a [HTMLCollection](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection).
109109
* __Querying:__ a method to query elements on a page based on a
@@ -122,7 +122,7 @@ elements are always in sync and any change of state in one is reflect into the o
122122
#### Creating a new element
123123

124124
New elements can be created by using the `pydom.create` method and passing the type of element
125-
being crated. Here's an example of what it looks like:
125+
being created. Here's an example of what it looks like:
126126

127127
(To execute and explore the following code, click on the "load" button. The result will be
128128
conveniently displayed in the box on the below of the code example)
@@ -166,7 +166,7 @@ requiring any extra logic from the user.
166166
#### Changing the element style
167167

168168
Elements have a `style` attribute that can be used to change the element style rules.
169-
The style attribyte can be used as a dictionary and, to set a style rule for the element,
169+
The style attribute can be used as a dictionary and, to set a style rule for the element,
170170
simply set the correct key on the `.style` attribute. For instance, the following
171171
code changes the background color of the element just created in the example above:
172172

docs/user-guide/plugins.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Plugins
22

33

4-
PyScript, like many other software plaforms, offers a Plugin API that can be used to extend its
4+
PyScript, like many other software platforms, offers a Plugin API that can be used to extend its
55
own functionality without the need to modify its own core. By using this API, users can add new
66
features and distribute them as plugins.
77

@@ -78,9 +78,9 @@ to run all the JavaScript code in your page, as well as to perform layout, reflo
7878
This means that long-running code or blocking calls can or will block the thread, leading to an unresponsive
7979
page and a bad user experience.
8080
* web workers: code executed in workers actually run on "background" threads. This means the code can perform
81-
tasks without interfering with the user interface or other operations being perfomed in the main thread. While
81+
tasks without interfering with the user interface or other operations being performed in the main thread. While
8282
this adds great flexibility it's important to understand that workers actually have limited capabilities when
83-
comparing to code executed on the main thread. For instace, while PyScript offers a DOM API that actually can
83+
comparing to code executed on the main thread. For instance, while PyScript offers a DOM API that actually can
8484
be used in web workers on the browser, by default, does not allow DOM operation in workers. So, in this case,
8585
if you just use `window` and `document` directly mapping the Javascript FFI provided directly by the interpreters
8686
we support (Pyodide and MicroPython). With that in mind, `from pyscript import window, document` will work and
@@ -111,12 +111,12 @@ doing that.
111111

112112
### Lifecycle Events
113113

114-
During the execution of a PyScript application there are specfic events that capture the beginning
114+
During the execution of a PyScript application there are specific events that capture the beginning
115115
or the end of specific stages. Here are the main lifecycle events of a PyScript Application:
116116

117117
Every script or tag running through PyScript inevitably passes through some main or worker thread related tasks.
118118

119-
In both worlds (wither executing code in the main thread or on a web worker), the exact sequence of steps around code execution is the following:
119+
In both worlds (whether executing code in the main thread or on a web worker), the exact sequence of steps around code execution is the following:
120120

121121
* **ready** - the DOM recognized the special script or tag and the associated interpreter is ready to work. A *JS* callback might be useful to instrument the interpreter before anything else happens.
122122
* **before run** - there could be some *JS* code setup specific for the script on the main thread, or the worker. This is similar to a generic *setup* callback in tests.

docs/user-guide/running-offline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Running PyScript Offline
22

3-
Althought users will want to create and share PyScript apps on the internet, there are cases when user want to run PyScript applications offline, in an airgapped fashion. This means that both PyScript core and the interpreter used to run code need to be served with the application itself. In short, the 2 main explicit tasks needed to create an offline PyScript application are:
3+
Although users will want to create and share PyScript apps on the internet, there are cases when user want to run PyScript applications offline, in an airgapped fashion. This means that both PyScript core and the interpreter used to run code need to be served with the application itself. In short, the 2 main explicit tasks needed to create an offline PyScript application are:
44

55
* download and include PyScript core (`core.js`)
66
* download and include the [Python] interpreters you want to use in your Application

0 commit comments

Comments
 (0)