Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning when homepage is not in nav #291

Open
mkielarv2 opened this issue Jan 31, 2024 · 1 comment
Open

Warning when homepage is not in nav #291

mkielarv2 opened this issue Jan 31, 2024 · 1 comment

Comments

@mkielarv2
Copy link

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants