Skip to content

Commit 37d2499

Browse files
committed
fix image url error of theme demo
1 parent 5ae977d commit 37d2499

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

demos/theme.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def page():
349349
put_table(
350350
[
351351
[
352-
put_image(f"https://cdn.jsdelivr.net/gh/wang0618/PyWebIO/docs/assets/theme/{name}.png").onclick(
352+
put_image(f"https://cdn.jsdelivr.net/gh/wang0618/PyWebIO@dev/docs/assets/theme/{name}.png").onclick(
353353
partial(go_app, name=name, new_window=False))
354354
for name in ALL_THEME if name != theme],
355355
]

pywebio/platform/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ def config(*, title=None, description=None, theme=None, js_code=None, js_file=[]
327327
:param str theme: Application theme. Available themes are: ``dark``, ``sketchy``, ``minty``, ``yeti``.
328328
You can also use environment variable ``PYWEBIO_THEME`` to specify the theme (with high priority).
329329
330+
:demo_host:`Theme preview demo </theme>`
331+
330332
.. collapse:: Open Source Credits
331333
332334
The dark theme is modified from ForEvolve's `bootstrap-dark <https://github.com/ForEvolve/bootstrap-dark>`_.

0 commit comments

Comments
 (0)