2424_ : Id # type: ignore
2525
2626
27- @add_example (ex_dir = "../ api-examples/Module" )
27+ @add_example (ex_dir = "api-examples/Module" )
2828def ui (fn : Callable [P , R ]) -> Callable [Concatenate [str , P ], R ]:
2929 """Decorator for defining a Shiny module UI function.
3030
3131 This decorator allows you to write the UI portion of a Shiny module.
3232 When your decorated `ui` function is called with an `id`,
3333 the UI elements defined within will automatically be namespaced using that `id`.
3434 This enables reuse of UI components and consistent input/output handling
35- when paired with a `@ module.server` function.
35+ when paired with a :func:`~shiny. module.server() ` function.
3636
3737 Parameters
3838 ----------
@@ -50,7 +50,7 @@ def ui(fn: Callable[P, R]) -> Callable[Concatenate[str, P], R]:
5050 See Also
5151 --------
5252 * Shiny Modules documentation: https://shiny.posit.co/py/docs/modules.html
53- * ~shiny.module.server
53+ * :func:` ~shiny.module.server`
5454 """
5555
5656 def wrapper (id : Id , * args : P .args , ** kwargs : P .kwargs ) -> R :
@@ -60,7 +60,7 @@ def wrapper(id: Id, *args: P.args, **kwargs: P.kwargs) -> R:
6060 return wrapper
6161
6262
63- @add_example (ex_dir = "../ api-examples/Module" )
63+ @add_example (ex_dir = "api-examples/Module" )
6464def server (
6565 fn : Callable [Concatenate [Inputs , Outputs , Session , P ], R ],
6666) -> Callable [Concatenate [str , P ], R ]:
0 commit comments