Skip to content

DOC fix collapsing using new bootstrap v5 API #53209

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 3 commits into from
May 15, 2023

Conversation

glemaitre
Copy link
Contributor

@glemaitre glemaitre commented May 13, 2023

The dev version of the documentation is broken: the collapse buttons of the table in the "Intro to pandas" are not responsive.

This is linked to an update of the pydata-sphinx-theme from 0.11 to 0.13 (#53029) that uses Bootstrap v5 that does not rely anymore on jQuery and renamed data-toogle and data-target to data-bs-toogle and data-bs-target, respectively.

In addition, badge-dark is deprecated in favour of badge-dark. However, bg-dark does work well with dark theme and bg-secondary does a better job.

This is a quick fix knowing that a change to sphinx-design would allow to removal the pure HTML file.

@glemaitre
Copy link
Contributor Author

/preview

@github-actions
Copy link
Contributor

Website preview of this PR available at: https://pandas.pydata.org/preview/53209/

@glemaitre
Copy link
Contributor Author

/preview

@github-actions
Copy link
Contributor

Website preview of this PR available at: https://pandas.pydata.org/preview/53209/

@glemaitre
Copy link
Contributor Author

/preview

@github-actions
Copy link
Contributor

Website preview of this PR available at: https://pandas.pydata.org/preview/53209/

@jorisvandenbossche jorisvandenbossche added this to the 2.1 milestone May 15, 2023
Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Thanks, looks good!

@mroeschke mroeschke merged commit a51af3f into pandas-dev:main May 15, 2023
@mroeschke
Copy link
Member

Thanks @glemaitre

Rylie-W pushed a commit to Rylie-W/pandas that referenced this pull request May 19, 2023
* DOC fix collapsing using new bootstrap v5 API

* FIX use visible button in both dark and light theme

* iter
topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 22, 2023
* DOC fix collapsing using new bootstrap v5 API

* FIX use visible button in both dark and light theme

* iter
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* DOC fix collapsing using new bootstrap v5 API

* FIX use visible button in both dark and light theme

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

Successfully merging this pull request may close these issues.

3 participants