blueswen / mkdocs-glightbox

A MkDocs plugin supports image lightbox (zoom effect) with GLightbox.
https://blueswen.github.io/mkdocs-glightbox/
MIT License
115 stars 14 forks source link

Using glightbox stops the default search box appearing #33

Closed oceanclub1970 closed 4 months ago

oceanclub1970 commented 5 months ago

If I add the following to my mkdocs.yml:

plugins:
 - glightbox

...then glightbox works as expected - I can click on images to zoom into them, etc. However, the Search field at the top-right of the page disappears. If I remove those lines, the Search field is back. How can I have glightbox and Search at the same time?

Lexachoc commented 4 months ago

I have the same problem too today.

I found the previous issue in here: https://github.com/blueswen/mkdocs-glightbox/issues/24#issuecomment-1655477576

Hi @hautph ,

The search plugin is the default plugin, so you have to add it back when using other plugins. See more discussion on #18.

plugins:
  - search
  - glightbox

so I just have to add the option -search back, then it will work.

oceanclub1970 commented 4 months ago

Thanks!