Comments (15)
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.
Thanks for your positive comments and help in improving the plugin mate
from mkdocs-static-i18n.
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.
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.
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.
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.
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.
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.
So I guess the problem is that not all pages have a .fr counterpart yet?
from mkdocs-static-i18n.
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.
It's in dev now, https://github.com/ManticoreGamesInc/platform-documentation/tree/development but disabled (check config)
from mkdocs-static-i18n.
@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 togetting_started/editor_intro.md
- but
getting_started/editor_intro.md
has a translation asgetting_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.
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.
@Stanzilla do you still want this issue open mate, can I be of help here still? thanks
from mkdocs-static-i18n.
I think it's fine to close it! Thank you so much for your help!
from mkdocs-static-i18n.
Related Issues (20)
- [Question] Can you hide/supress link warnings by mkdocs for non-existing files? HOT 7
- How to fix when translate got problem "warning not found image" HOT 1
- no Language code causing issues HOT 1
- Is there a way to preserve the language selection? HOT 2
- Incompatibility with Mkdocs Material Blog plugin? HOT 3
- [Bug?] 404 page not generated for selected language HOT 2
- Having issues building my translations after updating it to 1.0.0 HOT 8
- [Enhancement] Hiding localization options for unstralated pages HOT 2
- Issue with incorrect language folder being copied HOT 17
- Both languages show on the left-side menu instead of the current language's content only HOT 5
- Warning when homepage is not in nav HOT 1
- Non localized files missing in not default language HOT 3
- [RFE] - scaffold navigation for translations to allow for upstream management of fallback HOT 1
- Custom language selector (non-mkdocs-material) HOT 10
- [Question] INFO - Selected en None File(...) output HOT 4
- Not yet translated files in duplicated navigation entry
- Example not working: translation link in menu
- Integration with mkdocs-material privacy plugin - image link invalid HOT 1
- Document how to build the documentation
- Is possible to put default language result in non-root path?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs-static-i18n.