-
Notifications
You must be signed in to change notification settings - Fork 326
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
Inheritance Diagram Dark Mode Support #1834
Conversation
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 looks great - my only suggestion (doesn't need to block the PR If you don't have time) is that we add a graphviz demo to this PR so that we can see it in action in the docs and have a visual test for regressions
The minimal gaphviz example from here should be sufficient to include. |
No problem doing an example.
Oh nice, but this PR won't impact that output, the CSS is limited strictly to the inheritance diagrams, not to any graphviz output from Sphinx. |
I got an example working, fair warning that some changes needed to be made to |
nit-picks welcome on the example, not sure how much to write or not to write. (Will address styling issues from pre-commit later today when I'm on my computer next) |
bb2d10a
to
1b1fe1a
Compare
Hmm... the read the docs build doesn't look right! Any suggestions? |
I saw this in the logs, maybe this is why?
Also you should link the new page in a toctree somewhere! |
Yeah I realized as soon as I posted 😆
It should have been added to a toc in .. toctree::
:titlesonly:
:glob:
* |
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.
Thanks for adding this! doc nitpicks inline below :)
Additionally: need to add graphviz
to the "doc" section of pyproject.toml
. I think with the recent CI changes from @trallard and @Carreau it will be enough just do do that, and we won't need to edit any of the .github/workflow
files to get the CIs to pass.
e475979
to
406ba22
Compare
Not going to lie, feel a little weird tweaking your EDIT: "that escalated quickly" - now installing |
Hmm...need to figure out how to get graphviz on each platform in CI... I'll give that a shot.
|
Apply CSS filtering to have the inheritance diagram conform to dark mode.
To generate the example that has graphviz, the `dot` utility needs to be available, which is not by default. This commit makes the graphviz application available in the CI services that build the example.
7071b78
to
683c6d1
Compare
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.
CIs are green! Thanks for that (and for adding intersphinx) @j9ac9k! Just 2 minor wording changes to the example page.
@trallard can you check if you're happy with the change to the CI config? (and feel free to merge if you are) Seems like the main alternative is https://github.com/marketplace/actions/setup-graphviz
Those suggestions made it much better, thanks for the feedback! I considered some of the 3rd party "actions" to install graphviz, but since we don't need a specific (or even recent) version of graphviz, and each OS has an package manager (also what's up with GHA on windows not have microsoft's winget package manger?!) it was trivial to install. If you all prefer to use another pre-made action, that's fine too. |
Apply CSS filtering to have the inheritance diagram conform to dark mode, and add a example demonstrating inheritance diagram in kitchensink.. We also install graphviz on CI to test this. The css will only apply to inheritance diagram and not to all graphviz output. Addresses pydata#820
Apply CSS filtering to have the inheritance diagram conform to dark mode, and add a example in kitchensink for demo.
We also install graphviz on CI to test this.
The css will only apply to inheritance diagram and not to all graphviz output.
Addresses #820
--
Here are some screenshots of the rendered output on a section of the pyqtgraph docs. Prior to this PR, only the light image was shown.
Some relevant settings in the pyqtgraph's
conf.py