Closed jokelbaf closed 11 months ago
@JokelBaf I'm impressed by how fast you gave a try to the upcoming release :tornado: !
Can you provide me with a repository I can reproduce this from maybe?
@ultrabug Of course. It is https://github.com/MahiruBot/mahirubot.github.io. I commented all lines in mkdocs.yml that caused troubles because github actions failed to build.
@JokelBaf thanks. This happens because the theme override for languages does not specify the icon
option which is not copied over by the plugin. That's a bug on my part, working on a fix!
Fixed on main branch ;) thanks again
Thank you for quick response and fix of the bug, everything works perfectly now! Can I ask another question about 1.0.0 here? Since the question is quite simple, I don't want to create a new issue for it.
Is there any way to localize site_description
? When I tried to use site_description
property in the plugin config, I got a "Unrecognised configuration name" warning.
Is there any way to localize site_description? When I tried to use site_description property in the plugin config, I got a "Unrecognised configuration name" warning.
I just tried and it works as intended, maybe you misspelled it? please show a YAML
I just tried and it works as intended, maybe you misspelled it? please show a YAML
Well, here is my config - https://github.com/MahiruBot/mahirubot.github.io/blob/master/mkdocs.yml.
The strange thing is that it really works, description is localized. But I keep getting warnings on every mkdocs serve
command:
WARNING - Config value 'plugins': Plugin 'i18n' option 'languages': Sub-option 'site_description': Unrecognised configuration name: site_description
WARNING - Config value 'plugins': Plugin 'i18n' option 'languages': Sub-option 'site_description': Unrecognised configuration name: site_description
...
INFO - mkdocs_static_i18n: Overriding 'en' config 'site_description' with '...'
INFO - mkdocs_static_i18n: Overriding 'ru' config 'site_description' with '...'
My eyes were not seeing those mkdocs generated WARNING messages :see_no_evil: sorry!
I know how to fix that, gimme a few
done, warnings should be gone!
Thank you!
Hello! I was wondering if there is any way to localize these switch names for dark and light themes:
What I tried was:
But I got the following error:
Am I doing something wrong? I have no idea what this error means because I have never saw it before and it is gone when I remove
theme
from locales in mkdocs.yml. I am using mkdocs-static-i18n1.0.0
.