ultrabug / mkdocs-static-i18n

MkDocs i18n plugin using static translation markdown files
https://ultrabug.github.io/mkdocs-static-i18n/
MIT License
238 stars 38 forks source link

Integration with mkdocs-material privacy plugin - image link invalid #302

Open niccokunzmann opened 7 months ago

niccokunzmann commented 7 months ago

When I embed the pictures as img tags, sometimes, they do not show up if they are external. I have the privacy plugin activated.

I wonder: The url at the top does not have /en/ in it. Maybe, that is a problem?

<img alt="Logo NLnet: abstract logo of four people seen from above" src="../../https:/nlnet.nl/logo/banner.svg" height="50px">

grafik

<img alt="Logo NLnet: abstract logo of four people seen from above" src="../../../assets/external/nlnet.nl/logo/banner.svg" height="50px">

grafik

Reproduce: repo: https://github.com/niccokunzmann/open-web-calendar/ commit: bc18c79 build command:

pip install tox
tox -e docs -- build 

Thanks for your work!

niccokunzmann commented 7 months ago

It works when I change the link of the English documentation:

         - locale: en
           name: English
           default: true
+          link: /en/