Skip to content

Commit

Permalink
fix image url error of theme demo
Browse files Browse the repository at this point in the history
  • Loading branch information
wang0618 committed Nov 7, 2021
1 parent 5ae977d commit 37d2499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demos/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ def page():
put_table(
[
[
put_image(f"https://cdn.jsdelivr.net/gh/wang0618/PyWebIO/docs/assets/theme/{name}.png").onclick(
put_image(f"https://cdn.jsdelivr.net/gh/wang0618/PyWebIO@dev/docs/assets/theme/{name}.png").onclick(
partial(go_app, name=name, new_window=False))
for name in ALL_THEME if name != theme],
]
Expand Down
2 changes: 2 additions & 0 deletions pywebio/platform/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def config(*, title=None, description=None, theme=None, js_code=None, js_file=[]
:param str theme: Application theme. Available themes are: ``dark``, ``sketchy``, ``minty``, ``yeti``.
You can also use environment variable ``PYWEBIO_THEME`` to specify the theme (with high priority).
:demo_host:`Theme preview demo </theme>`
.. collapse:: Open Source Credits
The dark theme is modified from ForEvolve's `bootstrap-dark <https://github.com/ForEvolve/bootstrap-dark>`_.
Expand Down

0 comments on commit 37d2499

Please sign in to comment.