Explorar el Código

prefer ui namespace for documentation title

Falko Schindler hace 4 meses
padre
commit
8cae0a5fbb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      website/documentation/content/doc/api.py

+ 1 - 1
website/documentation/content/doc/api.py

@@ -101,7 +101,7 @@ def demo(*args, **kwargs) -> Callable[[Callable], Callable]:
             app_name = _find_attribute(nicegui_app, name)
             if ui_name:
                 page.title = f'ui.*{ui_name}*'
-            if app_name:
+            elif app_name:
                 page.title = f'app.*{app_name}*'
         page.parts.append(DocumentationPart(
             title=title_,