9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

doc: update README.md

This commit is contained in:
Anthony Donlon
2025-11-20 11:11:35 +08:00
committed by GitHub
parent 87c009f7b4
commit 64d2d6fe34

View File

@@ -12,6 +12,8 @@ Here's an editor for the error page. You can try this out [here](https://virt.mo
## Quickstart for Programmers ## Quickstart for Programmers
### Python
Install `cloudflare-error-page` with pip. Install `cloudflare-error-page` with pip.
``` Bash ``` Bash
@@ -58,6 +60,18 @@ webbrowser.open('error.html')
You can also see this example [here](https://virt.moe/cloudflare-error-page/examples/default). You can also see this example [here](https://virt.moe/cloudflare-error-page/examples/default).
### Node.js
``` JavaScript
// Coming soon!
```
### PHP
``` PHP
// Coming soon!
```
## More Examples ## More Examples
### Catastrophic infrastructure failure ### Catastrophic infrastructure failure
@@ -95,7 +109,7 @@ params = {
![Catastrophic infrastructure failure](https://github.com/donlon/cloudflare-error-page/blob/images/example.png?raw=true) ![Catastrophic infrastructure failure](https://github.com/donlon/cloudflare-error-page/blob/images/example.png?raw=true)
[link](https://virt.moe/cloudflare-error-page/examples/catastrophic). [Link](https://virt.moe/cloudflare-error-page/examples/catastrophic)
### Web server is working ### Web server is working
@@ -127,7 +141,7 @@ params = {
![Web server is working](https://github.com/donlon/cloudflare-error-page/blob/images/example2.png?raw=true) ![Web server is working](https://github.com/donlon/cloudflare-error-page/blob/images/example2.png?raw=true)
[link](https://virt.moe/cloudflare-error-page/examples/working). [Link](https://virt.moe/cloudflare-error-page/examples/working)
### Using Flask server ### Using Flask server
@@ -186,4 +200,4 @@ See [flask_demo.py](examples/flask_demo.py) for embedding the error pages into t
"link": "https://youtube.com/watch?v=dQw4w9WgXcQ", "link": "https://youtube.com/watch?v=dQw4w9WgXcQ",
}, },
} }
``` ```