You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the PR merged this week we have updated the code and are now using version 0.14.0 for the dev docs.
There are some issues that need to be fixed by the code freeze in 2 weeks. Will keep a list of those in this issue. Feel free to comment here and add extra bugs you might come across.
Top navigation bar and version warning bar are overlapping. The top navbar also overlaps the top content.
You need to do a hard refresh .. (for me ctrl-F5), and then it all looks nice (we had the same issue a while ago with the documentation version switcher: #37357). It's a bit annoying though
One thing that doesn't work (unless this is intended to work differently in the version switcher of the theme) is showing the version of the docs you are looking at in the switcher:
While on the stable or older docs it shows the version:
Regarding the version switcher - if I look at the theme web page the "Choose version" is displayed for stable version and "dev" for development. Older versions are using the old theme so can't tell.
Will check if that is something we can change on our side.
And for the header size, I agree. Will also add it to the TODO list on this issue description and see what I can do to fix it.
Yes, I think that happens in the original theme also - could you check the picture I added in the previous comment just to check I am thinking of the correct part of the side navigation being hidden?
Well, besides the vertical footprint, the problem is that it hides part of the side navigation panels as soon as one scrolls down.
If the header hides part of the sidebar when it becomes larger because of wrapping around on a second line, that sounds as a bug in the theme itself, IMO, and something we can report upstream.
(not sure if that's something that would be easy to solve, though)
Oh, you are actually right Antoine. In our dev docs the sidebar gets hidden very soon when scrolling the page (not at the start, if you do not scroll down though!). But in the original theme it only happens when one gets to the end of the content.
I guess this actually does happen because of the increased header height due to our logo.
I am not sure if this is actually a bug or not, but will trust Joris on it.
We could also use a different logo ourselves (for example: Chevron-only). In this case there will be no need to resize the header. In the current case, when using horizontal version of the logo), the logo gets very small and Apache part of it is not readable if the size is not increased.
Oh, you are actually right Antoine. In our dev docs the sidebar gets hidden very soon when scrolling the page (not at the start, if you do not scroll down though!). But in the original theme it only happens when one gets to the end of the content.
No, sorry, wrong again. I had a bigger window and the top navbar was only single header 🤦♀️ It actually happens in the original theme also - as is visible on the pictures I added before.
I haven't found a solution for the second item on the list (Version switcher button in the nav bar prints "Choose version" instead of the version you are currently have open (dev in our case)) so I have opened an issue upstream: pydata/pydata-sphinx-theme#1500.
In case we do not find a solution for the version switcher text today, I would suggest to merge the PR for the header height on smaller screens to have it in the 14.0.0 release.
We could maybe also rename "Specifications and Protocol" to just "Specifications", that also makes the header a bit shorter, and thus less quickly to wraparound.
Activity
jorisvandenbossche commentedon Sep 29, 2023
You need to do a hard refresh .. (for me ctrl-F5), and then it all looks nice (we had the same issue a while ago with the documentation version switcher: #37357). It's a bit annoying though
AlenkaF commentedon Sep 29, 2023
Oh, I can not believe I already forgot about that!
Thank you for reminding me and adding info to the issue for others to see.
It works nicely for me now (no overlapping, no white background in the dark mode grid cards).
Should we keep this open if anything else pops up or do we close it?
jorisvandenbossche commentedon Sep 29, 2023
Let's maybe keep this issue open as the place to gather feedback or (design) bugs with the new theme.
jorisvandenbossche commentedon Sep 29, 2023
One thing that doesn't work (unless this is intended to work differently in the version switcher of the theme) is showing the version of the docs you are looking at in the switcher:
While on the stable or older docs it shows the version:
jorisvandenbossche commentedon Sep 29, 2023
We could maybe also limit the size of the header / image when we are on a smaller screen, eg in mobile mode:
(that's our overriding of
--pst-header-height, it might be possible to only do that when on wide screens)AlenkaF commentedon Sep 29, 2023
Regarding the version switcher - if I look at the theme web page the "Choose version" is displayed for stable version and "dev" for development. Older versions are using the old theme so can't tell.
Will check if that is something we can change on our side.
And for the header size, I agree. Will also add it to the TODO list on this issue description and see what I can do to fix it.
pitrou commentedon Oct 2, 2023
Same issue here with the top bar vertical size, which also hides part of the side navigation panels as soon as I scroll down:

AlenkaF commentedon Oct 3, 2023
I think this will happen in any case when the window gets so small that it uses double header size, see the original theme:
If we find it very annoying I can open up an issue on the PyData theme repo.
pitrou commentedon Oct 3, 2023
Well, besides the vertical footprint, the problem is that it hides part of the side navigation panels as soon as one scrolls down.
AlenkaF commentedon Oct 3, 2023
Yes, I think that happens in the original theme also - could you check the picture I added in the previous comment just to check I am thinking of the correct part of the side navigation being hidden?
4 remaining items
jorisvandenbossche commentedon Oct 3, 2023
If the header hides part of the sidebar when it becomes larger because of wrapping around on a second line, that sounds as a bug in the theme itself, IMO, and something we can report upstream.
(not sure if that's something that would be easy to solve, though)
AlenkaF commentedon Oct 3, 2023
Oh, you are actually right Antoine. In our dev docs the sidebar gets hidden very soon when scrolling the page (not at the start, if you do not scroll down though!). But in the original theme it only happens when one gets to the end of the content.
I guess this actually does happen because of the increased header height due to our logo.
I am not sure if this is actually a bug or not, but will trust Joris on it.
We could also use a different logo ourselves (for example: Chevron-only). In this case there will be no need to resize the header. In the current case, when using horizontal version of the logo), the logo gets very small and Apache part of it is not readable if the size is not increased.
AlenkaF commentedon Oct 3, 2023
No, sorry, wrong again. I had a bigger window and the top navbar was only single header 🤦♀️ It actually happens in the original theme also - as is visible on the pictures I added before.
AlenkaF commentedon Oct 3, 2023
Agree, will add an issue upstream 👍
AlenkaF commentedon Oct 4, 2023
Upstream issue for the hidden sidebar top item when scrolling: pydata/pydata-sphinx-theme#1493
AlenkaF commentedon Oct 9, 2023
I have opened a PR for the first item on the list (Change header size (top nav bar) for smaller screens) here: #38148.
I haven't found a solution for the second item on the list (Version switcher button in the nav bar prints "Choose version" instead of the version you are currently have open (dev in our case)) so I have opened an issue upstream: pydata/pydata-sphinx-theme#1500.
In case we do not find a solution for the version switcher text today, I would suggest to merge the PR for the header height on smaller screens to have it in the 14.0.0 release.
jorisvandenbossche commentedon Oct 10, 2023
We could maybe also rename "Specifications and Protocol" to just "Specifications", that also makes the header a bit shorter, and thus less quickly to wraparound.
AlenkaF commentedon Dec 13, 2023
Closing this issue as both reported bugs have been fixed: