Skip to content

DOC: Remove extra css colors and settings - #20460

Merged
tupui merged 1 commit into
scipy:mainfrom
melissawm:remove-css
Apr 12, 2024
Merged

tupui merged 1 commit into
scipy:mainfrom
melissawm:remove-css

Conversation

@melissawm

Copy link
Copy Markdown
Member

Reference issue

Closes #19958

What does this implement/fix?

This PR removes many extra variables/settings in scipy.css which can now be inherited from the PyData Sphinx Theme.

To simplify the settings as much as possible, I've also made a few changes that I hope are not too disruptive:

  1. I have added the text "SciPy" next to the logo on the top-left, and moved the version switcher to the right of the navigation bar.
    Screenshot_20240412_180125

  2. The cards on the landing page are slightly different, relying on default settings for cards from sphinx-design (see above screenshot)

  3. With the new theme, the fonts are slightly smaller which gives (at least to me) correct wrapping on the sidebar of the user guide, so I removed the special configuration that had been done there.
    Screenshot_20240412_180444

  4. Dark mode and all colors now rely directly on the theme as much as possible.

  5. For the version switcher, my suggestion is to not use a different color for stable, but I kept the orange for latest and red for older versions to highlight to users which version they are looking at.

@melissawm
melissawm requested a review from tupui as a code owner April 12, 2024 21:07
@github-actions github-actions Bot added the Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org label Apr 12, 2024

@tupui tupui left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Awesome! Thanks Melissa. Will merge once green.

@tupui tupui added this to the 1.14.0 milestone Apr 12, 2024
@melissawm

melissawm commented Apr 12, 2024 •

Copy link
Copy Markdown
Member Author

Forgot one thing: I also changed the try examples button to use the primary theme color.

@tupui

tupui commented Apr 12, 2024

Copy link
Copy Markdown
Member

All looks good to me 👍 merging, thanks again!

@tupui
tupui merged commit e0cfd65 into scipy:main Apr 12, 2024
@tupui tupui added the maintenance Items related to regular maintenance tasks label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org maintenance Items related to regular maintenance tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: Colors/design with PyData Sphinx Theme > 0.15

2 participants