Skip to content

Commit 9122df0

Browse files
committed
change the demo link
1 parent 89ce352 commit 9122df0

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ steps:
2626
- >
2727
docker run --restart=always --name=pywebio-demos -v $PWD:/app_tmp
2828
--label="traefik.http.services.pywebiodemos.loadbalancer.server.port=80"
29-
-d python:3 bash -c "cp -r /app_tmp /app && cd /app && pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple . && python3 -m demos --port=80"
29+
-d python:3 bash -c "cp -r /app_tmp /app && cd /app && pip3 install . && python3 -m demos --port=80"
3030
- sleep 5 # wait container start

README-zh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<img src="https://img.shields.io/github/license/wang0618/PyWebIO.svg" alt="License">
3232
</a>
3333
<br/>
34-
<a href="https://pywebio.readthedocs.io/zh_CN/latest/">[Document]</a> | <a href="http://pywebio-demos.demo.wangweimin.site/">[Demos]</a> | <a href="https://github.com/wang0618/PyWebIO/wiki/%5B%E4%B8%AD%E6%96%87%5D-Why-PyWebIO%3F">[Why PyWebIO?]</a>
34+
<a href="https://pywebio.readthedocs.io/zh_CN/latest/">[Document]</a> | <a href="http://pywebio-demos.pywebio.online/">[Demos]</a> | <a href="https://github.com/wang0618/PyWebIO/wiki/%5B%E4%B8%AD%E6%96%87%5D-Why-PyWebIO%3F">[Why PyWebIO?]</a>
3535
</p>
3636

3737
[English](README.md) | [中文](README-zh.md)
@@ -99,10 +99,10 @@ if __name__ == '__main__':
9999
```
100100

101101

102-
如果没有使用PyWebIO,这只是一个非常简单的脚本,而通过使用PyWebIO提供的输入输出函数,你可以在浏览器中与代码进行交互 [[demo]](http://pywebio-demos.demo.wangweimin.site/bmi)
102+
如果没有使用PyWebIO,这只是一个非常简单的脚本,而通过使用PyWebIO提供的输入输出函数,你可以在浏览器中与代码进行交互 [[demo]](http://pywebio-demos.pywebio.online/bmi)
103103

104104
<p align="center">
105-
<a href="http://pywebio-demos.demo.wangweimin.site/?pywebio_api=bmi">
105+
<a href="http://pywebio-demos.pywebio.online/?pywebio_api=bmi">
106106
<img src="https://raw.githubusercontent.com/wang0618/PyWebIO/dev/docs/assets/demo_zh.gif" alt="PyWebIO demo" width="400px"/>
107107
</a>
108108
</p>
@@ -151,8 +151,8 @@ if __name__ == "__main__":
151151

152152
## Demos
153153

154-
- [基本demo](http://pywebio-demos.demo.wangweimin.site/) : 包含PyWebIO基本输入输出演示和使用PyWebIO编写的小应用
155-
- [数据可视化demo](http://pywebio-charts.demo.wangweimin.site/) : 使用 bokeh、plotly、pyecharts 等库进行数据可视化
154+
- [基本demo](http://pywebio-demos.pywebio.online/) : 包含PyWebIO基本输入输出演示和使用PyWebIO编写的小应用
155+
- [数据可视化demo](http://pywebio-charts.pywebio.online/) : 使用 bokeh、plotly、pyecharts 等库进行数据可视化
156156

157157
## Document
158158

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<img src="https://img.shields.io/github/license/wang0618/PyWebIO.svg" alt="License">
3333
</a>
3434
<br/>
35-
<a href="https://pywebio.readthedocs.io">[Document]</a> | <a href="http://pywebio-demos.demo.wangweimin.site/">[Demos]</a> | <a href="https://github.com/wang0618/PyWebIO/wiki/Why-PyWebIO%3F">[Why PyWebIO?]</a>
35+
<a href="https://pywebio.readthedocs.io">[Document]</a> | <a href="http://pywebio-demos.pywebio.online/">[Demos]</a> | <a href="https://github.com/wang0618/PyWebIO/wiki/Why-PyWebIO%3F">[Why PyWebIO?]</a>
3636
</p>
3737

3838
[English](README.md) | [中文](README-zh.md)
@@ -98,10 +98,10 @@ if __name__ == '__main__':
9898
bmi()
9999
```
100100

101-
This is just a very simple script if you ignore PyWebIO, but using the input and output functions provided by PyWebIO, you can interact with the code in the browser [[demo]](http://pywebio-demos.demo.wangweimin.site/bmi):
101+
This is just a very simple script if you ignore PyWebIO, but using the input and output functions provided by PyWebIO, you can interact with the code in the browser [[demo]](http://pywebio-demos.pywebio.online/bmi):
102102

103103
<p align="center">
104-
<a href="http://pywebio-demos.demo.wangweimin.site/?pywebio_api=bmi">
104+
<a href="http://pywebio-demos.pywebio.online/?pywebio_api=bmi">
105105
<img src="https://raw.githubusercontent.com/wang0618/PyWebIO/dev/docs/assets/demo.gif" alt="PyWebIO demo" width="400px"/>
106106
</a>
107107
</p>
@@ -150,8 +150,8 @@ For integration with other web frameworks, please refer to [document](https://py
150150

151151
## Demos
152152

153-
- [Basic demo](http://pywebio-demos.demo.wangweimin.site/) : PyWebIO basic input and output demos and some small applications written using PyWebIO.
154-
- [Data visualization demo](http://pywebio-charts.demo.wangweimin.site/) : Data visualization with the third-party libraries, e.g., `plotly`, `bokeh`, `pyecharts`.
153+
- [Basic demo](http://pywebio-demos.pywebio.online/) : PyWebIO basic input and output demos and some small applications written using PyWebIO.
154+
- [Data visualization demo](http://pywebio-charts.pywebio.online/) : Data visualization with the third-party libraries, e.g., `plotly`, `bokeh`, `pyecharts`.
155155

156156
## Document
157157

demos/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# The deployment address of the demos module
2-
demo_host = 'http://pywebio-demos.demo.wangweimin.site'
2+
demo_host = 'http://pywebio-demos.pywebio.online'
33

44
# The deployment address of https://github.com/wang0618/pywebio-chart-gallery repo
5-
charts_demo_host = 'http://pywebio-charts.demo.wangweimin.site'
5+
charts_demo_host = 'http://pywebio-charts.pywebio.online'

docs/static/pywebio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let DEMO_URL;
44
if (localStorage.getItem('pywebio_doc_demo_url'))
55
DEMO_URL = localStorage.getItem('pywebio_doc_demo_url');
66
else
7-
DEMO_URL = 'http://pywebio-demos.demo.wangweimin.site/doc_demo';
7+
DEMO_URL = 'http://pywebio-demos.pywebio.online/doc_demo';
88

99
var parseHTML = function (str) {
1010
let tmp = document.implementation.createHTMLDocument();

0 commit comments

Comments
 (0)