Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs sidebar is squished #8619

Open
TomNicholas opened this issue Jan 18, 2024 · 10 comments · Fixed by #8632
Open

Docs sidebar is squished #8619

TomNicholas opened this issue Jan 18, 2024 · 10 comments · Fixed by #8632
Labels
bug contrib-help-wanted Release Planning and tracking progress of releases topic-documentation

Comments

@TomNicholas
Copy link
Member

TomNicholas commented Jan 18, 2024

What happened?

Since the v2024.01.0 release yesterday, there seems to be a rendering error in the website - the sidebar is squished up to the left:

Screenshot 2024-01-18 at 9 50 33 AM
@TomNicholas TomNicholas added bug contrib-help-wanted topic-documentation Release Planning and tracking progress of releases labels Jan 18, 2024
@jhamman
Copy link
Member

jhamman commented Jan 18, 2024

this may be the same issue as here: #8366

@TomNicholas
Copy link
Member Author

This doesn't happen when viewing the docs for the previous release, so something must have changed...

https://docs.xarray.dev/en/v2023.11.0/

@TomNicholas
Copy link
Member Author

This is a bit of a problem - the squishing often makes the sidebar unreadable for me now.

@andersy005 wondering if you have any ideas what might have caused this?

@dcherian
Copy link
Contributor

@TomNicholas
Copy link
Member Author

Are we actually using pydata-sphinx-theme? From our docs env it looks like we are just using sphinx-book-theme?

- sphinx-book-theme >= 0.3.0

@kmuehlbauer
Copy link
Contributor

@TomNicholas AFAIK, sphinx-book-theme depends on pydata-sphinx-theme.

@cdeil
Copy link
Contributor

cdeil commented Jan 20, 2024

The browser console shows this pydata-sphinx-theme.js error:

Uncaught TypeError: Cannot read properties of null (reading 'classList')
at HTMLDocument.T (pydata-sphinx-theme.js:570:5)

Probably needs someone familiar with your docs and https://github.com/pydata/pydata-sphinx-theme to track down the root cause and possible fix.

Screenshot 2024-01-20 at 20 58 27

@keewis
Copy link
Collaborator

keewis commented Jan 21, 2024

I think the reason is the upgrade of sphinx-book-theme from 1.0.1 to 1.1.0. Not sure what exactly the cause is, but we can work around this by pinning sphinx-book-theme for now.

Edit: funnily enough, pint, which basically copied and adapted our setup, doesn't appear to have this issue.

@TomNicholas
Copy link
Member Author

Whatever the cause of the problem, pinning sphinx-book-theme to 1.0.1 seems to fix it temporarily (see #8632), so I will merge that and re-release, but leave this issue open until we can un-pin.

dcherian pushed a commit that referenced this issue Jan 23, 2024
@TomNicholas TomNicholas reopened this Jan 23, 2024
@headtr1ck
Copy link
Collaborator

Is this fixed now? For me it seems to work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug contrib-help-wanted Release Planning and tracking progress of releases topic-documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants