File tree 2 files changed +8
-1
lines changed
sphinx/themes/basic/static 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ Bugs fixed
24
24
* #9490: autodoc: Some objects under ``typing`` module are not displayed well
25
25
with the HEAD of 3.10
26
26
* #9436, #9471: autodoc: crashed if ``autodoc_class_signature = "separated"``
27
+ * #9456: html search: html_copy_source can't control the search summaries
27
28
* #9435: linkcheck: Failed to check anchors in github.com
28
29
29
30
Testing
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ var Search = {
276
276
setTimeout ( function ( ) {
277
277
displayNextItem ( ) ;
278
278
} , 5 ) ;
279
- } else {
279
+ } else if ( DOCUMENTATION_OPTIONS . HAS_SOURCE ) {
280
280
$ . ajax ( { url : requestUrl ,
281
281
dataType : "text" ,
282
282
complete : function ( jqxhr , textstatus ) {
@@ -289,6 +289,12 @@ var Search = {
289
289
displayNextItem ( ) ;
290
290
} , 5 ) ;
291
291
} } ) ;
292
+ } else {
293
+ // no source available, just display title
294
+ Search . output . append ( listItem ) ;
295
+ setTimeout ( function ( ) {
296
+ displayNextItem ( ) ;
297
+ } , 5 ) ;
292
298
}
293
299
}
294
300
// search finished, update title and status message
You can’t perform that action at this time.
0 commit comments