8000 BUG: do not filter searchindex for pdf doc generation (#15433) · scikit-learn/scikit-learn@53082e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53082e9

Browse files
thomasjpfanlesteve
authored andcommitted
BUG: do not filter searchindex for pdf doc generation (#15433)
1 parent 3eb2538 commit 53082e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@ def make_carousel_thumbs(app, exception):
338338
def filter_search_index(app, exception):
339339
if exception is not None:
340340
return
341+
342+
# searchindex only exist when generating html
343+
if app.builder.name != 'html':
344+
return
345+
341346
print('Removing methods from search index')
342347

343348
searchindex_path = os.path.join(app.builder.outdir, 'searchindex.js')

0 commit comments

Comments
 (0)
0