-
Notifications
You must be signed in to change notification settings - Fork 918
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
[REVIEW] Fix issues with day & night modes in python docs #11400
Conversation
From Mark's screenshot in rapidsai/docs#284, it looks like the dark mode font colors (lighter colors) were being applied but the background color remained light (instead of being dark). Are we overriding something elsewhere in our CSS, or do we need a newer version of the theme? I'm looking into this a bit further, but I am surprised we need to add custom code since dark/light switching appears to be a built-in feature of the theme. |
I was not able to reproduce the error in rapidsai/docs#284 where dark mode was not being applied. This screenshot is building from @harrism @galipremsagar Is this problem specific to a particular browser or operating system? I used Firefox, Chrome, and Edge and did not see an issue. I varied the light/dark system settings in Windows as well. Is there a problem we need to report upstream, or an existing issue/PR in the upstream theme that this was based on? |
Codecov Report
@@ Coverage Diff @@
## branch-22.08 #11400 +/- ##
===============================================
Coverage ? 86.47%
===============================================
Files ? 144
Lines ? 22856
Branches ? 0
===============================================
Hits ? 19765
Misses ? 3091
Partials ? 0 Continue to review full report at Codecov.
|
So I suppose there's a typo in Mark's first comment:
I think he meant "In light mode", instead.
Yes, we are overriding certain default color schemes that Another example of why going with the default color schemes isn't a good idea is this: pydata/pydata-sphinx-theme#649 |
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.
Discussed offline. LGTM!
This PR also requires rapidsai/docs#285 to be merged. |
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 fixing the hover as well.
Fixes similar issue found in: rapidsai/cudf#11400 Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Brad Rees (https://github.com/BradReesWork) URL: #2471
@@ -1156,7 +1156,7 @@ HTML_HEADER = | |||
# that doxygen normally uses. | |||
# This tag requires that the tag GENERATE_HTML is set to YES. | |||
|
|||
HTML_FOOTER = | |||
HTML_FOOTER = footer.html | |||
|
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 also need to blank out the filename in this line: HTML_EXTRA_STYLESHEET = rapids.css
Since you've delete the rapids.css
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 the catch, David. Deleted this.
cpp/doxygen/footer.html
Outdated
@@ -0,0 +1,3 @@ | |||
<script src="https://docs.rapids.ai/assets/js/custom.js"></script> | |||
<link rel="stylesheet" href="https://docs.rapids.ai/assets/css/custom.css"> | |||
|
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.
Cool. Do these files not need a copyright header?
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.
Yup, added now.
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 fixing this.
In dark mode, I find the purple headings a bit hard to read on a black background (but I'm sitting in a bright room). We should probably evaluate this in a follow-up. For now, thanks for the fixes! |
Porting the fixes from rapidsai/cudf#11400 Authors: - Michael Wang (https://github.com/isVoid) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Mark Harris (https://github.com/harrism) URL: #613
Fixes similar issue found in: rapidsai/cudf#11400 Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - https://github.com/jakirkham URL: #360
Fixes similar issue found in: rapidsai/cudf#11400 Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Mads R. B. Kristensen (https://github.com/madsbk) URL: #95
rerun tests |
@gpucibot merge |
Description
Fixes: rapidsai/docs#284
This PR fixes day(light) & night(dark) mode color schemes which makes text and a lot of html elements look unclear.
In dark mode:
Before:
After:
In light mode:
Before:
After:
Introduced darker color schemes such that code text highlightings are visible properly in dark mode:
Before:
After:
Introduced custom javascript method that will add hover text to "Theme switcher" button:
Checklist