Pandas version checks

  • [x] I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/getting_started/index.html

Documentation problem

Originally I reported upstream to the pydata-sphinx-theme issue tracker: https://github.com/pydata/pydata-sphinx-theme/issues/2110

On the pandas Getting started page, https://pandas.pydata.org/docs/getting_started/index.html, I saw following when using dark theme in Firefox 134.0 (64-bit) on Ubuntu:

Image

I could not really read the text of the spoiler names under Intro to pandas as they are virtually black on black, so I am forced to switch to light mode instead. (Looking at the code what I am looking at seems to be called tutorial accordion cards, but I might be wrong).

The theme developers in the upstream issue noted that the component used seems to be a custom one built by the Pandas team, so reporting this here.

BUT as I was in the process of reporting it here the checkbox at the top of the form had asked me to check whether the issue still persists in the dev version of the documentation. Funny thing is that it doesn't. But it became worse. Now instead of the spoiler title being unreadable the spoiler body isn't:

Image

Suggested fix for documentation

The component in question or its application should be fixed so that text is readable in both dark and light themes.

Comment From: rhshadrach

Thanks for the report. Closing as a duplicate of https://github.com/pandas-dev/pandas/issues/60024