From: Marcelo Trylesinski Date: Thu, 18 Sep 2025 21:16:37 +0000 (+0200) Subject: Replace references from starlette.io to starlette.dev (#3023) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe522c46085c077d98d019df6ed0eabc4c64b2cd;p=thirdparty%2Fstarlette.git Replace references from starlette.io to starlette.dev (#3023) --- diff --git a/CITATION.cff b/CITATION.cff index 1dadc999..5525c0f3 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -15,7 +15,7 @@ authors: family-names: Christie email: tom@tomchristie.com repository-code: "https://github.com/Kludex/starlette" -url: "https://www.starlette.io/" +url: "https://www.starlette.dev/" abstract: Starlette is an ASGI web framework for Python. keywords: - asgi diff --git a/README.md b/README.md index ae6a2846..72d41a85 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ --- -**Documentation**: https://www.starlette.io +**Documentation**: https://www.starlette.dev **Source Code**: https://github.com/Kludex/starlette diff --git a/docs/exceptions.md b/docs/exceptions.md index 75a1c8e2..ef8e755f 100644 --- a/docs/exceptions.md +++ b/docs/exceptions.md @@ -99,7 +99,7 @@ exception_handlers = { } ``` -It's important to notice that in case a [`BackgroundTask`](https://www.starlette.io/background/) raises an exception, +It's important to notice that in case a [`BackgroundTask`](background.md) raises an exception, it will be handled by the `handle_error` function, but at that point, the response was already sent. In other words, the response created by `handle_error` will be discarded. In case the error happens before the response was sent, then it will use the response object - in the above example, the returned `JSONResponse`. diff --git a/docs/index.md b/docs/index.md index c4389591..eaad4d57 100644 --- a/docs/index.md +++ b/docs/index.md @@ -19,7 +19,7 @@ --- -**Documentation**: https://www.starlette.io +**Documentation**: https://www.starlette.dev **Source Code**: https://github.com/Kludex/starlette diff --git a/docs/release-notes.md b/docs/release-notes.md index b0bba7b4..9fdde897 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -731,7 +731,7 @@ changes have occurred. Another significant change with this release is the ### Removed * `UJSONResponse` was removed (this change was intended to be included in 0.14.0). Please see the - [documentation](https://www.starlette.io/responses/#custom-json-serialization) for how to + [documentation](https://www.starlette.dev/responses/#custom-json-serialization) for how to implement responses using custom JSON serialization - [#1074](https://github.com/Kludex/starlette/pull/1047). diff --git a/docs/third-party-packages.md b/docs/third-party-packages.md index f85e0821..4f56e376 100644 --- a/docs/third-party-packages.md +++ b/docs/third-party-packages.md @@ -252,7 +252,7 @@ Provides translations, localization, and timezone support via Babel integration. GitHub -Allows mounting [package resources](https://docs.python.org/3/library/importlib.resources.html#module-importlib.resources) for static data, similar to [StaticFiles](https://www.starlette.io/staticfiles/). +Allows mounting [package resources](https://docs.python.org/3/library/importlib.resources.html#module-importlib.resources) for static data, similar to [StaticFiles](staticfiles.md). ### Sentry @@ -266,4 +266,4 @@ Sentry is a software error detection tool. It offers actionable insights for res GitHub | Documentation -Leveraging Starlette and asyncio, Shiny allows developers to create effortless Python web applications using the power of reactive programming. Shiny eliminates the hassle of manual state management, automatically determining the best execution path for your app at runtime while simultaneously minimizing re-rendering. This means that Shiny can support everything from the simplest dashboard to full-featured web apps. \ No newline at end of file +Leveraging Starlette and asyncio, Shiny allows developers to create effortless Python web applications using the power of reactive programming. Shiny eliminates the hassle of manual state management, automatically determining the best execution path for your app at runtime while simultaneously minimizing re-rendering. This means that Shiny can support everything from the simplest dashboard to full-featured web apps. diff --git a/mkdocs.yml b/mkdocs.yml index 2aa208b5..35267c40 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,6 +1,6 @@ site_name: Starlette site_description: The little ASGI library that shines. -site_url: https://www.starlette.io +site_url: https://www.starlette.dev repo_name: Kludex/starlette repo_url: https://github.com/Kludex/starlette diff --git a/pyproject.toml b/pyproject.toml index f7a722a5..ea9e7b51 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,8 +70,8 @@ required-version = ">=0.8.6" [project.urls] Homepage = "https://github.com/Kludex/starlette" -Documentation = "https://www.starlette.io/" -Changelog = "https://www.starlette.io/release-notes/" +Documentation = "https://www.starlette.dev/" +Changelog = "https://www.starlette.dev/release-notes/" Funding = "https://github.com/sponsors/Kludex" Source = "https://github.com/Kludex/starlette" diff --git a/starlette/applications.py b/starlette/applications.py index 62c0eb16..4ac0ff89 100644 --- a/starlette/applications.py +++ b/starlette/applications.py @@ -166,7 +166,7 @@ class Starlette: def exception_handler(self, exc_class_or_status_code: int | type[Exception]) -> Callable: # type: ignore[type-arg] warnings.warn( "The `exception_handler` decorator is deprecated, and will be removed in version 1.0.0. " - "Refer to https://www.starlette.io/exceptions/ for the recommended approach.", + "Refer to https://www.starlette.dev/exceptions/ for the recommended approach.", DeprecationWarning, ) @@ -192,7 +192,7 @@ class Starlette: """ warnings.warn( "The `route` decorator is deprecated, and will be removed in version 1.0.0. " - "Refer to https://www.starlette.io/routing/ for the recommended approach.", + "Refer to https://www.starlette.dev/routing/ for the recommended approach.", DeprecationWarning, ) @@ -218,7 +218,7 @@ class Starlette: """ warnings.warn( "The `websocket_route` decorator is deprecated, and will be removed in version 1.0.0. " - "Refer to https://www.starlette.io/routing/#websocket-routing for the recommended approach.", + "Refer to https://www.starlette.dev/routing/#websocket-routing for the recommended approach.", DeprecationWarning, ) @@ -238,7 +238,7 @@ class Starlette: """ warnings.warn( "The `middleware` decorator is deprecated, and will be removed in version 1.0.0. " - "Refer to https://www.starlette.io/middleware/#using-middleware for recommended approach.", + "Refer to https://www.starlette.dev/middleware/#using-middleware for recommended approach.", DeprecationWarning, ) assert middleware_type == "http", 'Currently only middleware("http") is supported.' diff --git a/starlette/routing.py b/starlette/routing.py index 96c2df92..3acc5316 100644 --- a/starlette/routing.py +++ b/starlette/routing.py @@ -601,7 +601,7 @@ class Router: warnings.warn( "The on_startup and on_shutdown parameters are deprecated, and they " "will be removed on version 1.0. Use the lifespan parameter instead. " - "See more about it on https://www.starlette.io/lifespan/.", + "See more about it on https://www.starlette.dev/lifespan/.", DeprecationWarning, ) if lifespan: @@ -818,7 +818,7 @@ class Router: """ warnings.warn( "The `route` decorator is deprecated, and will be removed in version 1.0.0." - "Refer to https://www.starlette.io/routing/#http-routing for the recommended approach.", + "Refer to https://www.starlette.dev/routing/#http-routing for the recommended approach.", DeprecationWarning, ) @@ -844,7 +844,7 @@ class Router: """ warnings.warn( "The `websocket_route` decorator is deprecated, and will be removed in version 1.0.0. Refer to " - "https://www.starlette.io/routing/#websocket-routing for the recommended approach.", + "https://www.starlette.dev/routing/#websocket-routing for the recommended approach.", DeprecationWarning, ) @@ -865,7 +865,7 @@ class Router: def on_event(self, event_type: str) -> Callable: # type: ignore[type-arg] warnings.warn( "The `on_event` decorator is deprecated, and will be removed in version 1.0.0. " - "Refer to https://www.starlette.io/lifespan/ for recommended approach.", + "Refer to https://www.starlette.dev/lifespan/ for recommended approach.", DeprecationWarning, )