orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
338 stars 78 forks source link

when with-pdf is enabled, mkdocs site's search box is gone #125

Closed tbswork1 closed 2 years ago

tbswork1 commented 2 years ago

when I remove with-pdf, the search box is back again.

anb0s commented 2 years ago

adding plugin: with-pdf section removes implicit defined search plugin

plugins:
  with-pdf:

always define the search plugin explicitly

plugins:
  search:
    indexing: 'full'
anb0s commented 2 years ago

Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

tbswork1 commented 2 years ago

It works. Thanks.