File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -1300,7 +1300,16 @@ if (!String.prototype.endsWith) {
13001300 output = '<div class="search-failed"' + extraStyle + '>No results :(<br/>' +
13011301 'Try on <a href="https://duckduckgo.com/?q=' +
13021302 encodeURIComponent ( 'rust ' + query . query ) +
1303- '">DuckDuckGo</a>?</div>' ;
1303+ '">DuckDuckGo</a>?<br/><br/>' +
1304+ 'Or try looking in one of these:<ul><li>The <a ' +
1305+ 'href="https://doc.rust-lang.org/reference/index.html">Rust Reference</a> for' +
1306+ ' technical details about the language.</li><li><a ' +
1307+ 'href="https://doc.rust-lang.org/rust-by-example/index.html">Rust By Example' +
1308+ '</a> for expository code examples.</a></li><li>The <a ' +
1309+ 'href="https://doc.rust-lang.org/book/index.html">Rust Book</a> for ' +
1310+ 'introductions to language features and the language itself.</li><li><a ' +
1311+ 'href="https://docs.rs">Docs.rs</a> for documentation of crates released on ' +
1312+ '<a href="https://crates.io/">crates.io</a>.</li></ul></div>' ;
13041313 }
13051314 return [ output , length ] ;
13061315 }
Original file line number Diff line number Diff line change @@ -1132,6 +1132,13 @@ pre.rust {
11321132 margin-top : 20px ;
11331133}
11341134
1135+ .search-failed > ul {
1136+ text-align : left;
1137+ max-width : 570px ;
1138+ margin-left : auto;
1139+ margin-right : auto;
1140+ }
1141+
11351142# titles {
11361143 height : 35px ;
11371144}
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ pre.ignore:hover, .information:hover + pre.ignore {
285285 color : rgba (255 , 142 , 0 , 1 );
286286}
287287
288- .search-failed > a {
288+ .search-failed a {
289289 color : # 0089ff ;
290290}
291291
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ pre.ignore:hover, .information:hover + pre.ignore {
279279 color : rgba (255 , 142 , 0 , 1 );
280280}
281281
282- .search-failed > a {
282+ .search-failed a {
283283 color : # 0089ff ;
284284}
285285
You can’t perform that action at this time.
0 commit comments