Closed Cadair closed 1 year ago
pre-commit.ci autofix
I think this is largely ready for review, at least to find bugs etc.
Before we merge it we are going to need to sort out how we handle a big change like this. I think the rough todo is:
- Write some documentation for the theme.
You mean in the readme or you want a proper docs folder and on RTD?
- Test that the conf.py backwards compatibly holds so that old versions of packages rebuild correctly for the new theme.
We should break this and update the packages. I do not care if 2 year old versions of our packages can not have new docs.
The navbar on circleci has not worked out the correct base URL. I am unsure if we need to worry about that or not tho.
It feels like it should work.
Probably need to move some content here on the website side.
I assume we also can not do anything about the sidebar?
- Write some documentation for the theme.
You mean in the readme or you want a proper docs folder and on RTD?
I was thinking a proper RTD setup, mainly as a way of adding yet another test build. I also want to do a little refactoring while seeing how easy it is to adapt this theme for DKIST.
- Test that the conf.py backwards compatibly holds so that old versions of packages rebuild correctly for the new theme.
We should break this and update the packages. I do not care if 2 year old versions of our packages can not have new docs.
I disagree, the auto-rebuild script will rebuild all active versions of all the packages, we want all those to keep working. Doing a bugfix release of every supported branch is not easier than a 10 line conf.py
file.
The navbar on circleci has not worked out the correct base URL. I am unsure if we need to worry about that or not tho.
I noticed that right before logging off yesterday, should be fixable.
The About page
How did you even navigate there? :laughing:
I was thinking a proper RTD setup, mainly as a way of adding yet another test build. I also want to do a little refactoring while seeing how easy it is to adapt this theme for DKIST.
Hmm, that was what the test package was about but maybe that can be rolled into the theme itself instead? But yeah, that makes more sense than just having the test package.
I disagree, the auto-rebuild script will rebuild all active versions of all the packages, we want all those to keep working. Doing a bugfix release of every supported branch is not easier than a 10 line conf.py file.
We should have less versions to support plus we have not done a proper release of several AF packages recently, this forces us to do it.
Break the theme, fix the packages.
The About page
How did you even navigate there? 😆
I clicked on the about on the sidebar.
Break the theme, fix the packages.
I still think we should keep it for a while, it's hardly the worst thing in the world, and it makes it a lot less faffy to roll out rather than having to do a release with an rc then adjust later etc.
I clicked on the about on the sidebar.
I think I have fixed this now, with a little re-arrangement of the content on the website. The "SunPy" link on the navbar is still wrong on the website though (it links to the current page).
Curious thing I came across
The url is on circle but when I open the sidebar and use the link it takes me to the main SunPy.org website.
I can't replicate this on my computer.
Also should this be there on the main docs sidebar?
Thanks for the testing @nabobalis
The url is on circle but when I open the sidebar and use the link it takes me to the main SunPy.org website.
Looks like you are on the sunpy docs build, that links to sunpy.org not the other circle-ci build. We would have to build all the pages in one job for that cross-linking to work.
Also should this be there on the main docs sidebar?
I assume you mean the topnav items. Yes, it's where pydata-sphinx-theme puts the topnav when it moves it out of the top bar. The code's custom but it matches the default behaviour.
Thanks @Cadair, it was one hell of a workout.
Infrastructure todo:
conf.py
completely and provide things like the svg path as variables in the package to be imported.Styling:
website todo:
Possibly post-release:
Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/136 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/36 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/54 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/95 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/93 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/52 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/21 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/29 Fixes https://github.com/sunpy/sunpy-sphinx-theme/issues/94
So I know for later, I am running the following
sphinx-autobuild
command to cross-build the sunpy docs on a new theme change:it assumes you have
sunpy/
andsunpy-sphinx-theme/
checked out next to each other, the-a
flag to sphinx to write all files every build is needed or it wont overwrite the theme style files.