-
Notifications
You must be signed in to change notification settings - Fork 17
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
Convert collection links from raw HTML to directive #200
Convert collection links from raw HTML to directive #200
Conversation
58cf15f
to
41d8feb
Compare
41d8feb
to
86c2c05
Compare
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.
LGTM. Some really minor nits on wording. I couldn't find any faults or optimizations for the code side but I did look and it all seems fine. I think this is really nice work @felixfontein
Co-authored-by: Don Naro <dnaro@redhat.com>
Co-authored-by: Don Naro <dnaro@redhat.com>
@oraNod thanks a lot for reviewing this and improving the formulations :) |
you're welcome. thanks for all your work! |
Currently includes
#195,#198, and #199. Will rebase once these are merged.Converts the inline HTML for collection links to a custom directive. The external links are a custom nodes class inherited from docutils's
reference
with a custom HTML generator; for other builders, thereference
generator provided by that builder is used (so in LaTeX it is a regular hyperlink reference). The "Communication" button though needs a Sphinxpending_xref
node (to resolve the reference), which improves on the previous version by not relying on implementation details, but at the same time is worse than before becausepending_xref
is replaced by a plainref
(Sphinx doesn't allow to customize this), which rendered to HTML neither hastarget="_blank"
noraria-role="button"
. (Aside from that, it looks and behaves like a button, though.)The HTML output didn't change (except the missing attributes for the "Communication" button, which you cannot see here):
The LaTeX output is now as expected - the first four buttons are hyperlinks, the last one an internal reference in the PDF file: