-
Notifications
You must be signed in to change notification settings - Fork 18
Use root relative link and directory-style URL for plain text nodes #118
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
Conversation
Hey @melissawm, this is a pretty small change that I think can be merged as-is. Would you mind merging when you get the chance? |
src/sphinx_tags/__init__.py
Outdated
return [result] | ||
|
||
def _get_plaintext_node( | ||
self, tag: str, file_basename: str, relative_tag_dir: Path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relative_tag_dir is now unused, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes thanks for catching that. Let me update this.
Done! Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@story645 , would you be able to merge the PR?
Thanks.
- Use root relative link instead of directory-relative URL which caused tags to be appended to the on-page tags for plaintext nodes. - Use directory-style URLs instead of appending .html to match the implementation for badges.
for more information, see https://pre-commit.ci
Current issue where links are not rendered correctly for plaintext nodes:

Link to the parent tags page should be "/_tags/how-to/" but it is currently generated wrongly as "/how-to/_tags/how-to/" due to the relative path.
Hope this is enough info; lemme know if anything else is needed, thank you!