From 7fbcdc75a9d26baf3ed56fc6bb53aaecd0cb4181 Mon Sep 17 00:00:00 2001 From: Sean Jensen-Grey Date: Sat, 1 Nov 2014 20:43:02 -0700 Subject: [PATCH 1/2] add populated search box to docs 404 page reference https://github.com/rust-lang/rust/issues/18498 --- src/doc/not_found.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/doc/not_found.md b/src/doc/not_found.md index f49772f29a1..e80d0d83abf 100644 --- a/src/doc/not_found.md +++ b/src/doc/not_found.md @@ -11,9 +11,33 @@ Looks like you've taken a wrong turn. Some things that might be helpful to you though: +## Search +*
+ + +
+ ## Reference * [The Rust official site](http://rust-lang.org) * [The Rust reference](http://doc.rust-lang.org/reference.html) (* [PDF](http://doc.rust-lang.org/reference.pdf)) ## Docs * [The standard library](http://doc.rust-lang.org/std/) + + + From eca7ab508d0ee0e154c263c2a20b661190400d80 Mon Sep 17 00:00:00 2001 From: Sean Jensen-Grey Date: Sun, 2 Nov 2014 08:06:32 -0800 Subject: [PATCH 2/2] cleaned up ids, added direct rust doc search Search functionality uses both duckduckgo for site wide doc search and the rust specific documentation search @ http://doc.rust-lang.org/core/?search=unwrap_or_else --- src/doc/not_found.md | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/src/doc/not_found.md b/src/doc/not_found.md index e80d0d83abf..bd4d9591097 100644 --- a/src/doc/not_found.md +++ b/src/doc/not_found.md @@ -13,9 +13,10 @@ Some things that might be helpful to you though: ## Search *
- +
+* Rust doc search: ## Reference * [The Rust official site](http://rust-lang.org) @@ -25,19 +26,38 @@ Some things that might be helpful to you though: * [The standard library](http://doc.rust-lang.org/std/)