File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
sphinx/themes/basic/static Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Bugs fixed
2424* #9490: autodoc: Some objects under ``typing`` module are not displayed well
2525 with the HEAD of 3.10
2626* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
27+ * #9456: html search: html_copy_source can't control the search summaries
2728* #9435: linkcheck: Failed to check anchors in github.com
2829
2930Testing
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ var Search = {
276276 setTimeout ( function ( ) {
277277 displayNextItem ( ) ;
278278 } , 5 ) ;
279- } else {
279+ } else if ( DOCUMENTATION_OPTIONS . HAS_SOURCE ) {
280280 $ . ajax ( { url : requestUrl ,
281281 dataType : "text" ,
282282 complete : function ( jqxhr , textstatus ) {
@@ -289,6 +289,12 @@ var Search = {
289289 displayNextItem ( ) ;
290290 } , 5 ) ;
291291 } } ) ;
292+ } else {
293+ // no source available, just display title
294+ Search . output . append ( listItem ) ;
295+ setTimeout ( function ( ) {
296+ displayNextItem ( ) ;
297+ } , 5 ) ;
292298 }
293299 }
294300 // search finished, update title and status message
You can’t perform that action at this time.
0 commit comments