about summary refs log tree commit diff
path: root/src/librustdoc
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-16 10:48:47 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-16 10:48:47 +0530
commit3a5bc736ae4ece3dcf010138232658c61b95eb4e (patch)
tree20cd6e2f80db45b222b64f363b548d91296e301e /src/librustdoc
parent9ac3f4277163ff8b537b998ac1549111d32f8289 (diff)
parent2881bbad59633e77a26c60dcc38f5206bd79a5f5 (diff)
downloadrust-3a5bc736ae4ece3dcf010138232658c61b95eb4e.tar.gz
rust-3a5bc736ae4ece3dcf010138232658c61b95eb4e.zip
Rollup merge of #26977 - brson:stddoc, r=Gankro
 Yet another attempt to make the prose on the std crate page
clearer and more informative.

This does a lot of things: tightens up the opening, adds useful links
(including a link to the search bar), offers guidance on how to use
the docs, and expands the prelude docs as a useful newbie entrypoint.

r? @steveklabnik cc @aturon
Diffstat (limited to 'src/librustdoc')
-rw-r--r--src/librustdoc/html/static/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index c77cdd4d021..f77e639f833 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -951,3 +951,8 @@
     }());
 
 }());
+
+// Sets the focus on the search bar at the top of the page
+function focusSearchBar() {
+    document.getElementsByName('search')[0].focus();
+}