I stumbled on this when looking into #23. The key difference is use_directory_urls is set to true in this case.
mkdocs.yml
site_name: test
use_directory_urls: true
theme:
name: material
plugins:
- redirects:
redirect_maps:
foo.md: foo/README.md
Note that with use_directory_urls enabled, the original markdown do is the same as the redirect target. This results in the redirect output file being generated on top of the file generated by mkdocs. It appears that the only productive thing the plugin can do in this situation is true raise an error.
This occurs in both v1.0.1 & v1.0.3. This occurs for when the redirect target is README.md or index.md.
I stumbled on this when looking into #23. The key difference is
use_directory_urls
is set totrue
in this case.mkdocs.yml
Note that with
use_directory_urls
enabled, the original markdown do is the same as the redirect target. This results in the redirect output file being generated on top of the file generated bymkdocs
. It appears that the only productive thing the plugin can do in this situation is true raise an error.This occurs in both v1.0.1 & v1.0.3. This occurs for when the redirect target is
README.md
orindex.md
.Commands to reproduce:
site/foo/index.html