Closed wwarriner closed 2 years ago
I think this is done. I am unsure how to address the concern over silent drop of the second return value from the helper function on line 133 on plugin.py
. In my experience this hasn't caused any issues, but I defer to your expertise.
Thanks
:heavy_check_mark: :shipit: https://github.com/mkdocs/mkdocs-redirects/releases/tag/1.1.0
Adds support for hash fragment redirect targets.
This will allow e.g.
old.md: new.md#section
to work as expected.I added a helper function to split the hash fragment off the rest of the path. Whenever the hash fragment gets in the way of path manipulation logic, it gets detached and/or reattached, as appropriate.
To validate I added duplicate test cases with hash fragments, though there are no tests for
on_post_build()
. I verified that with a mkdocs project, but can't readily share that verification.Fixes #16