Skip to content

Commit 17cc446

Browse files
Deploy PythonIDE link site
0 parents  commit 17cc446

6 files changed

Lines changed: 431 additions & 0 deletions

File tree

.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"applinks": {
3+
"details": [
4+
{
5+
"appIDs": [
6+
"8GYAXFCC2W.app.pythonide"
7+
],
8+
"components": [
9+
{
10+
"/": "/s/*",
11+
"comment": "Open a community script or MiniApp work."
12+
},
13+
{
14+
"/": "/import",
15+
"comment": "Open a remote import preview."
16+
}
17+
]
18+
}
19+
]
20+
}
21+
}

404.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="zh-CN">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
6+
<script>
7+
window.location.replace('/?path=' + encodeURIComponent(location.pathname + location.search + location.hash));
8+
</script>
9+
<title>Python IDE</title>
10+
</head>
11+
<body></body>
12+
</html>

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link.pythonide.xin

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# PythonIDE Link Site
2+
3+
This directory is a zero-cost GitHub Pages site for:
4+
5+
- `https://link.pythonide.xin/s/{scriptID}` community work shares
6+
- `https://link.pythonide.xin/l/{code}` reserved short links
7+
- `https://link.pythonide.xin/import?url=...` remote import links
8+
- `https://link.pythonide.xin/.well-known/apple-app-site-association` iOS Universal Links
9+
10+
## GitHub Pages Setup
11+
12+
1. Create a new public GitHub repository, for example `pythonide-link`.
13+
2. Copy the contents of this `link-site/` directory to the repository root.
14+
3. In GitHub repository settings, enable Pages from the default branch root.
15+
4. Set the custom domain to `link.pythonide.xin`.
16+
5. Enable **Enforce HTTPS** after GitHub issues the certificate.
17+
6. In the DNS provider for `pythonide.xin`, add:
18+
19+
```text
20+
Type: CNAME
21+
Host: link
22+
Value: <your-github-username>.github.io
23+
TTL: 10 minutes
24+
```
25+
26+
Do not change the root `@` or `www` records used by the main website.
27+
28+
## iOS Requirement
29+
30+
The app entitlements must include:
31+
32+
```text
33+
applinks:link.pythonide.xin
34+
```
35+
36+
The AASA file currently registers `/s/*` and `/import`. Keep `/l/*` out of AASA until the short-link resolver backend is connected, so unfinished short links still open the web fallback instead of launching the app with no resolved target.
37+
38+
The AASA file must be reachable without redirects:
39+
40+
```text
41+
https://link.pythonide.xin/.well-known/apple-app-site-association
42+
```

0 commit comments

Comments
 (0)