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) {
1300
1300
output = '<div class="search-failed"' + extraStyle + '>No results :(<br/>' +
1301
1301
'Try on <a href="https://duckduckgo.com/?q=' +
1302
1302
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>' ;
1304
1313
}
1305
1314
return [ output , length ] ;
1306
1315
}
Original file line number Diff line number Diff line change @@ -1132,6 +1132,13 @@ pre.rust {
1132
1132
margin-top : 20px ;
1133
1133
}
1134
1134
1135
+ .search-failed > ul {
1136
+ text-align : left;
1137
+ max-width : 570px ;
1138
+ margin-left : auto;
1139
+ margin-right : auto;
1140
+ }
1141
+
1135
1142
# titles {
1136
1143
height : 35px ;
1137
1144
}
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ pre.ignore:hover, .information:hover + pre.ignore {
285
285
color : rgba (255 , 142 , 0 , 1 );
286
286
}
287
287
288
- .search-failed > a {
288
+ .search-failed a {
289
289
color : # 0089ff ;
290
290
}
291
291
Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ pre.ignore:hover, .information:hover + pre.ignore {
279
279
color : rgba (255 , 142 , 0 , 1 );
280
280
}
281
281
282
- .search-failed > a {
282
+ .search-failed a {
283
283
color : # 0089ff ;
284
284
}
285
285
You can’t perform that action at this time.
0 commit comments