From 9f6bcfe2b1ff9439ea9dc4dc301595827fc2f406 Mon Sep 17 00:00:00 2001 From: yuan li Date: Mon, 9 Mar 2026 21:07:41 +1030 Subject: [PATCH] Add 404 error page and update book configuration --- book.toml | 1 + src/404.md | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/404.md diff --git a/book.toml b/book.toml index 825142ce8e0d..839d02ba4b65 100644 --- a/book.toml +++ b/book.toml @@ -72,6 +72,7 @@ additional-css = [ site-url = "/comprehensive-rust/" git-repository-url = "https://github.com/google/comprehensive-rust" edit-url-template = "https://github.com/google/comprehensive-rust/edit/main/{path}" +input-404 = "404.md" [output.html.fold] enable = true diff --git a/src/404.md b/src/404.md new file mode 100644 index 000000000000..fe7d11563096 --- /dev/null +++ b/src/404.md @@ -0,0 +1,39 @@ +# Document not found (404) + +This URL is invalid, sorry. Please use the navigation bar or search to continue. + +