Skip to content

Use dataclasses instead of extra_classes#597

Merged
damianavila merged 7 commits intopydata:masterfrom
choldgraf:enh-version-autolabel
Mar 7, 2022
Merged

Use dataclasses instead of extra_classes#597
damianavila merged 7 commits intopydata:masterfrom
choldgraf:enh-version-autolabel

Conversation

@choldgraf
Copy link
Copy Markdown
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
Copy Markdown
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 😃

Comment thread docs/_static/custom.css
Comment thread docs/conf.py Outdated
Comment thread docs/user_guide/configuring.rst Outdated
Comment thread docs/user_guide/configuring.rst Outdated
@choldgraf choldgraf force-pushed the enh-version-autolabel branch from 434cd25 to d597406 Compare February 25, 2022 20:49
@choldgraf
Copy link
Copy Markdown
Collaborator Author

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

@damianavila
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread docs/user_guide/configuring.rst
@choldgraf
Copy link
Copy Markdown
Collaborator Author

choldgraf commented Mar 6, 2022

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

Copy link
Copy Markdown
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
Copy Markdown
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