Skip to content

DOC Add instructions how to use dropdowns in contributing guide - #26636

Merged
glemaitre merged 23 commits into
scikit-learn:mainfrom
ArturoAmorQ:doc_guidelines
Jun 22, 2023
Merged

glemaitre merged 23 commits into
scikit-learn:mainfrom
ArturoAmorQ:doc_guidelines

Conversation

@ArturoAmorQ

Copy link
Copy Markdown
Member

Reference Issues/PRs

Follows #26625.

What does this implement/fix? Explain your changes.

#26625 introduces the use of dropdowns. This PR adds some simple guidelines on the contributing guide on how to use them.

Any other comments?

@github-actions

github-actions Bot commented Jun 20, 2023 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 185cf45

@adrinjalali

Copy link
Copy Markdown
Member

Merging with main should fix the linter issue.

@glemaitre glemaitre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A couple of nitpicks.

Comment thread doc/developers/contributing.rst Resolved
Comment thread doc/developers/contributing.rst Outdated
- narrative that is too use-case specific;
- narrative that may only interest users that want to go beyond the pragmatics
of a given tool.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We don't have enough spacing between the end of the itemize and the beginning of the paragraph.

@ArturoAmorQ ArturoAmorQ Jun 22, 2023 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't know how to add spacing. Seems like a bug to me.

Nevermind.

Comment thread doc/developers/contributing.rst Resolved
Comment thread doc/developers/contributing.rst Resolved
Co-authored-by: Guillaume Lemaitre <[email protected]>

@GaelVaroquaux GaelVaroquaux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM.

I had a look at the rendered docs, and it looks fine

@GaelVaroquaux

Copy link
Copy Markdown
Member

I few comments from @glemaitre still need to be addressed, in particular "We don't have enough spacing between the end of the itemize and the beginning of the paragraph."

Comment thread doc/developers/contributing.rst Outdated
* Too much information makes it difficult for users to access to the
content they are interested in. Use dropdowns to hide by default:

- low hierarchy sections such as `Examples`, `References`, `Properties`, etc.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

After a discussion with @ogrisel that was inline with @GaelVaroquaux, let's not fold Examples. Instead, we should advocate for making sure that the Examples section comes right after the main discussion with the least possible folded section in-between.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added a small mention on this regard.

@glemaitre
glemaitre merged commit 4a2b8c3 into scikit-learn:main Jun 22, 2023
@ArturoAmorQ
ArturoAmorQ deleted the doc_guidelines branch June 22, 2023 12:35
@glemaitre

Copy link
Copy Markdown
Member

Thanks @ArturoAmorQ

jeremiedbb pushed a commit to jeremiedbb/scikit-learn that referenced this pull request Jun 29, 2023
…it-learn#26636)

Co-authored-by: Gael Varoquaux <[email protected]>
Co-authored-by: ArturoAmorQ <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
jeremiedbb pushed a commit that referenced this pull request Jun 29, 2023
Co-authored-by: Gael Varoquaux <[email protected]>
Co-authored-by: ArturoAmorQ <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
REDVM pushed a commit to REDVM/scikit-learn that referenced this pull request Nov 16, 2023
…it-learn#26636)

Co-authored-by: Gael Varoquaux <[email protected]>
Co-authored-by: ArturoAmorQ <[email protected]>
Co-authored-by: Guillaume Lemaitre <[email protected]>
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.

4 participants