]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
chore: reference starlette.dev instead of www version (#3028)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sat, 20 Sep 2025 10:53:13 +0000 (12:53 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Sep 2025 10:53:13 +0000 (10:53 +0000)
CITATION.cff
README.md
docs/index.md
docs/overrides/main.html
docs/release-notes.md
mkdocs.yml
pyproject.toml
starlette/applications.py
starlette/routing.py

index 5525c0f3a3f369db9f8dc073c03303cfce411aa2..e5a230b1e16400a3d58874c19fb940bb2716394d 100644 (file)
@@ -15,7 +15,7 @@ authors:
     family-names: Christie
     email: tom@tomchristie.com
 repository-code: "https://github.com/Kludex/starlette"
-url: "https://www.starlette.dev/"
+url: "https://starlette.dev/"
 abstract: Starlette is an ASGI web framework for Python.
 keywords:
   - asgi
index 72d41a85254e69f9652ad872d4eed6d52980593c..cc056a523ab43335e818d5cbac225898886a0cca 100644 (file)
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@
 
 ---
 
-**Documentation**: <a href="https://www.starlette.dev/" target="_blank">https://www.starlette.dev</a>
+**Documentation**: <a href="https://starlette.dev/" target="_blank">https://starlette.dev</a>
 
 **Source Code**: <a href="https://github.com/Kludex/starlette" target="_blank">https://github.com/Kludex/starlette</a>
 
index eaad4d57153530fcd396d9691c2380cd9eff660c..6ff2c2a1f40128d465a7f879e06d032c7fdd803e 100644 (file)
@@ -19,7 +19,7 @@
 
 ---
 
-**Documentation**: <a href="https://www.starlette.dev/" target="_blank">https://www.starlette.dev</a>
+**Documentation**: <a href="https://starlette.dev/" target="_blank">https://starlette.dev</a>
 
 **Source Code**: <a href="https://github.com/Kludex/starlette" target="_blank">https://github.com/Kludex/starlette</a>
 
index d21da26554261a23ffc98356b513d27b1c35caed..26967829898f47c9bbfbdc089d8f96450495d3f0 100644 (file)
@@ -5,7 +5,7 @@
   <script>
     // Redirect starlette.io to starlette.dev
     if (window.location.hostname === 'www.starlette.io' || window.location.hostname === 'starlette.io') {
-      const newUrl = window.location.href.replace(/^https?:\/\/(www\.)?starlette\.io/, 'https://www.starlette.dev');
+      const newUrl = window.location.href.replace(/^https?:\/\/(www\.)?starlette\.io/, 'https://starlette.dev');
       window.location.replace(newUrl);
     }
   </script>
index 9fdde897dcbed9b68771cff119dc18a95211bcc2..7b26a45cee78276393d704a19a2450b905513651 100644 (file)
@@ -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.dev/responses/#custom-json-serialization) for how to
+  [documentation](https://starlette.dev/responses/#custom-json-serialization) for how to
   implement responses using custom JSON serialization -
   [#1074](https://github.com/Kludex/starlette/pull/1047).
 
index 35267c409f64e20499b5969bc1a812fcccf42820..422783d3c28f512296425ecde237856214cd353c 100644 (file)
@@ -1,6 +1,6 @@
 site_name: Starlette
 site_description: The little ASGI library that shines.
-site_url: https://www.starlette.dev
+site_url: https://starlette.dev
 
 repo_name: Kludex/starlette
 repo_url: https://github.com/Kludex/starlette
index ea9e7b518099d971a587d245ecd19812159d3976..c5066ae6abbe8fec37dc378bbaa3e8b64f1b39d6 100644 (file)
@@ -70,8 +70,8 @@ required-version = ">=0.8.6"
 
 [project.urls]
 Homepage = "https://github.com/Kludex/starlette"
-Documentation = "https://www.starlette.dev/"
-Changelog = "https://www.starlette.dev/release-notes/"
+Documentation = "https://starlette.dev/"
+Changelog = "https://starlette.dev/release-notes/"
 Funding = "https://github.com/sponsors/Kludex"
 Source = "https://github.com/Kludex/starlette"
 
index 4ac0ff898db9f895d9cd023c692de4146df79cd3..8cbc7f06b36c63bbce5fa6246f6cfd64b5002687 100644 (file)
@@ -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.dev/exceptions/ for the recommended approach.",
+            "Refer to https://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.dev/routing/ for the recommended approach.",
+            "Refer to https://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.dev/routing/#websocket-routing for the recommended approach.",
+            "Refer to https://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.dev/middleware/#using-middleware for recommended approach.",
+            "Refer to https://starlette.dev/middleware/#using-middleware for recommended approach.",
             DeprecationWarning,
         )
         assert middleware_type == "http", 'Currently only middleware("http") is supported.'
index 3acc5316641bbd58975847e559e94b7fbb18adde..f0550208f4b126b263a97e87647ffadeeeb5eda8 100644 (file)
@@ -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.dev/lifespan/.",
+                "See more about it on https://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.dev/routing/#http-routing for the recommended approach.",
+            "Refer to https://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.dev/routing/#websocket-routing for the recommended approach.",
+            "https://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.dev/lifespan/ for recommended approach.",
+            "Refer to https://starlette.dev/lifespan/ for recommended approach.",
             DeprecationWarning,
         )