mkdocs-static-i18n icon indicating copy to clipboard operation
mkdocs-static-i18n copied to clipboard

Warning when homepage is not in nav

Open mkielarv2 opened this issue 2 years ago • 1 comments

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?

mkielarv2 avatar Jan 31 '24 11:01 mkielarv2

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.

ultrabug avatar Feb 27 '24 11:02 ultrabug