Skip to content

Commit

Permalink
fix typo and broken url
Browse files Browse the repository at this point in the history
  • Loading branch information
wang0618 committed Oct 12, 2021
1 parent 4bc0a2d commit de46507
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ if __name__ == "__main__":

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

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

## Demos

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ if __name__ == "__main__":

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

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

## Demos

Expand Down
2 changes: 1 addition & 1 deletion pywebio/platform/path_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def path_deploy(base, port=0, host='',
You can override the index page by add a `index.py` PyWebIO app file to the directory.
:param str static_dir: Directory to store the application static files.
The files in this directory can be accessed via ``http://<host>:<port>/static/files``.
For example, if there is a ``A/B.jpg`` file in ``http_static_dir`` path,
For example, if there is a ``A/B.jpg`` file in ``static_dir`` path,
it can be accessed via ``http://<host>:<port>/static/A/B.jpg``.
:param int reconnect_timeout: The client can reconnect to server within ``reconnect_timeout`` seconds after an unexpected disconnection.
If set to 0 (default), once the client disconnects, the server session will be closed.
Expand Down
2 changes: 1 addition & 1 deletion pywebio/platform/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def start_server(applications, port=0, host='',
Can also use a string to directly set the url of PyWebIO static resources.
:param str static_dir: The directory to store the application static files.
The files in this directory can be accessed via ``http://<host>:<port>/static/files``.
For example, if there is a ``A/B.jpg`` file in ``http_static_dir`` path,
For example, if there is a ``A/B.jpg`` file in ``static_dir`` path,
it can be accessed via ``http://<host>:<port>/static/A/B.jpg``.
:param bool remote_access: Whether to enable remote access, when enabled,
you can get a temporary public network access address for the current application,
Expand Down
4 changes: 2 additions & 2 deletions tools/pywebio-path-deploy
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ parser.add_argument("--http",
action="store_true")
parser.add_argument("--help", help="Print help message", action='help')

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

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

0 comments on commit de46507

Please sign in to comment.