From 4baa431d91d26682e1d2268e328f4956e0548d03 Mon Sep 17 00:00:00 2001 From: dswijj Date: Mon, 1 Apr 2024 02:12:14 +0800 Subject: [PATCH] fix: docs url --- _config.yml | 9 +++++---- _stable/server/hello-world.md | 10 +++++----- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/_config.yml b/_config.yml index e76a62e..e37df47 100644 --- a/_config.yml +++ b/_config.yml @@ -53,11 +53,12 @@ relative_links: plugins: - jekyll-redirect-from -docs_url: https://docs.rs/hyper +hyper_docs_url: https://docs.rs/hyper/latest examples_url: https://github.com/hyperium/hyper/tree/master/examples -http_body_util_url: https://docs.rs/http-body-util -hyper_tls_url: https://docs.rs/hyper-tls -hyper_util_url: https://docs.rs/hyper-util +http_body_util_url: https://docs.rs/http-body-util/latest +hyper_tls_url: https://docs.rs/hyper-tls/latest +hyper_util_url: https://docs.rs/hyper-util/latest +http_docs_url: https://docs.rs/http/latest futures_url: https://docs.rs/futures/0.3.* legacy_docs_url: https://docs.rs/hyper/0.14.* diff --git a/_stable/server/hello-world.md b/_stable/server/hello-world.md index d1bbf2a..e36bcf6 100644 --- a/_stable/server/hello-world.md +++ b/_stable/server/hello-world.md @@ -129,10 +129,10 @@ To see all the snippets put together, check out the [full example][example]! Also, if `service_fn` doesn't meet your requirements and you'd like to implement `Service` yourself, see this [example][impl service]. -[service]: {{ site.docs_url }}/hyper/service/trait.Service.html -[service_fn]: {{ site.docs_url }}/hyper/service/fn.service_fn.html -[request]: {{ site.docs_url }}/hyper/struct.Request.html -[response]: {{ site.docs_url }}/hyper/struct.Response.html -[parts]: {{ site.docs_url }}/http/0.2.8/http/response/struct.Parts.html +[service]: {{ site.hyper_docs_url }}/hyper/service/trait.Service.html +[service_fn]: {{ site.hyper_docs_url }}/hyper/service/fn.service_fn.html +[request]: {{ site.hyper_docs_url }}/hyper/struct.Request.html +[response]: {{ site.hyper_docs_url }}/hyper/struct.Response.html +[parts]: {{ site.http_docs_url }}/http/response/struct.Parts.html [example]: {{ site.examples_url }}/hello.rs [impl service]: {{ site.examples_url }}/service_struct_impl.rs