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

Search bar disappears after adding glightbox as plugin #18

Closed eeintech closed 1 year ago

eeintech commented 1 year ago

I'm usig the latest version of Mkdocs-Material.

In my mkdocs.yml file, if I comment out those lines:

# plugins:
#   - glightbox

Then the search bar is displayed and functions well: image

However, when I enable it, it disappears:

plugins:
  - glightbox

image

I have commented out the rest of my mkdocs.yml file and nothing else seems to impact the search bar. I have also noticed in that it is not here in your live demo either: https://blueswen.github.io/mkdocs-glightbox/

Hopefully it is a quick fix, thanks!

blueswen commented 1 year ago

Based on the MkDocs documentation and code the search plugin is enabled by default, but if you set the plugins configuration option in mkdocs.yml, the default plugin will be ignored and you need to add the search plugin to the list of plugins if you want to use it.

plugins:
  - search
  - glightbox
eeintech commented 1 year ago

@blueswen Oh I learned something today, sorry for my ignorance and thanks for the quick response! :+1: