Code Monkey home page Code Monkey logo

Comments (15)

ultrabug avatar ultrabug commented on May 17, 2024 1

No, they do not exist in the language specific context so that means that whenever a page is translated, anything linking to it should be too

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024 1

Thanks for your positive comments and help in improving the plugin mate

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024

I'm not sure messing with the markdown sources is the job of this plugin tbh.

The proper way to handle this is that .fr.md files should link to their .fr.md counterparts if they exist. Then autolinks will do its own magic without complaning.

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

Hrm but what when they don't exist yet? Or did you suggest that I file that as a request over there?

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024

As far as I understand this, autolinks is not the one spouting those WARNING messages.

You're seeing this because when mkdocs-static-i18n builds a language specific version of your site it only considers and uses the translated versions of all pages if they exist (and fallback to their default one if not).

Let's take an example:

WARNING -  Documentation file 'getting_started/community_content.fr.md' contains a link to 'getting_started/publishing.md' which is not found in the documentation files. 

In the markdown of the getting_started/community_content.fr.md file, there is a link to the getting_started/publishing.md (default = en) page BUT there is a getting_started/publishing.fr.md that exists and that is thus used by the french version of your site.

So on the fr context of the build the getting_started/publishing.md does not exist as it has been replaced by its getting_started/publishing.fr.md translation.

Which means that you should update the markdown of getting_started/community_content.fr.md to link to getting_started/publishing.fr.md so that french pages link to each others when they exist.

Does that make sense?

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

oh it does, thank you! Guess I was kinda expecting some magic happening there that is doing it for me, but I can just change it!

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

I guess the other part is these

WARNING -  A relative path to 'tutorials/environment_art.md' is included in the 'nav' configuration, which is not found in the documentation files 
WARNING -  A relative path to 'tutorials/modeling_basics.md' is included in the 'nav' configuration, which is not found in the documentation files 
WARNING -  A relative path to 'tutorials/persistent_storage_tutorial.md' is included in the 'nav' configuration, which is not found in the documentation files 
WARNING -  A relative path to 'tutorials/scene_creation.md' is included in the 'nav' configuration, which is not found in the documentation files 
WARNING -  A relative path to 'tutorials/lua_basics_helloworld.md' is included in the 'nav' configuration, which is not found in the documentation files 
WARNING -  A relative path to 'tutorials/lua_basics_lightbulb.md' is included in the 'nav' configuration, which is not found in the documentation files 
WARNING -  A relative path to 'tutorials/lua_basics_manticoin.md' is included in the 'nav' configuration, which is not found in the documentation files 

any idea what triggers those?

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024

I guess it's the same problem @Stanzilla ?

src/getting_started/my_first_multiplayer_game.md:[Publish a Game](publishing.md) | [Terrain Tutorial](environment_art.md) | [Basic Weapon Tutorial](weapons.md) | [Abilities Tutorial](abilities.md)
src/getting_started/my_first_multiplayer_game.fr.md:[Publish a Game](publishing.md) | [Terrain Tutorial](environment_art.md) | [Basic Weapon Tutorial](weapons.md) | [Abilities Tutorial](abilities.md)

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

So I guess the problem is that not all pages have a .fr counterpart yet?

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024

So I guess the problem is that not all pages have a .fr counterpart yet?

No, it seems you still have fr pages pointing to non fr pages while those pages do exist.

What's your newest test branch?

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

It's in dev now, https://github.com/ManticoreGamesInc/platform-documentation/tree/development but disabled (check config)

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024

@Stanzilla the WARNING you experience are there because you have some non translated pages pointing to files that do have a translation...

For example :

  • other_platforms/fortnite_creative.md is not translated in French and contains a link to getting_started/editor_intro.md
  • but getting_started/editor_intro.md has a translation as getting_started/editor_intro.fr.md

when the fr version is built it only takes the translated versions of every page into account so getting_started/editor_intro.md does not exist in this context since it has a translation...

does it make sense?

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

hrm yeah it does, that means everything should still work then because the "fallback" files that are not translated do exist, yes?

from mkdocs-static-i18n.

ultrabug avatar ultrabug commented on May 17, 2024

@Stanzilla do you still want this issue open mate, can I be of help here still? thanks

from mkdocs-static-i18n.

Stanzilla avatar Stanzilla commented on May 17, 2024

I think it's fine to close it! Thank you so much for your help!

from mkdocs-static-i18n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.