-
Notifications
You must be signed in to change notification settings - Fork 38
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
awesome-pages and i18n compatibility using .pages #58
Comments
Yeah I can absolutely reproduce this problem and I also understand what's happening. When configuring the navigation in
Unfortunately, I'm not sure how a good solution would look like. Maybe @ultrabug has an idea? |
Any ideas? |
Well @lukasgeiter is not wrong I guess tho i18n does not "turn" @Argald0 you should go fully with the That's how I do it on my own website so you have a working example there. Which means in your case that you should not use titles in your nav:
- index.md
- index.fr.md
- file2.md
- file2.fr.md and
EDIT: yes, the build process will complain for missing pages depending on the locale being built, but that's fine. |
closes: #1 * docs: add mkdocs i18n * docs: page in i18n lukasgeiter/mkdocs-awesome-pages-plugin#58 * docs: add files * docs: introduction * docs: introduction preparation * docs: introduction * docs: update * docs: update scenario format * docs: update scenario format * docs: result format * docs: result format * chore: git mv * docs: add use_case english * docs: update localization * docs: update localization * docs: update obstacle_segmentation * docs: update obstacle_segmentation * docs: update perception * docs: update perception.en.md * docs: update performance_diag * docs: update performance_diag.en.md * chore: update index.en.md * fix: pre-commit * Apply suggestions from code review markdown style: "code", "emphasis" correct grammar errors Co-authored-by: Michał Kiełczykowski <[email protected]> * Apply suggestions from code review Co-authored-by: Michał Kiełczykowski <[email protected]> * docs: fix typo * docs: update i18n information * Update docs/result_format/index.en.md jsonl fomat Co-authored-by: Michał Kiełczykowski <[email protected]> * docs: update why JSONL format * Update docs/scenario_format/index.en.md scenario description Co-authored-by: Michał Kiełczykowski <[email protected]> * docs: update description of vehicle_id * chore: move sample folder * docs: update converge evaluation start condition * docs: update perception onnx conversion * docs: delete scenario time unit * Update docs/use_case/localization.en.md localization input bag topic list Co-authored-by: Michał Kiełczykowski <[email protected]> * Update docs/use_case/perception.en.md Co-authored-by: Michał Kiełczykowski <[email protected]> * Update docs/use_case/perception.en.md Co-authored-by: Michał Kiełczykowski <[email protected]> * docs: update perception launch sensing module * docs: add hyperlink * Update docs/use_case/performance_diag.en.md Co-authored-by: Michał Kiełczykowski <[email protected]> * docs: setting file creation * docs: obstacle segmentation point cloud error hz * docs: Example usage flow * fix: lint, format * fix: spell check * docs: mkdocs setting * docs: quick start * fix: markdown lint * chore: git mv * docs: update overview * docs: update run.md * chore: git mv * chore: git mv * docs: update setup * fix: yaml lint * fix: sample directory path * docs: update * docs: add make map directory * docs: make dataset directory * Update docs/quick_start/setup.en.md Co-authored-by: Michał Kiełczykowski <[email protected]> * Update docs/quick_start/installation.en.md Co-authored-by: Michał Kiełczykowski <[email protected]> * docs: delete unnecessary sentence Co-authored-by: Michał Kiełczykowski <[email protected]>
Using a more dynamic nav like this allows to prevent warnings: nav:
- ... | index*.md
- section_dir
- ... I didn't run across any issues with this approach yet 🤔 |
Hi there !
I have just read the issues on @ultrabug's i18n compatibility with awesome-pages from the end of 2021, and from what I read I understood that everything works fine unless there is something unexpected in the
mkdocs.yml
such as...
. Knowing this issue, I decided to go for a.pages
file, but I do get 404 errors.I wasn't sure whether I should put it here or as ultrabug's plugin issue, but I believe I'm doing something wrong with the
.pages
file, that's why I'm posting here. Would you mind giving it a look plz ?First of all, I have this project :
With this
mkdocs.yml
:This is what my
.pages
file looks like :While browsing the
mkdocs serve
, if I change the language from default (english) to french, and try to access one of the pages it outputs a 404 error :Whereas if I stay in the default language it doesn't :
I also notice that when clicking on a page, the url is
/file2.md
whereas it should be/fr/file2
: back in the default language instead of staying in thefr
part.Thank you in advance ! 😄
The text was updated successfully, but these errors were encountered: