-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Anchors generated for relative links doesn't exist #30
Comments
Thanks for reporting and supplying a fix! I will investigate and apply changes, for the next release. |
Thanks again for pinpointing this one. I fixed it properly in 4b2defb by changing
into
And I made sure to add a unit test for this case. Will release the fix soon! |
Should be addressed in v1.0. Let me know if it's fixed for you. |
When MkDocs As far as I can tell, this line:
with the added It breaks one existing test case, though:
But in MkDocs, "/Chapter1/Section2" would actually be "/Chapter1/Section2/", and the test would pass again. I'm not sure if it should be a separate issue. But at least it's related to the above problem. |
Thanks @EricDuminil for both the report and guidance for the solution! Released in |
@timvink Excellent, it works with |
Relative links are turned into anchors according to their relative paths, but in the
print-page
class, the section'sid
which acts as its anchor is generated according to the page's absolute path. This results in these links not working.We patched this at the end of
url.py
by generating all relative anchors (this assumes all of them are unique across the entire site and the paths do not contain-
-s:The text was updated successfully, but these errors were encountered: