3 <!-- Completely hide the TOC and the section numbers -->
4 <style type="text/css">
5 #TOC { display: none; }
6 .header-section-number { display: none; }
7 li {list-style-type: none; }
10 Looks like you've taken a wrong turn.
12 Some things that might be helpful to you though:
15 * <form action="https://duckduckgo.com/">
16 <input type="text" id="site-search" name="q" size="80"></input>
17 <input type="submit" value="Search DuckDuckGo">
19 * Rust doc search: <span id="core-search"></span>
22 * [The Rust official site](http://rust-lang.org)
23 * [The Rust reference](http://doc.rust-lang.org/reference.html) (* [PDF](http://doc.rust-lang.org/reference.pdf))
26 * [The standard library](http://doc.rust-lang.org/std/)
29 function get_url_fragments() {
30 var last = document.URL.split("/").pop();
31 var tokens = last.split(".");
33 for (var i=0; i < tokens.length; i++) {
35 if (t == 'html' || t.indexOf("#") != -1) {
44 function populate_site_search() {
45 var op = get_url_fragments();
47 var search = document.getElementById('site-search');
48 search.value = op.join(' ') + " site:doc.rust-lang.org";
51 function populate_rust_search() {
52 var op = get_url_fragments();
55 // #18540, use a single token
57 var search = document.getElementById('core-search');
58 search.innerHTML = "<a href=\"http://doc.rust-lang.org/core/?search=" + lt + "\">" + lt + "</a>";
60 populate_site_search();
61 populate_rust_search();