-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
[WIP] Added a style hypens: none
to <p>
tag of <div>
parent whose classname is section
#12944
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
…s name is section is selected
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.
Why is .section p
the appropriate selector for parameter options?
parameter named and type specs do not appear in a as far as I can see. How have you been testing these changes? |
The generated HTML is of this form. If you do a CTRL + F The way I tested it was adding this part of the CSS and
|
While it is possible that hyphenation is generally not great in the
documentation, I think we should try to restrict this change as much as
possible to parameter listings, or similar <dl> listings. Where is the
hyphenation rule that we are trying to override defined?
|
The only places I find the keyword |
The hyphenation CSS comes from
https://github.com/sphinx-doc/sphinx/blob/master/sphinx/themes/basic/static/basic.css_t
and is specifically applied to div.body p, div.body dd, div.body li,
div.body blockquote. Perhaps we should be disabling it altogether. Or just
for dd. Or just for dd in numpydoc listing (approximately: div.body
.field-list dd).
|
hypens: none
to <p>
tag of <div>
parent whose classname is section
hypens: none
to <p>
tag of <div>
parent whose classname is section
is provided and if it is zero, negate the score we added in the previous line
# If sample_weight are non default AND sample_weight[i] is 0 | ||
# negative the score by the one that we added above. | ||
if sample_weight and not sample_weight[i]: | ||
out -= 1 |
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.
I don't think this change is relevant to the current pull request
Are you still interested in finishing this up? |
Closed in #15499, thanks ! |
Reference Issues/PRs
Fixes #12941
What does this implement/fix? Explain your changes.
Ensures that the hyphens
-
are not generated when changing the size of the browser, having these hyphens cause confusion since they change the parameter entries of a specific sklearn object/function. I specifically selected all paragraphs under thediv class = section
since this is where the documentation text is entered inAny other comments?
div.section dt {hyphens: none}
did not make the changes required.