Skip to content
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

Merged
merged 7 commits into from Mar 7, 2022

Conversation

choldgraf
Copy link
Collaborator

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

Copy link
Contributor

@tupui tupui left a 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 😃

docs/conf.py Outdated Show resolved Hide resolved
@choldgraf
Copy link
Collaborator Author

OK - addressed each of @damianavila's suggestions, and also rebased on master so that we can compare the behavior.

@damianavila
Copy link
Collaborator

damianavila commented Feb 26, 2022

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.

@choldgraf
Copy link
Collaborator Author

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.

@choldgraf
Copy link
Collaborator Author

choldgraf commented Mar 6, 2022

Updated the example @damianavila - also updated the CSS per your suggestions

Copy link
Collaborator

@damianavila damianavila left a comment

Choose a reason for hiding this comment

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

LGTM now!

@damianavila damianavila merged commit 9481c3d into pydata:master Mar 7, 2022
@damianavila
Copy link
Collaborator

And I merged it 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a data- attribute instead of CSS classes for the active version in version switcher
3 participants