From 89a2af179b7564d668742c5c11221d3df8b6fe94 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 18 Nov 2023 11:43:11 +0100 Subject: [PATCH] Use versioned URIs in news articles. --- site/news/2021-06-09-version-0.5-rc.1.md | 6 +-- site/news/2022-05-09-version-0.5-rc.2.md | 8 +-- site/news/2023-03-23-version-0.5-rc.3.md | 4 +- site/news/2023-11-01-version-0.5-rc.4.md | 2 +- site/news/2023-11-17-version-0.5.md | 68 ++++++++++++------------ 5 files changed, 44 insertions(+), 44 deletions(-) diff --git a/site/news/2021-06-09-version-0.5-rc.1.md b/site/news/2021-06-09-version-0.5-rc.1.md index 0044b4e8..d61c1bd6 100644 --- a/site/news/2021-06-09-version-0.5-rc.1.md +++ b/site/news/2021-06-09-version-0.5-rc.1.md @@ -27,9 +27,9 @@ to your feedback! [GitHub issue tracker]: https://github.com/SergioBenitez/Rocket/issues [GitHub discussions]: https://github.com/SergioBenitez/Rocket/discussions -[CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5/CHANGELOG.md#version-050-rc1-jun-9-2021 -[API docs]: @api -[guide]: ../../guide +[CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5.0-rc.1/CHANGELOG.md +[API docs]: @api-v0.5 +[guide]: @guide-v0.5 ## About Rocket diff --git a/site/news/2022-05-09-version-0.5-rc.2.md b/site/news/2022-05-09-version-0.5-rc.2.md index 58fd3dc7..7456f3e1 100644 --- a/site/news/2022-05-09-version-0.5-rc.2.md +++ b/site/news/2022-05-09-version-0.5-rc.2.md @@ -26,10 +26,10 @@ for the general release! [GitHub issue tracker]: https://github.com/SergioBenitez/Rocket/issues [GitHub discussions]: https://github.com/SergioBenitez/Rocket/discussions -[migration guide]: ../../guide/upgrading -[CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5/CHANGELOG.md#version-050-rc2-may-9-2022 -[API docs]: @api -[guide]: ../../guide +[migration guide]: @guide-v0.5/upgrading +[CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5.0-rc.2/CHANGELOG.md +[API docs]: @api-v0.5 +[guide]: @guide-v0.5 ## About Rocket diff --git a/site/news/2023-03-23-version-0.5-rc.3.md b/site/news/2023-03-23-version-0.5-rc.3.md index cec4823b..6501529a 100644 --- a/site/news/2023-03-23-version-0.5-rc.3.md +++ b/site/news/2023-03-23-version-0.5-rc.3.md @@ -16,8 +16,8 @@ v0.4. For changes since Rocket v0.5.0-rc.2, please see the [CHANGELOG]. [GitHub issue tracker]: https://github.com/SergioBenitez/Rocket/issues [GitHub discussions]: https://github.com/SergioBenitez/Rocket/discussions -[migration guide]: ../../guide/upgrading -[CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5/CHANGELOG.md#version-050-rc2-may-9-2022 +[migration guide]: @guide-v0.5/upgrading +[CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5.0-rc.3/CHANGELOG.md ## About Rocket diff --git a/site/news/2023-11-01-version-0.5-rc.4.md b/site/news/2023-11-01-version-0.5-rc.4.md index 31a3b750..ecd81614 100644 --- a/site/news/2023-11-01-version-0.5-rc.4.md +++ b/site/news/2023-11-01-version-0.5-rc.4.md @@ -16,7 +16,7 @@ v0.4. For changes since Rocket v0.5.0-rc.3, please see the [CHANGELOG]. [GitHub issue tracker]: https://github.com/SergioBenitez/Rocket/issues [GitHub discussions]: https://github.com/SergioBenitez/Rocket/discussions -[migration guide]: ../../guide/upgrading +[migration guide]: @guide-v0.5/upgrading [CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5.0-rc.4/CHANGELOG.md ## About Rocket diff --git a/site/news/2023-11-17-version-0.5.md b/site/news/2023-11-17-version-0.5.md index e3a81063..cf66c5cc 100644 --- a/site/news/2023-11-17-version-0.5.md +++ b/site/news/2023-11-17-version-0.5.md @@ -26,7 +26,7 @@ v0.6 is released. [RWF2]: https://rwf2.org [along with the prelaunch]: ../2023-11-17-rwf2-prelaunch/ -[upgrading guide]: ../../guide/upgrading +[upgrading guide]: @guide-v0.5/upgrading ## What's New? @@ -37,8 +37,8 @@ here and encourage everyone to read the [CHANGELOG] for a complete list. For answers to frequently asked questions, see the new [FAQ]. [CHANGELOG]: https://github.com/SergioBenitez/Rocket/blob/v0.5.0/CHANGELOG.md -[broader ecosystem]: ../../guide/faq/#releases -[FAQ]: ../../guide/faq +[broader ecosystem]: @guide-v0.5/faq/#releases +[FAQ]: @guide-v0.5/faq ### ⚓ Support for Stable `rustc` since `rc.1` @@ -90,7 +90,7 @@ Note the new [`launch`] attribute, which simplifies starting an `async` runtime for Rocket applications. See the [migration guide] for more on transitioning to a stable toolchain. -[`launch`]: @api/rocket/attr.launch.html +[`launch`]: @api-v0.5/rocket/attr.launch.html ### 📥 Async I/O since `rc.1` @@ -115,7 +115,7 @@ async fn debug(data: Data<'_>) -> std::io::Result<()> { } ``` -See the [Blocking I/O](@guide/upgrading#blocking-io) section of the upgrading +See the [Blocking I/O](@guide-v0.5/upgrading#blocking-io) section of the upgrading guide for complete details on the `async` I/O transition. ### 💂 Sentinels since `rc.1` @@ -150,11 +150,11 @@ impl Sentinel for MyResponder { } ``` -[sentinels]: @api/rocket/trait.Sentinel.html -[`Sentinel`]: @api/rocket/trait.Sentinel.html -[`&State`]: @api/rocket/struct.State.html -[`Template`]: @api/rocket_dyn_templates/struct.Template.html -[`rocket_dyn_templates`]: @api/rocket_dyn_templates/index.html +[sentinels]: @api-v0.5/rocket/trait.Sentinel.html +[`Sentinel`]: @api-v0.5/rocket/trait.Sentinel.html +[`&State`]: @api-v0.5/rocket/struct.State.html +[`Template`]: @api-v0.5/rocket_dyn_templates/struct.Template.html +[`rocket_dyn_templates`]: @api-v0.5/rocket_dyn_templates/index.html ### ☄️ Streams and SSE since `rc.1` @@ -183,8 +183,8 @@ fn stream(n: Option) -> EventStream![] { } ``` -[streams]: @api/rocket/response/stream/index.html -[async streams]: @guide/responses/#async-streams +[streams]: @api-v0.5/rocket/response/stream/index.html +[async streams]: @guide-v0.5/responses/#async-streams [chat example]: @example/chat ### 🔌 WebSockets since `rc.4` @@ -227,8 +227,8 @@ fn echo_stream(ws: WebSocket) -> Stream!['static] { For complete usage details, see the [`rocket_ws`] documentation. -[upgrade API]: @api/rocket/response/struct.Response.html#upgrading -[`rocket_ws`]: @api/rocket_ws +[upgrade API]: @api-v0.5/rocket/response/struct.Response.html#upgrading +[`rocket_ws`]: @api-v0.5/rocket_ws ### 📝 Comprehensive Forms since `rc.1` @@ -291,14 +291,14 @@ MyForm { The rewritten [forms guide] provides complete details on revamped forms support. -[forms guide]: @guide/requests/#forms -[ad-hoc validation]: @guide/requests#ad-hoc-validation -[arbitrary nesting]: @guide/requests#nesting -[multipart uploads]: @guide/requests#multipart -[forms]: @guide/requests#forms -[`FromFormField`]: @api/rocket/form/trait.FromFormField.html -[arbitrary collections]: @guide/requests#collections -[`FromForm` derive]: @api/rocket/derive.FromForm.html +[forms guide]: @guide-v0.5/requests/#forms +[ad-hoc validation]: @guide-v0.5/requests#ad-hoc-validation +[arbitrary nesting]: @guide-v0.5/requests#nesting +[multipart uploads]: @guide-v0.5/requests#multipart +[forms]: @guide-v0.5/requests#forms +[`FromFormField`]: @api-v0.5/rocket/form/trait.FromFormField.html +[arbitrary collections]: @guide-v0.5/requests#collections +[`FromForm` derive]: @api-v0.5/rocket/derive.FromForm.html ### 🚀 And so much more! @@ -314,18 +314,18 @@ few more we don't want you to miss: * Asynchronous database pooling support via [`rocket_db_pools`]. * Compile-time URI literals via a fully revamped [`uri!`] macro. -[`Shield`]: @api/rocket/shield/struct.Shield.html -[graceful shutdown]: @api/rocket/config/struct.Shutdown.html#summary -[notification]: @api/rocket/struct.Shutdown.html -[shutdown fairings]: @api/rocket/fairing/trait.Fairing.html#shutdown -[configuration system]: @guide/configuration/#configuration +[`Shield`]: @api-v0.5/rocket/shield/struct.Shield.html +[graceful shutdown]: @api-v0.5/rocket/config/struct.Shutdown.html#summary +[notification]: @api-v0.5/rocket/struct.Shutdown.html +[shutdown fairings]: @api-v0.5/rocket/fairing/trait.Fairing.html#shutdown +[configuration system]: @guide-v0.5/configuration/#configuration [Figment]: https://docs.rs/figment/ -[incoming data limits]: @guide/requests/#streaming -[mutual TLS]: @guide/configuration/#mutual-tls -[`uri!`]: @api/rocket/macro.uri.html -[`rocket_db_pools`]: @api/rocket_db_pools/index.html -[`Certificate`]: @api/rocket/mtls/struct.Certificate.html -[migration guide]: ../../guide/upgrading +[incoming data limits]: @guide-v0.5/requests/#streaming +[mutual TLS]: @guide-v0.5/configuration/#mutual-tls +[`uri!`]: @api-v0.5/rocket/macro.uri.html +[`rocket_db_pools`]: @api-v0.5/rocket_db_pools/index.html +[`Certificate`]: @api-v0.5/rocket/mtls/struct.Certificate.html +[migration guide]: @guide-v0.5/upgrading ## What's Next? @@ -438,7 +438,7 @@ release: [an interface for implementing and plugging-in custom connection listeners]: https://github.com/SergioBenitez/Rocket/issues/1070#issuecomment-1491101952 [stabilization of `async fn` in traits]: https://github.com/rust-lang/rust/pull/115822 -[poor benchmarking]: @guide/faq/#performance +[poor benchmarking]: @guide-v0.5/faq/#performance