Skip to content

DOC Add note on backtick rendering #24368

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

Merged
merged 4 commits into from
Sep 8, 2022
Merged

Conversation

lucyleeow
Copy link
Member

Reference Issues/PRs

Relates to #14817 (comment)

What does this implement/fix? Explain your changes.

Add note on backtick rendering

Any other comments?

Happy to change wording. Was not sure if I should recommend use of one form over the other?

cc @thomasjpfan

@@ -846,6 +846,10 @@ Finally, follow the formatting rules below to make it consistently good:
* When editing reStructuredText (``.rst``) files, try to keep line length under
80 characters when possible (exceptions include links and tables).

* Both single and double backticks surrounding text will render as inline
literal ('code', e.g., `list`), due to specific configurations set in
scikit-learn.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we recommend using single quotes by default as a result?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you mean single backtick?

@@ -846,6 +846,10 @@ Finally, follow the formatting rules below to make it consistently good:
* When editing reStructuredText (``.rst``) files, try to keep line length under
80 characters when possible (exceptions include links and tables).

* In scikit-learn reStructuredText files both single and double backticks
surrounding text will render as inline literal (often used for code, e.g.,
`list`). This is due to specific configurations we have set.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`list`). This is due to specific configurations we have set.
`list`). This is due to specific configurations we have set. Single
backticks should be used nowadays.

@lucyleeow
Copy link
Member Author

Thanks! Amended!

@glemaitre glemaitre merged commit debc620 into scikit-learn:main Sep 8, 2022
@glemaitre
Copy link
Member

Thanks @lucyleeow

@lucyleeow lucyleeow deleted the doc_backtick branch September 9, 2022 01:27
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants