jimporter / mike

Manage multiple versions of your MkDocs-powered documentation via Git
BSD 3-Clause "New" or "Revised" License
534 stars 47 forks source link

Mike breaks Umlaute in nav tabs when deploying #63

Closed hpsems closed 3 years ago

hpsems commented 3 years ago

I noticed a Problem with Mike 1.0.1 when deploying my docs with mike depoy:

image

As you can see it breaks Umlaute in the navigation tabs and the repository Name.

When i serve with mkdocs it works fine. mkdocs serve:

image

Im using mike 1.0.1 and mkdocs 1.2.1

Any help or suggestions are greatly appreciated! :-)

jimporter commented 3 years ago

I've tried a few different configurations, and this works fine for me everywhere as far as I can tell. Do you have a repository I could look at? It's possible the encoding you're using in your mkdocs.yml is causing the issue.

As a workaround, you could try adding the mike plugin to your config (see the README for details). If the plugin isn't listed, mike writes a temporary mike-mkdocs.yml file, and that might be getting mis-encoded.

hpsems commented 3 years ago

Adding mike to the plugins solved the issue! Thank you very much for the suggestion! my mkdocs.yml is utf-8 encoded so this should be fine, I assume?

jimporter commented 3 years ago

UTF-8 should be fine. I'm not sure why it's not working, but presumably something bad is happening when writing the temporary mkdocs.yml (which mike does when the mike plugin isn't listed).