Comments (8)
It seems that #45 is taking us closer to a solution, but it's still really tough.
Out of these two redirects, the 1st one will start working, but not 2nd:
"en/old.md": "new.en.md"
"pt/old.md": "new.pt.md"
Somehow the pt
one is not reported to be in the files collection.
from mkdocs-redirects.
Please provide a mkdocs website source (mkdocs.yml and necessary sources) that exhibits this issue.
from mkdocs-redirects.
I am with the same problem as the one reported here. I am using the mkdocs-static-i18n
and I can't get the redirects to work. Any update?
from mkdocs-redirects.
@oprypin working on that.
from mkdocs-redirects.
@oprypin here they are:
Steps to Reproduce
- Access the website at https://hhslepicka.github.io/mkdocs-redirect-issue-i18n/
- Click on the
Old
link on the home page. - You will receive a 404 error
- Go back into the home page
- Click on the
New
link - It will open the new page properly
As @MAGICCC reported, this plugin ends up generating a old.en
folder with the index.html
file inside of it (https://github.com/hhslepicka/mkdocs-redirect-issue-i18n/tree/gh-pages).
Also, the page is not generated for the multiple supported languages or even for the language indicated on the redirects area, it just adds it to the root.
from mkdocs-redirects.
I did a quickfix on my end some days after I created the issue.
Basicly a script which will change the index.html in the redirect folders
#/bin/bash
find ./site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path './site/de/*' -not -path './site/en/*' | while read f; do
echo "Fixing redirect '$f'..."
sed -i -E 's/\.en\/"/\/"/' $f
done
And I am speaking about this repo, https://github.com/mailcow/mailcow-dockerized-docs
from mkdocs-redirects.
@oprypin I appreciate you looking into that. Thank you very much.
from mkdocs-redirects.
The i18n plugin simulates the subsequent builds on the fly modifying the configuration to change the language of the theme and correctly save new.en.md
under en/new/index.html
. I doubt this is an issue to be dealt with in the redirects plugin.
https://github.com/kamilkrzyskow/i18n/tree/redirects-plugin-support I made changes to i18n plugin, didn't create a PR yet, but it's been working OK for the past few days.
from mkdocs-redirects.
Related Issues (20)
- Allow to use regular expressions for redirects HOT 10
- Missing LICENSE in PyPI sdist HOT 1
- Installing mkdocs-redirects mentions missing testresources HOT 1
- Handing over maintenance? HOT 13
- Redirect readme.md to index.md creates redirect loop HOT 3
- html to html redirection HOT 1
- some utf-8 characters break redirects HOT 3
- Uppercase to Lowercase redirect result in weird loop HOT 2
- Computed URLs are not taken into account when resolving target URL
- [Feature request] Use an external file to store redirections mapping HOT 2
- Redirect fails in Material for MkDocs HOT 6
- allow redirecting of .html URLs (without producing a warning) HOT 4
- When I redirect it tries to download the file
- Frontmatter-based redirects? HOT 1
- Use path based redirects HOT 1
- Cannot use variables HOT 6
- `DeprecationWarning` in mkdocs 1.5.3 for use of `warning_filter` HOT 1
- Option to override use_directory_urls for redirect sources
- please provide a wheelon PyPi HOT 2
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-redirects.