Skip to content

Commit 4249c06

Browse files
ntollWebReflection
andauthored
Update to 2024.6.1 release / add community link and README (#71)
* Update to 2024.6.1 release. TODO: fix REPL. * Clean up the fake terminal emulation before actually processing the line * Added a helpful README. * Github link description says the right thing. --------- Co-authored-by: webreflection <[email protected]>
1 parent cf8f1ff commit 4249c06

File tree

3 files changed

+41
-28
lines changed

3 files changed

+41
-28
lines changed

Diff for: README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# PyScript.net Website
2+
3+
This is the static website hosted at
4+
[https://pyscript.net](https://pyscript.net). It is the homepage for the open
5+
source aspects of the wider PyScript project.
6+
7+
## Developer setup
8+
9+
1. Fork, then clone the site locally.
10+
2. Start the site with: `python -m http.server`
11+
3. View the local version of the site at: http://localhost:8000/
12+
4. Make your changes in a well named branch.
13+
5. Check your work locally.
14+
6. Submit your branch as a PR.
15+
16+
## PyScript Elsewhere
17+
18+
The source code for the [documentation](https://docs.pyscript.net/) for
19+
PyScript is found [in this repository](https://github.com/pyscript/docs).
20+
21+
The source code for [PyScript.com](https://pyscript.com/) (the commercial site
22+
for hosting and developing PyScript applications) is an internal project of
23+
[Anaconda](https://anaconda.com) who sponsor the PyScript project.

Diff for: index.html

+17-28
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

8-
<title>PyScript is a platform for Python in the browser.</title>
8+
<title>PyScript is an open source platform for Python in the browser.</title>
99
<meta name="description" content="PyScript">
1010
<meta name="author" content="Anaconda Inc.">
1111
<meta property="og:title" content="Pyscript.net">
@@ -32,8 +32,8 @@
3232
gtag('js', new Date());
3333
gtag('config', 'G-LKETQQ110J');
3434
</script>
35-
<link rel="stylesheet" href="https://pyscript.net/releases/2024.5.2/core.css" />
36-
<script type="module" src="https://pyscript.net/releases/2024.5.2/core.js"></script>
35+
<link rel="stylesheet" href="https://pyscript.net/releases/2024.6.1/core.css" />
36+
<script type="module" src="https://pyscript.net/releases/2024.6.1/core.js"></script>
3737
</head>
3838

3939
<body>
@@ -43,7 +43,8 @@
4343
<header class="site-header">
4444
<div class="logo">
4545
<img src="assets/images/pyscript-sticker-black.svg">
46-
<strong class="subhead">PyScript is a platform for Python in the browser.</strong>
46+
<strong class="subhead">PyScript is an <u>open source</u>
47+
platform for <em>Python in the browser</em>.</strong>
4748
</div>
4849
</header>
4950
<!-- end header -->
@@ -133,29 +134,17 @@ <h2>Examples</h2>
133134
</a>
134135
<!-- end examples badge -->
135136

136-
137-
<!-- begin installation dropdown -->
138-
<div class="dialog dropdown" tabindex="2">
139-
<div class="glyph">
140-
<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
141-
<path fill="none" stroke="#fff" stroke-width="2" d="M9,22 L15,2 M17,17 L22,12 L17,7 M7,17 L2,12 L7,7"/>
142-
</svg>
143-
</div>
144-
145-
<div>
146-
<h2>Install</h2>
147-
<p>Click here for instructions.</p>
148-
</div>
149-
150-
<div class="dropdown-content">
151-
<i class="close" tabindex="2"></i>
152-
<div class="inner">
153-
<p style="font-size:1.15rem;padding-bottom: 0;">Just kidding, you don't need to install anything. ;-) </p>
154-
<p><a href="https://docs.pyscript.net/" target="_blank">Read our docs</a> to learn how to use PyScript.</p>
155-
</div>
156-
</div>
157-
</div>
158-
<!-- end installation dropdown -->
137+
<!-- begin community badge -->
138+
<a href="https://discord.gg/HxvBtukrg2" target="_blank" rel="noreferrer noopener" class="dialog">
139+
<div class="glyph">
140+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M64 64a64 64 0 1 1 128 0A64 64 0 1 1 64 64zM25.9 233.4C29.3 191.9 64 160 105.6 160h44.8c27 0 51 13.4 65.5 34.1c-2.7 1.9-5.2 4-7.5 6.3l-64 64c-21.9 21.9-21.9 57.3 0 79.2L192 391.2V464c0 26.5-21.5 48-48 48H112c-26.5 0-48-21.5-48-48V348.3c-26.5-9.5-44.7-35.8-42.2-65.6l4.1-49.3zM448 64a64 64 0 1 1 128 0A64 64 0 1 1 448 64zM431.6 200.4c-2.3-2.3-4.9-4.4-7.5-6.3c14.5-20.7 38.6-34.1 65.5-34.1h44.8c41.6 0 76.3 31.9 79.7 73.4l4.1 49.3c2.5 29.8-15.7 56.1-42.2 65.6V464c0 26.5-21.5 48-48 48H496c-26.5 0-48-21.5-48-48V391.2l47.6-47.6c21.9-21.9 21.9-57.3 0-79.2l-64-64zM272 240v32h96V240c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l64 64c9.4 9.4 9.4 24.6 0 33.9l-64 64c-6.9 6.9-17.2 8.9-26.2 5.2s-14.8-12.5-14.8-22.2V336H272v32c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-64-64c-9.4-9.4-9.4-24.6 0-33.9l64-64c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2z"/></svg>
141+
</div>
142+
<div>
143+
<h2>Community</h2>
144+
<p>Connect with other PyScript users.</p>
145+
</div>
146+
</a>
147+
<!-- end community badge -->
159148

160149
</div>
161150
<!-- end dialog content -->
@@ -224,7 +213,7 @@ <h2>PyScript is...</h2>
224213
</svg>
225214
</div>
226215
<div>
227-
<span>Project home</span>
216+
<span>Source code</span>
228217
</div>
229218
</a>
230219

Diff for: main.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ async def type_it_in(code):
2929
)
3030
await asyncio.sleep(wait)
3131
python_terminal.terminal.write(char)
32+
python_terminal.terminal.write("\x1b[2K\r>>> ")
3233
python_terminal.process(line.strip())
3334

3435

0 commit comments

Comments
 (0)