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

`glightbox-mkdocs` plugin does not work with `mkdocs-multirepo-plugin` #23

Closed mlcooper closed 11 months ago

mlcooper commented 1 year ago

On its own, I can get the glightbox-mkdocs plugin to work without any issues. My images become 'zoomable' which is the desired effect I am looking for.

However, when I import that same repo with the mkdocs-multirepo-plugin, the 'zoomable' feature of my images in markdown no longer are 'zoomable'.

I installed the glightbox-mkdocs plugin in both my 'parent' multi-repo repo and the child repo, but that did not help.

You can see below that the glightbox script is missing when hosted on Gitlab pages with the mkdocs-multirepo-plugin, but the script is present when hosted on my local workstation via mkdocs serve:

Hosted on Gitlab Pages Using mkdocs-multirepo-plugin

image

Locally Hosted by running mkdocs serve

image

blueswen commented 1 year ago

Hi @mlcooper

Do you mean in locally hosted using glightbox-mkdocs and mkdocs-multirepo-plugin at the same time is working fine but when published with GitLab page is failed? Could you provide a reproducible repo and your mkdocs.yaml for the GitLab page?

mlcooper commented 11 months ago

I had who plugins: sections, one in mkdocs.yml and one in an inherited mkdocs.yml file and they did NOT merge (perhaps by design?). Anyway, when I moved plugins: to mkdocs.yml only, this now worked.