Skip to content

Commit de46507

Browse files
committed
fix typo and broken url
1 parent 4bc0a2d commit de46507

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

README-zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ if __name__ == "__main__":
147147

148148
`http://localhost/bmi` 页面上就可以计算BMI了。
149149

150-
与其他Web框架整合请见[文档](https://pywebio.readthedocs.io/zh_CN/latest/guide.html#web)
150+
与其他Web框架整合请见[文档](https://pywebio.readthedocs.io/zh_CN/latest/advanced.html#integration-with-web-framework)
151151

152152
## Demos
153153

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ if __name__ == "__main__":
146146

147147
Now, you can open `http://localhost/bmi` for BMI calculation.
148148

149-
For integration with other web frameworks, please refer to [document](https://pywebio.readthedocs.io/en/latest/guide.html#integration-with-web-framework).
149+
For integration with other web frameworks, please refer to [document](https://pywebio.readthedocs.io/en/latest/advanced.html#integration-with-web-framework).
150150

151151
## Demos
152152

pywebio/platform/path_deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def path_deploy(base, port=0, host='',
189189
You can override the index page by add a `index.py` PyWebIO app file to the directory.
190190
:param str static_dir: Directory to store the application static files.
191191
The files in this directory can be accessed via ``http://<host>:<port>/static/files``.
192-
For example, if there is a ``A/B.jpg`` file in ``http_static_dir`` path,
192+
For example, if there is a ``A/B.jpg`` file in ``static_dir`` path,
193193
it can be accessed via ``http://<host>:<port>/static/A/B.jpg``.
194194
:param int reconnect_timeout: The client can reconnect to server within ``reconnect_timeout`` seconds after an unexpected disconnection.
195195
If set to 0 (default), once the client disconnects, the server session will be closed.

pywebio/platform/tornado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def start_server(applications, port=0, host='',
308308
Can also use a string to directly set the url of PyWebIO static resources.
309309
:param str static_dir: The directory to store the application static files.
310310
The files in this directory can be accessed via ``http://<host>:<port>/static/files``.
311-
For example, if there is a ``A/B.jpg`` file in ``http_static_dir`` path,
311+
For example, if there is a ``A/B.jpg`` file in ``static_dir`` path,
312312
it can be accessed via ``http://<host>:<port>/static/A/B.jpg``.
313313
:param bool remote_access: Whether to enable remote access, when enabled,
314314
you can get a temporary public network access address for the current application,

tools/pywebio-path-deploy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ parser.add_argument("--http",
1515
action="store_true")
1616
parser.add_argument("--help", help="Print help message", action='help')
1717

18-
group = parser.add_argument_group('websocket arguments', 'Extra arguments when not set --http')
18+
group = parser.add_argument_group('http arguments', 'Extra arguments when set --http')
1919
group.add_argument("--session-expire-seconds", help="Session expiration time, in seconds(default 600s)", type=int,
2020
default=None)
2121
group.add_argument("--session-cleanup-interval", help="Session cleanup interval, in seconds(default 300s)", type=int,
2222
default=None)
2323

24-
group = parser.add_argument_group('http arguments', 'Extra arguments when set --http')
24+
group = parser.add_argument_group('websocket arguments', 'Extra arguments when not set --http')
2525
group.add_argument("--websocket-max-message-size", help="Max bytes of a message which Tornado can accept")
2626
group.add_argument("--websocket-ping-interval", type=int, default=None)
2727
group.add_argument("--websocket-ping-timeout", type=int, default=None)

0 commit comments

Comments
 (0)