8000 DOC fix dropdown anchor and collapse-all button in `sphinx-design==0.6.0` by Charlie-XIAO · Pull Request #29493 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC fix dropdown anchor and collapse-all button in sphinx-design==0.6.0 #29493

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 2 commits into from
Jul 20, 2024

Conversation

Charlie-XIAO
Copy link
Contributor
@Charlie-XIAO Charlie-XIAO commented Jul 15, 2024

With the latest sphinx-design==0.6.0, our tweaks on the dropdowns are broken since they refactored the structure. Check for instance this page:

  • The anchor targets are broken/empty
  • The anchor should have been on the right of the title
  • The "expand all" button should have been on the left of the toggle button, and it is now causing undesired movements

This PR makes corresponding updates to retain a similar UI/UX as before. See this corresponding artifact page.

8000

Copy link

✔️ Linting Passed

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

Generated for commit: 4461610. Link to the linter CI: here

Copy link
Member
@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Nice! Thanks @Charlie-XIAO

Copy link
Member
@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

@Charlie-XIAO How did you catch this issue?

In any case, LGTM.

@thomasjpfan thomasjpfan merged commit 63e1584 into scikit-learn:main Jul 20, 2024
37 checks passed
@Charlie-XIAO Charlie-XIAO deleted the sd-upgrade branch July 21, 2024 03:30
@Charlie-XIAO
Copy link
Contributor Author

Found that dropdowns look weird on dev -> looked at lock files and found sphinx-design was updated -> checked its source code and found it completely changed the implementation

MarcBresson pushed a commit to MarcBresson/scikit-learn that referenced this pull request Sep 2, 2024
glemaitre pushed a commit to glemaitre/scikit-learn that referenced this pull request Sep 9, 2024
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
0