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 {
328328 "/:name/:version/all.html" ,
329329 get_rustdoc ( super :: rustdoc:: rustdoc_html_server_handler) ,
330330 )
331+ . route (
332+ "/:name/:version/help.html" ,
333+ get_rustdoc ( super :: rustdoc:: rustdoc_html_server_handler) ,
334+ )
331335 . route (
332336 "/:name/:version/settings.html" ,
333337 get_rustdoc ( super :: rustdoc:: rustdoc_html_server_handler) ,
Original file line number Diff line number Diff line change @@ -966,6 +966,28 @@ mod test {
966966 . with_context ( || anyhow:: anyhow!( "no redirect found for {}" , path) )
967967 }
968968
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+
969991 #[ test_case( true ) ]
970992 #[ test_case( false ) ]
971993 // regression test for https://github.com/rust-lang/docs.rs/issues/552
You can’t perform that action at this time.
0 commit comments