-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Bump pydata-sphinx-theme #27658
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
Merged
Merged
Bump pydata-sphinx-theme #27658
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
13319f1
Bump pydata-sphinx-theme to 0.15
dstansby b68ed22
Fix search button placement in navbar
dstansby 6f9eda7
Fix doc sidebar
dstansby bc2c872
Fix version switcher url for circleCI
dstansby 591cd65
Don't use custom CSS for announcement banner
dstansby f178f5c
Disable parallel build
dstansby c908cd4
Don't show doc source link
dstansby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,29 +14,6 @@ | |
margin: 0; | ||
} | ||
|
||
/* Make announcement an error colour for unreleased documentation, and sticky. */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This CSS interacts badly with dark mode, and removing it (and defaulting to what |
||
#unreleased-message.bd-header-announcement { | ||
border-bottom: solid var(--pst-color-danger-highlight); | ||
color: var(--pst-color-danger-text); | ||
font-weight: var(--pst-admonition-font-weight-heading); | ||
position: sticky; | ||
top: 0; | ||
z-index: 1050; | ||
} | ||
|
||
#unreleased-message.bd-header-announcement:after { | ||
background-color: var(--pst-color-danger); | ||
opacity: 1; | ||
} | ||
|
||
#unreleased-message.bd-header-announcement a { | ||
color: var(--pst-color-danger-text); | ||
} | ||
|
||
#unreleased-message.bd-header-announcement + .bd-navbar { | ||
top: 3rem; /* Minimum height of announcement header. */ | ||
} | ||
|
||
/* multi column TOC */ | ||
.contents ul { | ||
list-style-type: none; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This change is because
pydata-sphinx-theme
doesn't support parallel writes: pydata/pydata-sphinx-theme#1643. It doesn't seem to impact build time significantly though, 18m19s before and 18m57s after.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.
Not tested with the new version, but IIRC, I got significant speedups on my local machine with -j4. If we can't have that anymore, we need to update https://matplotlib.org/devdocs/devel/document.html#build-the-docs. Also, > 10min doc build times makes working on docs very unattractive. As somebody else said
Are the other improvements so significant that we are willing to take this on?
Edit: or is the above comparison old version -j4 vs. new version -j1. There were other performance improvements in the pydata Sphinx theme that might just compensate the losses of non-parallel builds.
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 comparison is on circleCI between 591cd65 and f178f5c, the only difference being changing
-j4
to-j1
. Perhaps even with-j4
circleCI wasn't using any parallelism to build the docs?They include at least some accesibility improvements which I would advocate for.
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.
Note that this is changing the parallel option only for the circleCI build, not any local or other builds, so the comparison using only times measured on circleCI is fair.
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.
And you can still use parallel options, it will just raise a warning at the end of the doc build that
pydata-sphinx-theme
isn't parallel write safe.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.
I don't see any need to change our call here. The theme marks it self as parallel-unsafe, so requesting parallel build will be turned off anyway. And then when they fix themselves, we'd need to remember to turn it back on again.
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.
Without using
-j1
, shpinx emits a warning that the theme isn't parallel write safe, which fails the build. Ideally there would be a way to ignore just this warning and use-j4
, but I'm not aware if that's possible with sphinx?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.
You could try to add a warnings filter to conf.py
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.
Do you mean the suppress_warnings configuration? It seems to be the only relevant option to do this, but warning about a non-parallel write safe theme doesn't seem to be convered by the list of warning types that can be suppressed.