Rework docs (#437)

This reworks axum's docs in an attempt to make things easier to find. Previously I wasn't a fan of those docs for the same topic were spread across the root module docs and more specific places like types and methods.

This changes it such that the root module docs only gives a high level introduction to a topic, perhaps with a small example, and then link to other places where all the details are. This means `Router` is now the single place to learn about routing, and etc for the topics like handlers and error handling.
This commit is contained in:
David Pedersen
2021-11-01 21:13:37 +00:00
committed by GitHub
parent 1c6038c09f
commit 9465128f3e
46 changed files with 1978 additions and 1836 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
//! ```
use axum::{
error_handling::HandleErrorExt, http::StatusCode, routing::service_method_router as service,
error_handling::HandleErrorExt, http::StatusCode, routing::service_method_routing as service,
Router,
};
use std::net::SocketAddr;