Explorar el Código

fixed links to online reference

Rodja Trappe hace 2 años
padre
commit
b4ae5821ce
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      nicegui/page.py
  2. 1 1
      nicegui/routes.py

+ 1 - 1
nicegui/page.py

@@ -189,7 +189,7 @@ class page:
         :param classes: tailwind classes for the container div (default: `'q-pa-md column items-start gap-4'`)
         :param css: CSS definitions
         :param on_connect: optional function or coroutine which is called for each new client connection
-        :param on_page_ready: optional function or coroutine which is called when the websocket is connected;  see `"Yield for Page Ready" <https://nicegui.io/#yield_for_page_ready>`_ as an alternative.
+        :param on_page_ready: optional function or coroutine which is called when the websocket is connected;  see `"Yielding for Page-Ready" <https://nicegui.io/reference#yielding_for_page-ready>`_ as an alternative.
         :param on_disconnect: optional function or coroutine which is called when a client disconnects
         :param shared: whether the page instance is shared between multiple clients (default: `False`)
         """

+ 1 - 1
nicegui/routes.py

@@ -18,7 +18,7 @@ def add_route(self, route: BaseRoute) -> None:
 
     Adds a new `Starlette route <https://www.starlette.io/routing/>`_.
     Routed paths must start with a slash "/".
-    Also see `@ui.get <https://nicegui.io/#get_decorator>`_ and `ui.add_static_files <https://nicegui.io/#get_decorator>`_
+    Also see `@ui.get <https://nicegui.io/reference#get_decorator>`_ and `ui.add_static_files <https://nicegui.io/reference#get_decorator>`_
     for more convenient ways to deliver non-UI content.
 
     :param route: Starlette route including a path and a function to be called