Closed SuccinctPaul closed 1 year ago
Thx for that. It does help me a lot. I've tried it on a mdbook-docs.
The style seems a little bit wrong. The title of chapter is shadowed. Not like what in your demo
You can try it on my ph-page.https://chengyuejia.github.io/move/en/conditionals.html. And the source code is here
I send PR to your fork with updated theme. Previous version of mdbook-i18n used old theme from mdbook. I synced theme with new version.
On holidays i thinked about automatic generating script parts with langs and injecting to mdbook template (without overriding template as currently implemented) but mdbook can't inject custom fields to template and overriding template with manually added langs required :(
Wow, Thanks a lot to help me. I'll merge it.
So sad to know mdbook can't support the auto-generated lang-switcher script.
There will be other way to make it. As a script can auto modify or generate the theme files account to the .toml files. ? LoL
The mdbook-i18n is greet. You already did a great job , It's helps me a lot , and will help more projects.
For now, we can't switch the lang.
Thanks for dev the tool, maybe we can enhance it.