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

Warning when homepage is not in nav #291

Open mkielarv2 opened 9 months ago

mkielarv2 commented 9 months ago

Hi, in my mkdocs setup I do not include index.md file in nav, as I don't want to show it in my navigation bar. Since click on logo is sufficient entrypoint to homepage for me, I have configured index.md as not_in_nav entry like this:

not_in_nav: |
    /index.md

However mkdocs-static-i18n still reports it as warning:

WARNING -  mkdocs_static_i18n: Could not find a homepage for locale 'en'

The problem is that it breaks a strict mkdocs build, with no way to supress this warning (as far as I know). How can this issue be corrected?

ultrabug commented 9 months ago

The plugin is not fully up to date with newer MkDocs features such as not_in_nav, so the warning should be issued only if the page is indeed included.

That's TODO.