-
Notifications
You must be signed in to change notification settings - Fork 40
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
Distinguish name of extension, name of sample target file and name of… #79
base: main
Are you sure you want to change the base?
Conversation
… sample target section I think the documentation is somewhat clearer if the role, the example file and the example target section within that role aren't all named "hoverxref". I am a Sphinx/RST beginner, currently hunting down why my hoverxref example doesn't work. Having made these changes, I can confirm that having a section "hoverxref_section" within a file "hoverxref_file" should be enough to create a findable target "hoverxref_file:hoverxref_target". It was less clear before. A new user can now easily confirm this by grepping for "hoverxref_target".
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.
This is a good point! I want to think more about the proposed names (hoverxref_file
and hoverxref_section
). Maybe calling them example.rst
and title
. The problem with title
is the modal popup will show "Title" as the title of the modal instead of "hoverxref" and won't look great.
On the other hand, the extension uses basic Sphinx :ref:
role references and targets; it's not something specific from hoverxref. So, it may be good to link to the :ref:
role documentation somewhere at the very beginning of the documentation instead of changing these names.
I actually disagree that "Title" looks worse than "hoverxref". What about "example_file.rst", "Example section title", and "example_label"? The important thing is just that they are all different and unique (i.e. these terms don't appear anywhere else in a relevant source code) - if we spend more time discussing them, I'm gonna call bikeshedding =) I propose "example_label" because the result of my debugging two months ago was that I hadn't understood the need to use the Update: I forgot that after including autosectionlabel, I still had to figure out that I also need to set |
Calling the sample project "sphinx-hoverxref" might be a bit confusing, and it should be made clear that "latest" refers to the documentation's version, not somehow the hoverxref version. See also PR readthedocs#79. I am not sure whether changing "latest" to "your-version" is an improvement, actually, feel free to revert that part if you disagree... the change is not too important anyway.
Hi! Sorry, I didn't understand I should have clicked on "re-request review". Would you like to decide on how to call them for now, and merge that thing? I feel that either the current PR or your suggestion or my suggestion in the last message improves on the status quo. If an even better solution is possible, of course I won't object if you change something again soon =) |
… sample target section
I think the documentation is somewhat clearer if the role, the example target file and the example target section aren't all named "hoverxref". I am a Sphinx/RST beginner, currently hunting down why my hoverxref example doesn't work. Having made these changes, I can confirm that having a section "hoverxref_section" within a file "hoverxref_file" should be enough to create a findable target "hoverxref_file:hoverxref_section". It was less clear before. A new user can now easily confirm this by grepping for "hoverxref_section".
Update: Sorry, I mixed up some words in the commit message description! Please refer to this PR description.