Skip to content

DOC Introduce dropdowns in the User Guide #26617

Closed

Description

@ArturoAmorQ

Describe the issue linked to the documentation

Dropdowns are implemented in #26625. They can help users avoid scrolling trough large pages and can quickly get them access to the content they are interested in.

Suggest a potential alternative/fix

Use dropdowns to hide:

  • low hierarchy sections such as References, Properties, etc. See for instance the subsections in 3.3.2.16 Detection error tradeoff (DET);
  • in-depth mathematical details;
  • narrative that is too use-case specific;
  • narrative that may only interest users that want to go beyond the pragmatics of a given tool.

Additionally:

  • Do not use dropdowns for the low level section Examples, as it should stay visible to all users. Make sure that the Examples section comes right after the main discussion with the least possible folded section in-between.
  • Be aware that dropdowns break cross-references. If that makes sense, hide the reference along with the text mentioning it. Else, do not use dropdown.

For more information see Contributing to documentation, notably the "Guidelines for writing the User Guide and other reStructuredText documents" dropdown.

This is the list of sub-modules to be addressed:

Contributors willing to address this issue, please offer one of the above sub-modules per pull request. Remember also to mention on which module you are working on.

Thanks for your help!

Activity

  1. GaelVaroquaux commented on Jun 19, 2023

    @GaelVaroquaux
    Member

    +1000. Thanks a lot for suggesting this, this is super useful!

  2. added
    good first issue
    dependencies
    and removed
    Needs Triage
    dependencies
    on Jun 19, 2023
  3. Shreesha3112 commented on Jun 22, 2023

    @Shreesha3112
    Contributor
  4. Tech-Netiums commented on Jun 22, 2023

    @Tech-Netiums
    Contributor
  5. punndcoder28 commented on Jun 24, 2023

    @punndcoder28
    Contributor

    Working on 7.2 Real world datasets, 2.1 Gaussian mixtures, 2.2 Manifold Learning

    How do I make the images on the doc pages load while building it locally? I am only able to see the image path and not the actual image on the webpage

  6. rprkh commented on Jun 26, 2023

    @rprkh
    Contributor
  7. lucyleeow commented on Jun 27, 2023

    @lucyleeow
    Member

    You don't seem to be able to get a permalink to headers with these new dropdowns. Would it be possible to add this?
    cc @ArturoAmorQ and @glemaitre

    Edit: to expand, you used to be able to get a link to a header by clicking next to it (mouse was next to the header in the screenshot):

    image

    But this will not work with the new drop downs

  8. glemaitre commented on Jun 27, 2023

    @glemaitre
    Member

    I might think of two solutions (but I have poor understanding in HTML/CSS):

    • Would need to inject an id="xxx" in the <details> tag. I don't see any straightforward way to do that.
    • We could use a workaround and require to add tag with the id, i.e. <span id="xxx">Summary</span> that will be inject between the <summary> tag.

    Then, in terms of HTML, we can refer to this section using #xxx. What I am not sure about is if the :ref: directive from sphinx can be used or we should use a pure HTML tag then.

  9. GaelVaroquaux commented on Jun 27, 2023

    @GaelVaroquaux
    Member
  10. greyisbetter commented on Jun 27, 2023

    @greyisbetter
    Contributor

    Maybe I don't understand the main issue, but if we are trying to resolve permalinks with Sphinx instead of HTML then this can be done:

    .. _my-header-label:
    
    My Header
    =========
    
    This is the content of the header.
    
    You can refer to this header using the :ref:`My Header <my-header-label>`.
    
  11. 20 remaining items

  12. rajveer43 commented on Aug 26, 2023

    @rajveer43
  13. MikiPWata commented on Aug 28, 2023

    @MikiPWata
    Contributor
  14. anamfatima1304 commented on Sep 18, 2023

    @anamfatima1304
    Contributor
  15. kots14 commented on Oct 5, 2023

    @kots14
    Contributor
  16. added a commit that references this issue on Oct 8, 2023
  17. KartikeyBartwal commented on Oct 14, 2023

    @KartikeyBartwal
  18. jeromedockes commented on Oct 20, 2023

    @jeromedockes
    Contributor
  19. kots14 commented on Nov 5, 2023

    @kots14
    Contributor

    Awaiting review on this PR - #27551

  20. lebaudantoine commented on Dec 6, 2023

    @lebaudantoine

    May I work on Ensemble methods ? as the PR #27174 was closed

  21. ArturoAmorQ commented on Dec 8, 2023

    @ArturoAmorQ
    MemberAuthor

    May I work on Ensemble methods ? as the PR #27174 was closed

    Looks like somebody already submitted a PR for that, @lebaudantoine. Next time feel free to do the same or just mention "Working on ...."

  22. Jiya126 commented on Dec 13, 2023

    @Jiya126

    Are there any tasks left in this issue?
    Would like to work on those

  23. manuel-morales-a commented on Jan 29, 2024

    @manuel-morales-a
    Contributor
  24. linus-md commented on Feb 12, 2024

    @linus-md
    Contributor

    @ArturoAmorQ do you have any feedback on #27920, #27921, #27919, #27915 and #27922?

  25. ArturoAmorQ commented on Sep 5, 2024

    @ArturoAmorQ
    MemberAuthor

    Thanks to all those who contributed to this issue. Closing as completed! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationMeta-issuegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions