-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix option name for smart quotes in sphinxdoc conf #6422
Conversation
Thanks, @atugushev! Can you add a |
d3c145a
to
442166f
Compare
@cjerdonek done! |
442166f
to
3d6af51
Compare
On second thought, how would you feel about using backticks instead (code formatting) for such options appearing inline in the text? It seems like "smart quoting" leads to better formatting for true text, and that way we could avoid having to sacrifice good formatting for one over good formatting for the other. Also, on the page you linked to, I noticed a number of spots that aren't using backticks when it should, e.g.
or are using backticks incorrectly, e.g.
|
Also, in cases where using backticks might not work correctly (e.g. nested situations like inside |
I've tried slash-escape, but it doesn't work as expected.
Agree. Maybe it's better to turn |
3d6af51
to
c0c7d82
Compare
@cjerdonek now it looks better! Thanks for fixing the news entry text! |
Yes, I think it's an improvement! But there's still the issue that options appearing inside Sphinx "roles" like And also textual dashes won't get converted as a result. What about not putting option flags inside roles, and instead doing something like putting the hyperlink afterwards in a footnote or parentheses? |
c0c7d82
to
5a5241d
Compare
Also configure the smartquotes_action to exclude dashes from transformation. See https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-smartquotes
5a5241d
to
61520b9
Compare
@atugushev I fixed up some of the wording, etc. and included more explanation of why |
LGTM 👍 |
Thanks again for this improvement! 😄 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes transform double dashes to a long dash. For the instance you can see this issue in this section.
Correct option name described here: https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-smartquotes
Before
After