-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
GH-36590: [Docs] Support Pydata Sphinx Theme 0.14.0 #36591
Conversation
@github-actions crossbow submit preview-docs |
Revision: 67c8e5e Submitted crossbow builds: ursacomputing/crossbow @ actions-12e0914bc0
|
"image_light": "_static/arrow.png", | ||
"image_dark": "_static/arrow-dark.png", | ||
}, | ||
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this differ from the default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is "navbar_end": ["navbar-icon-links"]
(https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/layout.html#header-sections).
I have played around with the logo a bit because it is not clearly visible if located on the top navbar. It might make sense to keep it on the left side bar as is (see picture below). Regarding the navigation bar dropdown, the picture here is an example without extra index page for the supported environments section but using |
Yes, if we do this, we should certainly ensure we can call it something more informative than "More". But assume for a moment we can do that (it might require an upstream change, though). In that case, for me the biggest difference is when you go for example to the Python section of the docs. With this dropdown, the left sidebar should now only show links relevant to Python, not all other languages?
Yes, it's indeed not very big .. Putting the logo on the sidebar gives a bit strange effect for the top navbar though, I find (with the navigation items being above the logo). |
Oh, that is true! Will use the dropdown then and see what can be done with the title of the button.
Yes, I think that would be a good option also. |
Opened an issue for it: pydata/pydata-sphinx-theme#1386 |
@github-actions crossbow submit preview-docs |
Revision: 8b40a3e Submitted crossbow builds: ursacomputing/crossbow @ actions-21674461bf
|
If you needed another rational for not putting the logo in the left sidebar, it will be invisible on small screen where the left sidebar is hidden by default. I was just passing by, I'll see what we can do with @AlenkaF issue in the theme itself. |
Thank you @12rambau for the information about the left sidebar and the issue in the theme (more of a feature request really)! |
Regarding the custom colors in our arrow/docs/source/_static/theme_overrides.css Lines 24 to 31 in 63644f4
The css color styles used currently are quite different then what the theme used before, see color variables for version 0.8 vs new color variables structure. Currently the theme uses primary and secondary theme colors that are meant to complement one another visually across the whole theme (light and dark separately) plus some extra like "info", "warning", "success", ... but much less then in the old version of the theme. Comparing the custom colors we have set in Apache Arrow to the colors in the new theme:
What I suggest is to remove all css variables from our custom css and maybe change the secondary theme color to our current red |
Regarding colors, now we are updating it, it might be worth to directly check with the latest development version of the theme, as I know the colors are being overhauled (https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/install.html#development-version). |
@github-actions crossbow submit preview-docs |
Revision: 125215b Submitted crossbow builds: ursacomputing/crossbow @ actions-4ab7e303d8
|
Pydata sphinx theme is currently [pinned to version `0.8`](https://github.com/apache/arrow/blob/7b14b2b2712bc483cd7d14bbc6c38e26d27074ac/docs/requirements.txt#L8) . The PR that updates the theme is ready to be merged: apache/arrow#36591. Before we can do that we need to update the `versions.json` file as the new theme needs extra data to construct a version switcher and a versions warning. This change should not affect the existing documentation. --------- Co-authored-by: Joris Van den Bossche <[email protected]>
OK, let's give this a go on the development docs, so we still have some time to fine tune before the 14.0 release. Thanks a lot Alenka! |
After merging your PR, Conbench analyzed the 5 benchmarking runs that have been run so far on merge-commit 7dc9f69. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Preview: http://crossbow.voltrondata.com/pr_docs/36591/ ### Rationale for this change The Pydata Sphinx Theme that we use for our documentation has been pinned due to bigger changes in the theme layout. It needs to be unpinned and our layout needs to be updated. ### What changes are included in this PR? Update of the Pydata Sphinx Theme and changes to our layout/structure: - dark/light mode - top menu bar - search button in the top right navigation bar - drop down from the theme layout in the top right navigation bar - version warnings bar from the theme layout - main landing page and the landing page for the dev docs⚠️ Needs an update of the [versions.json](https://github.com/apache/arrow-site/blob/AlenkaF-patch-1/docs/_static/versions.json) ### Are these changes tested? Yes, locally. Will also add docs preview via GitHub actions. ### Are there any user-facing changes? No. * Closes: apache#32451 * Closes: apache#36590 Lead-authored-by: AlenkaF <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
…default (small) on smaller screens (#38148) ### Rationale for this change The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the #36591 we have updated the code and are now using version 0.14.0 for the dev docs. This PR fixes bugs we have encountered after the PR updating the theme has been merged. ### What changes are included in this PR? - Have default header size for smaller screens and keep it increased for bigger screens. * Closes: #38209 Authored-by: AlenkaF <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
…default (small) on smaller screens (#38148) ### Rationale for this change The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the #36591 we have updated the code and are now using version 0.14.0 for the dev docs. This PR fixes bugs we have encountered after the PR updating the theme has been merged. ### What changes are included in this PR? - Have default header size for smaller screens and keep it increased for bigger screens. * Closes: #38209 Authored-by: AlenkaF <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
…eight default (small) on smaller screens (apache#38148) ### Rationale for this change The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the apache#36591 we have updated the code and are now using version 0.14.0 for the dev docs. This PR fixes bugs we have encountered after the PR updating the theme has been merged. ### What changes are included in this PR? - Have default header size for smaller screens and keep it increased for bigger screens. * Closes: apache#38209 Authored-by: AlenkaF <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
### Rationale for this change Broken link on the [arrow/README.md](https://github.com/apache/arrow/blob/main/README.md?plain=1#L102) after the landing page for the dev docs has been changed in #36591. ### What changes are included in this PR? Update the link. Authored-by: AlenkaF <[email protected]> Signed-off-by: AlenkaF <[email protected]>
Preview: http://crossbow.voltrondata.com/pr_docs/36591/ ### Rationale for this change The Pydata Sphinx Theme that we use for our documentation has been pinned due to bigger changes in the theme layout. It needs to be unpinned and our layout needs to be updated. ### What changes are included in this PR? Update of the Pydata Sphinx Theme and changes to our layout/structure: - dark/light mode - top menu bar - search button in the top right navigation bar - drop down from the theme layout in the top right navigation bar - version warnings bar from the theme layout - main landing page and the landing page for the dev docs⚠️ Needs an update of the [versions.json](https://github.com/apache/arrow-site/blob/AlenkaF-patch-1/docs/_static/versions.json) ### Are these changes tested? Yes, locally. Will also add docs preview via GitHub actions. ### Are there any user-facing changes? No. * Closes: apache#32451 * Closes: apache#36590 Lead-authored-by: AlenkaF <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
…eight default (small) on smaller screens (apache#38148) ### Rationale for this change The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the apache#36591 we have updated the code and are now using version 0.14.0 for the dev docs. This PR fixes bugs we have encountered after the PR updating the theme has been merged. ### What changes are included in this PR? - Have default header size for smaller screens and keep it increased for bigger screens. * Closes: apache#38209 Authored-by: AlenkaF <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
### Rationale for this change Broken link on the [arrow/README.md](https://github.com/apache/arrow/blob/main/README.md?plain=1#L102) after the landing page for the dev docs has been changed in apache#36591. ### What changes are included in this PR? Update the link. Authored-by: AlenkaF <[email protected]> Signed-off-by: AlenkaF <[email protected]>
Preview: http://crossbow.voltrondata.com/pr_docs/36591/ ### Rationale for this change The Pydata Sphinx Theme that we use for our documentation has been pinned due to bigger changes in the theme layout. It needs to be unpinned and our layout needs to be updated. ### What changes are included in this PR? Update of the Pydata Sphinx Theme and changes to our layout/structure: - dark/light mode - top menu bar - search button in the top right navigation bar - drop down from the theme layout in the top right navigation bar - version warnings bar from the theme layout - main landing page and the landing page for the dev docs⚠️ Needs an update of the [versions.json](https://github.com/apache/arrow-site/blob/AlenkaF-patch-1/docs/_static/versions.json) ### Are these changes tested? Yes, locally. Will also add docs preview via GitHub actions. ### Are there any user-facing changes? No. * Closes: apache#32451 * Closes: apache#36590 Lead-authored-by: AlenkaF <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
…eight default (small) on smaller screens (apache#38148) ### Rationale for this change The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the apache#36591 we have updated the code and are now using version 0.14.0 for the dev docs. This PR fixes bugs we have encountered after the PR updating the theme has been merged. ### What changes are included in this PR? - Have default header size for smaller screens and keep it increased for bigger screens. * Closes: apache#38209 Authored-by: AlenkaF <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
### Rationale for this change Broken link on the [arrow/README.md](https://github.com/apache/arrow/blob/main/README.md?plain=1#L102) after the landing page for the dev docs has been changed in apache#36591. ### What changes are included in this PR? Update the link. Authored-by: AlenkaF <[email protected]> Signed-off-by: AlenkaF <[email protected]>
Preview: http://crossbow.voltrondata.com/pr_docs/36591/ ### Rationale for this change The Pydata Sphinx Theme that we use for our documentation has been pinned due to bigger changes in the theme layout. It needs to be unpinned and our layout needs to be updated. ### What changes are included in this PR? Update of the Pydata Sphinx Theme and changes to our layout/structure: - dark/light mode - top menu bar - search button in the top right navigation bar - drop down from the theme layout in the top right navigation bar - version warnings bar from the theme layout - main landing page and the landing page for the dev docs⚠️ Needs an update of the [versions.json](https://github.com/apache/arrow-site/blob/AlenkaF-patch-1/docs/_static/versions.json) ### Are these changes tested? Yes, locally. Will also add docs preview via GitHub actions. ### Are there any user-facing changes? No. * Closes: apache#32451 * Closes: apache#36590 Lead-authored-by: AlenkaF <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
…eight default (small) on smaller screens (apache#38148) ### Rationale for this change The Sphinx theme we have been using (PyData Sphinx Theme) has been pinned to an older version for a while now and with the apache#36591 we have updated the code and are now using version 0.14.0 for the dev docs. This PR fixes bugs we have encountered after the PR updating the theme has been merged. ### What changes are included in this PR? - Have default header size for smaller screens and keep it increased for bigger screens. * Closes: apache#38209 Authored-by: AlenkaF <[email protected]> Signed-off-by: Joris Van den Bossche <[email protected]>
### Rationale for this change Broken link on the [arrow/README.md](https://github.com/apache/arrow/blob/main/README.md?plain=1#L102) after the landing page for the dev docs has been changed in apache#36591. ### What changes are included in this PR? Update the link. Authored-by: AlenkaF <[email protected]> Signed-off-by: AlenkaF <[email protected]>
Preview: http://crossbow.voltrondata.com/pr_docs/36591/
Rationale for this change
The Pydata Sphinx Theme that we use for our documentation has been pinned due to bigger changes in the theme layout. It needs to be unpinned and our layout needs to be updated.
What changes are included in this PR?
Update of the Pydata Sphinx Theme and changes to our layout/structure:
Are these changes tested?
Yes, locally. Will also add docs preview via GitHub actions.
Are there any user-facing changes?
No.