File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -328,6 +328,10 @@ pub(super) fn build_axum_routes() -> AxumRouter {
328
328
"/:name/:version/all.html" ,
329
329
get_rustdoc ( super :: rustdoc:: rustdoc_html_server_handler) ,
330
330
)
331
+ . route (
332
+ "/:name/:version/help.html" ,
333
+ get_rustdoc ( super :: rustdoc:: rustdoc_html_server_handler) ,
334
+ )
331
335
. route (
332
336
"/:name/:version/settings.html" ,
333
337
get_rustdoc ( super :: rustdoc:: rustdoc_html_server_handler) ,
Original file line number Diff line number Diff line change @@ -966,6 +966,28 @@ mod test {
966
966
. with_context ( || anyhow:: anyhow!( "no redirect found for {}" , path) )
967
967
}
968
968
969
+ #[ test_case( true ) ]
970
+ #[ test_case( false ) ]
971
+ // https://github.com/rust-lang/docs.rs/issues/2313
972
+ fn help_html ( archive_storage : bool ) {
973
+ wrapper ( |env| {
974
+ env. fake_release ( )
975
+ . name ( "krate" )
976
+ . version ( "0.1.0" )
977
+ . archive_storage ( archive_storage)
978
+ . rustdoc_file ( "help.html" )
979
+ . create ( ) ?;
980
+ let web = env. frontend ( ) ;
981
+ assert_success_cached (
982
+ "/krate/0.1.0/help.html" ,
983
+ web,
984
+ CachePolicy :: ForeverInCdnAndStaleInBrowser ,
985
+ & env. config ( ) ,
986
+ ) ?;
987
+ Ok ( ( ) )
988
+ } ) ;
989
+ }
990
+
969
991
#[ test_case( true ) ]
970
992
#[ test_case( false ) ]
971
993
// regression test for https://github.com/rust-lang/docs.rs/issues/552
You can’t perform that action at this time.
0 commit comments