Use pydata-sphinx-theme#14867
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.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
|
pre-commit.ci autofix |
This comment was marked as resolved.
This comment was marked as resolved.
be17c44 to
9846815
Compare
|
Thanks for all your help, @drammock ! If you want, I can add you as co-author on the second commit. Just have to give me the info I can link to your GitHub account ( |
Thanks! Probably the only time I'll know enough to contribute to astropy 😅 |
0668cf1 to
470e6f9
Compare
|
Thanks for working on that @pllim :) |
|
That must be because of the new levels of toctrees. I think the navigation between subsections/subpackages with the sidebar was clearer in the old version.
|
I struggle with this one because it is tough to retain the old behavior without moving the files around (as you did, but the it got conflicts very quickly). If we were to do it your way, this PR will have to get merged really fast after I make move the files. What do you think? Is there some other sidebar CSS trick or something that I need to know here?
Same problem as above. A side effect of my trying not to move files around. So I guess I'll either have to move files like you did in #14477 or figure out a clever way to lay out the TOC.
The original theme doesn't include it. I actually included this one because on my small laptop screen, I had to scroll through a lot to get to the bottom of the index page and found discovering via sidebar easier. But now that I am back on normal PC monitor, I see your point. I can remove it. |
Don't be silly, @drammock ! 😸 |
|
My initial review of the output is that this looks fantastic. I strongly endorse moving forward with this effort! |
I think the most important is that the docs are well organized and easy to browse, for users. So if we need to move files for that and we don't have a good alternative, then we just need to do it. If there is an agreement then we can do that quickly enough to avoid conflicts I guess. |
3afdd9b to
d41da58
Compare
|
@saimn , I think I figured it out. It was a matter of where to put the headings and how many levels of sub-headings to expose in TOC. A little tricky but I think the layout now closely matches what you came up with in #14477 without moving files around, at least when I built it locally. Let's see if RTD agrees. |
|
Looking forward to this quite a bit -- thanks to everyone who made it happen! |
|
In general I'm liking this now, but one question: is the intent to keep all the old docs as they were, and switch to this on dev (and then presumably it's "offical" in the next release)? Or to try to push the theme back to the older versions as well? I'm in favor of it "from now on" rather than trying to change any older versions, which I think is the intent, but just confirming. |
I have zero intention nor time to try to backport this. So, this new theme won't be "released" until v6 is out by the end of 2023. |
|
Ok awesome, then I like where it is now! I still have some color quibbles (I we should use "Astropy orange" in some places) but I don't think that needs to block this PR, it can be a follow-up PR once this is in. |
Co-authored-by: Simon Conseil <contact@saimon.org>
DOC: Fix main title Install optional deps from sphinx-astropy now Co-authored-by: Daniel McCloy <dan@mccloy.info>
because it is repetitive Fix TOC layout Fix reference API TOC Fix pre-commit complains. Use newly released sphinx-astropy.
that is copied over from astropy-sphinx-theme Fix link of project details card. pre-commit needs to cool it down
cbdc40e to
5fda110
Compare
|
Thanks! For the record: 3/5 CoCo members approved (I have to abstain and Derek is on vacation). |
|
It failed with a warning that is unrelated (numpy/numpy.org#664) but it does block RTD from building. 😭
|
|
RTD passed but didn't report back. I am just gonna merge manually. Thanks! |
|
Thanks for getting this done! I do agree to some extent with #14867 (comment), although having both Notes and lengthy Warnings is a particularly disadvantageous example, and I also find the box rendering in the new docs much more pleasant on the eyes. |
|
Most section heading levels are inherited from the old theme, so I think modifying the CSS rather than changing the RST would probably be less disruptive. I will open issue (#15112). |

Description
This pull request is to supersede #14477 and fix #11520 . I moved some common stuff upstream to
sphinx-astropyand managed to get this working without moving all the docs around.Rendered doc: https://astropy--14867.org.readthedocs.build/en/14867/
Pros:
Cons (I don't think it is a deal breaker):
Requires:
TODO:
setup.cfg.Follow-up action items after merge: