Repository navigation
Migrate documentation to new unified astropy sphinx theme - #19206
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
6dfc10b to
b2c4269
Compare
|
Is this worthy of a changelog? |
|
I'm going to optimistically milestone this for 8.0 and then send @astrofrog some pizza or something. |
|
I'll be in touch about my preferred toppings! |
|
I think he likes cash stuffed crust. |
|
Wow look at how orange it is: https://astropy--19206.org.readthedocs.build/en/19206/ @eteq should be happy now. |
|
FWIW we did not include a change log when we switched theme the last time |
|
I added some links on the original post as this PR would naturally close a few issues (yay). Any chance you want to address #15112 also while you are at it? |
|
@Cadair - generally speaking this looks great and has a nice feel. I do wonder a bit about the bright orange links, which on some pages seem a bit much, especially on the main user docs index (https://astropy--19206.org.readthedocs.build/en/19206/index_user_docs.html). Is this break from the standard scientific Python docs theme driven by a broader web design principle? |
|
On the light or dark theme?
I picked the colours so they were astropy themed. They are the ones from the logo. They can be tweaked but you do need to maintain a high contrast ratio for accessibility. |
|
Also, we shouldn't hold this PR up unnecessarily on colour choices. We can repaint the bikeshed to our hearts content over on the theme repo. The main objectives here are the unified search and the unified navigation bar over all astropy documentation sites. |
Both, and the dark theme it is especially bright and jarring.
Colour choices matter quite significantly and I would not call this bikeshedding. As you note the intent of this PR is unified infrastructure and theme, but right now this has the consequence of making a major and completely non-standard "interface change" to a widely used astropy page. None of the other major projects deviate from normal blue-tinted links in their web pages.
That might be controversial. I asked gemini "is orange a good color for web page links?" Orange is an excellent, high-visibility color for call-to-action (CTA) buttons or specific, attention-grabbing links, as it combines energy with warmth to boost conversions. However, it is generally poor for standard body text links, as it lacks the universal recognition of blue and can pose accessibility challenges. You can take that or leave it, but none of us are web design experts so I would tend to defer to the default non-controversial colors in the standard theme. So that would imply changing the astropy.org theme colors rather than the docs.astropy.org theme colors to be fully unified. |
|
I think there's some context missing here. When I say we shouldn't hold up this PR, I mean because the colours are not defined in this repo (they are in I don't actually care what the colours for the theme are, I asked for feedback on the theme pushing 4 months ago. I've opened a PR which resets the link colours in the body of the pages to the pydata-sphinx-theme colours here: astropy/astropy-sphinx-theme#58 |
|
@Cadair - thanks for the clarification, that makes sense. So I would endorse merging this PR contingent upon agreement (in principle) to change the I'll confess that the unusual orange links in the I do care about colors and also believe that adhering to almost universally-adopted web standards is important. |
I have no issues with changing things, but basically so far only ~4 people have reviewed the theme. 🤷 |
|
Maybe it is better to re-milestone this to v8.1 so we have time do make such discussions and not rush things into production? |
|
It's already in production, ccdproc just merged it, the website has merged it. We can change the theme settings without any issues. I see no reason to delay this, but you all do what you want. |
[ci skip]
All the ones I could find anyway. [ci skip]
[ci skip]
Also bump lowest-resolved-tree
Co-authored-by: P. L. Lim <[email protected]>
astrofrog
left a comment
There was a problem hiding this comment.
I think we should merge this in now and then move the discussion to the theme repo to adjust the link colours. People have been on board with this theme and we have already decided to start the migration. We can easily adjust the link color in the theme this week and have it sorted before the final 8.0 release.
In the interest of minimising changes here after the imminent 8.0.0b1 release, I am going to go ahead and merge and we should then continue discussing link colors on the theme PR.
|
And to be explicit, I am happy to agree to merging the theme PR to update the link colors. |
|
👍 on merging now for 8.0. |
…206-on-v8.0.x Backport PR #19206 on branch v8.0.x (Migrate documentation to new unified astropy sphinx theme)
Update to use the new astropy sphinx theme, based on pydata-sphinx-theme and sunpy-sphinx-theme.
This work is being tracked here: astropy/astropy-project#522
For comments on the actual theme open issues on https://github.com/astropy/astropy-sphinx-theme
Related issues: