ultrabug / mkdocs-static-i18n

MkDocs i18n plugin using static translation markdown files
https://ultrabug.github.io/mkdocs-static-i18n/
MIT License
228 stars 38 forks source link

Could not find alternate for the default version of page 'index.md' #167

Closed mastercoms closed 1 year ago

mastercoms commented 1 year ago

I'm not sure why I'm getting this warning now. In my root docs folder, I have index.es.md, index.fr.md, index.pt.md, index.ru.md and index.md.

WARNING  -  could not find 'en' alternate for the default version of page 'index.md'
WARNING  -  could not find 'pt' alternate for the default version of page 'index.md'
WARNING  -  could not find 'ru' alternate for the default version of page 'index.md'
WARNING  -  could not find 'es' alternate for the default version of page 'index.md'
WARNING  -  could not find 'fr' alternate for the default version of page 'index.md'
WARNING  -  could not find 'tr' alternate for the default version of page 'index.md'
ultrabug commented 1 year ago

Just since you upgraded to 0.52? does it do the same using 0.51?

I'm confused..

sennewood commented 1 year ago

I just wanted to post the same issue :)

These are my package versions:

mkdocs==1.4.2
mkdocs-material==8.5.10
mkdocs-material-extensions==1.1.1
mkdocs-static-i18n==0.51

I just saw the update to 0.52 and installed it: the warning still appears.

ultrabug commented 1 year ago

I need more information than this please : I need a way to reproduce your problem to be truly helpful.

Thanks :+1:

mastercoms commented 1 year ago

https://github.com/mastercomfig/mastercomfig/tree/develop/docs

https://github.com/mastercomfig/mastercomfig/actions/runs/3602279440/jobs/6069092830#step:16:32

mastercoms commented 1 year ago

First time I can see it happen was 2022 Nov 15 16:34 UTC

Did not happen the previous build run (2022 Oct 31).

mastercoms commented 1 year ago

So, I can only assume it was introduced in this commit: https://github.com/ultrabug/mkdocs-static-i18n/commit/d98cc0486344127eb50465070608068760ae1cca

sennewood commented 1 year ago

I tried the versions backwards and this issue doesn't occur in: 0.49.

ultrabug commented 1 year ago

Thanks @mastercoms your repo helped me find the culprit

Newer mkdocs changed url format so I have to support multiple ones

This is now fixed and will be part of upcoming 0.53 in a few minutes

FYI, I plan to drop support for older mkdocs (<1.4) so I can get my code here a little less noisy