Skip to content

Commit c6df1d5

Browse files
authored
Update README.md
1 parent e66314e commit c6df1d5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ This is the CDN root used by [Pygbag](https://pypi.org/project/pygbag/).
1313
If you like it, please [star](https://github.com/pygame-web/pygbag/stargazers) the repository!
1414

1515
## (Very) important points
16-
<details><summary>expand</summary>
1716

1817
**<ins>Also, read the page on [making your code compatible with browser game loop](https://pygame-web.github.io/wiki/python-wasm). You will probably have to change some of your code.</ins>**
1918

@@ -59,10 +58,10 @@ if sys.platform == "emscripten":
5958
### Linux
6059

6160
- When using webusb ftdi serial emulation, use `sudo rmmod ftdi_sio` after plugging devices.
62-
</details>
61+
62+
6363

6464
## Templates
65-
<details><summary>expand</summary>
6665

6766
There is actually nothing specific for projects except naming entry point main.py, because Python-WASM is just a web-friendly version of CPython REPL with [some added facilities](https://discuss.python.org/t/status-of-wasm-in-cpythons-main-branch/15542/12?u=pmp-p). Most desktop code will run (and continue to run) with only a few changes.
6867

@@ -91,8 +90,6 @@ Useful .gitignore additions:
9190
But there are templates to customize runtime startup for 2D and 3D, see [templates](/wiki/pygbag/#templates)
9291

9392

94-
</details>
95-
9693
[controlling pygbag packing and options from pygbag.ini](/wiki/pygbag-configuration)
9794

9895

@@ -108,7 +105,8 @@ But there are templates to customize runtime startup for 2D and 3D, see [templat
108105
- [requesting modules](https://github.com/pygame-web/pkg-porting-wasm/issues)
109106

110107
When importing **non-stdlib** packages (for example, numpy or matplotlib), you must put their import statements at top of `main.py`. You should also add a metadata header as specified by [PEP 723](https://peps.python.org/pep-0723/), for example:
111-
```
108+
109+
```py
112110
# /// script
113111
# dependencies = [
114112
# "six",
@@ -135,7 +133,6 @@ When importing **non-stdlib** packages (for example, numpy or matplotlib), you m
135133

136134
There's number of command line options : read Pygbag's [project description](https://pypi.org/project/pygbag/) for a more detailed overview.
137135

138-
</details>
139136

140137
Visit the [wiki](/wiki/) to get started!
141138

0 commit comments

Comments
 (0)