diff --git a/solara/website/pages/documentation/api/computed.py b/solara/website/pages/documentation/api/utilities/computed.py similarity index 78% rename from solara/website/pages/documentation/api/computed.py rename to solara/website/pages/documentation/api/utilities/computed.py index 2100413c5..868ea3a36 100644 --- a/solara/website/pages/documentation/api/computed.py +++ b/solara/website/pages/documentation/api/utilities/computed.py @@ -4,10 +4,9 @@ """ import solara +from solara.website.components import NoPage from solara.website.utils import apidoc -from ..components import NoPage - title = "computed" diff --git a/solara/website/pages/documentation/api/get_kernel_id.py b/solara/website/pages/documentation/api/utilities/get_kernel_id.py similarity index 79% rename from solara/website/pages/documentation/api/get_kernel_id.py rename to solara/website/pages/documentation/api/utilities/get_kernel_id.py index ca4394fa8..6ae57fbf4 100644 --- a/solara/website/pages/documentation/api/get_kernel_id.py +++ b/solara/website/pages/documentation/api/utilities/get_kernel_id.py @@ -2,11 +2,11 @@ # get_kernel_id """ + import solara +from solara.website.components import NoPage from solara.website.utils import apidoc -from . import NoPage - title = "get_kernel_id" diff --git a/solara/website/pages/documentation/api/get_session_id.py b/solara/website/pages/documentation/api/utilities/get_session_id.py similarity index 80% rename from solara/website/pages/documentation/api/get_session_id.py rename to solara/website/pages/documentation/api/utilities/get_session_id.py index eaaf66a51..cf385e167 100644 --- a/solara/website/pages/documentation/api/get_session_id.py +++ b/solara/website/pages/documentation/api/utilities/get_session_id.py @@ -2,11 +2,11 @@ # get_session_id """ + import solara +from solara.website.components import NoPage from solara.website.utils import apidoc -from . import NoPage - title = "get_session_id" diff --git a/solara/website/pages/documentation/api/on_kernel_start.py b/solara/website/pages/documentation/api/utilities/on_kernel_start.py similarity index 94% rename from solara/website/pages/documentation/api/on_kernel_start.py rename to solara/website/pages/documentation/api/utilities/on_kernel_start.py index e3347337d..e36b1dd68 100644 --- a/solara/website/pages/documentation/api/on_kernel_start.py +++ b/solara/website/pages/documentation/api/utilities/on_kernel_start.py @@ -15,7 +15,7 @@ def on_kernel_start(f: Callable[[], Optional[Callable[[], None]]]): (e.g. the cleanup function of the last call to `on_kernel_start` will be called first on kernel shutdown) """ -from . import NoPage +from solara.website.components import NoPage title = "on_kernel_start" Page = NoPage diff --git a/solara/website/pages/documentation/components/computed.py b/solara/website/pages/documentation/components/computed.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/solara/website/pages/documentation/components/get_kernel_id.py b/solara/website/pages/documentation/components/get_kernel_id.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/solara/website/pages/documentation/components/get_session_id.py b/solara/website/pages/documentation/components/get_session_id.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/solara/website/pages/documentation/components/on_kernel_start.py b/solara/website/pages/documentation/components/on_kernel_start.py deleted file mode 100644 index e69de29bb..000000000