-
Notifications
You must be signed in to change notification settings - Fork 328
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
Use dataclasses instead of extra_classes #597
Conversation
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.
Wooo thanks! This looks great and I think I get the doc to use it properly! Approving for what it's worth 😃
src/pydata_sphinx_theme/theme/pydata_sphinx_theme/_templates/version-switcher.html
Show resolved
Hide resolved
434cd25
to
d597406
Compare
OK - addressed each of @damianavila's suggestions, and also rebased on |
Master is currently broken given #574 (comment) I have a fix in place in an upcoming PR: #599. Let's merge that one first and rebase this one so we can effectively compare. |
I've merged #599 and updated this branch as well, so that we can compare the changes in code + functionality more directly. Would love feedback on whether this PR is the right direction to go, and anything we'd need to change here. |
Updated the example @damianavila - also updated the CSS per your suggestions |
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.
LGTM now!
And I merged it 😉 |
This changes our version switcher to use
dataclass
entries for all dropdown links and the button itself, rather than having users manually add classes to the JSON entries.closes #596