Skip to content

[Doc][Examples Gallery]: Side Navigation Section breaks on Animation examples #25836

Closed

Description

@codingtosh

Documentation Link

https://matplotlib.org/devdocs/gallery/animation/index.html

Problem

Steps:

  1. Go to Animations from the navigation section on the left hand side.
  2. Click on the animation examples either from the side navigation section or from the thumbnails in the main page.

Expected Outcome: Side navigation section continues to show the links of examples gallery
expected behavior

Actual Outcome: Side navigation section shows the matplotlib API reference links instead.

unexpected behavior

Result: UX is negatively affected, navigation is inconsistent compared to everywhere else in the documentation.

Note: Not reproducible for these examples, breaks for all other animation examples:

Possible reasons: Animation renderer could have something to do with it, but then again, the above 4 examples don't reflect that. Needs root cause analysis.

Reproducible in Mozilla Firefox, Edge as well as Chrome. Reproducible across devdocs, stable and the older versions.

Actionability: The scope is limited to the Animation examples in the Examples Gallery as far as I have found out. For now, this issue isn't critical or high priority.

Suggested improvement

The section navigation div should contain the toctree of the Examples gallery links, not the API reference links.
Fix should have this result:
Unexpected div:
unexpected div
should be more like the expected div:
expected div

Activity

  1. codingtosh commented on May 8, 2023

    @codingtosh
    Author

    @story645 @melissawm This was the issue we discussed. Web dev isn't my forte, but should be labelled good-first-issue imo.

  2. ksunden commented on May 8, 2023

    @ksunden
    Member

    I have the (unproven) suspicion that all that is required is changing one of the following two headings (plus perhaps checking links to them):

    Animation
    =========

    Animation
    =========

    Marking as good first issue.

  3. added
    🌱 Good first issueOpen a pull request against these issues if there are no active ones!
    on May 8, 2023
  4. sajal1123 commented on May 10, 2023

    @sajal1123

    Hi @codingtosh, I was exploring the code and noticed that the autosummary directive in animation_api.rst does not follow the template provided in autosummary.rst- whereas some of the other files under doc/api follow it. Could this be the source of this issue?
    Screenshot 2023-05-10 at 1 57 08 AM

    I am new to this repository(and open source), so apologies if I'm missing something trivial. Can you also let me know how I can test a change for this issue?

  5. codingtosh commented on May 13, 2023

    @codingtosh
    Author

    Hi @sajal1123 Thanks for looking into this, welcome to the community and open source in general. Have fun!

    As a starting point, you should go over this and then this to help you set up the environment and test the changes locally.

    You can also join the matplotlib gitter server and get in the the incubator channel where members can help you through with your first PR.

    I'm new to this community and the project as well, you can wait for maintainers to comment on your PR or tag @melissawm @story645 @ksunden @tacaswell as they're seasoned contributors in this community and will be able to review and merge your changes in production.

    Generally, you should ask the maintainers to assign you a specific issue before you open the PR as this prevents multiple contributors from working on the same issue. But according to the contributing guide above, there is no such practice here in matplotlib. So you can claim an issue simply by commenting on this issue thread and then opening the PR. It will be good to reference this issue number in the PR you open to provide context to the reviewers. Make sure the issue number is prefixed by a pound sign(#) which will create the hyperlink on github.

    Another useful practice is to use git blame in your cli to see who has authored the lines you intend to change and the commit they did it in(helps you understand the context of the change). Then you can tag them in your PR as well. Alterantively, you can use the github platform to see the authorship info like here.

    While I may not be able to help you directly with the changes, let me know if you face any blockers pertaining to git or open source in general.

  6. changed the title [-][Doc][Examples Gallery]: Side Navigation Section breaks on Animation examples. [/-] [+][Doc][Examples Gallery]: Side Navigation Section breaks on Animation examples[/+] on May 25, 2023
  7. QuLogic commented on May 25, 2023

    @QuLogic
    Member

    Fixed by #25977.

  8. added this to the v3.7-doc milestone on May 25, 2023
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

    Documentation🌱 Good first issueOpen a pull request against these issues if there are no active ones!

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions