-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Switch documentation theme to immaterial (w/ support for dark mode) #25735
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
base: master
Are you sure you want to change the base?
Conversation
470d4fa
to
59e7c86
Compare
Note to the reviewers, the docker image used in the CI to validate this PR has to be updated to include the new |
I'm very excited about using this new theme because it supports Mermaid charts, and we could use to make some doc pages easier to understand. |
Would love to work with the team in this effort too!! |
Hi @kumiDa , the right sidebar can not show under this theme on my side, are u meet the same issue? |
This behaviour is due to the use of following configuration
I've removed this config in 083720e, as keeping the TOC sticky was anyways not supported in |
@kumiDa NICE! |
I'm adding sphinx image to docker-images: trinodb/docker-images#236 |
|
@kumiDa Do u have icon issue on left sidebar? An additional icon will be displayed. |
@XavieLee, thanks for checking this. This is intended more a feature than an bug, as documented here - https://sphinx-immaterial.readthedocs.io/en/latest/apidoc/index.html#objconf-toc_icon_class This TOCtree is consistent with changes made in 2ca072b |
@kumiDa I mean using sphinx==8.2.3. Since we have changed the theme to sphinx-immaterial and use its latest version, sphinx can also be upgraded together. After testing, the latest version works well and does not require much change. What do you think? |
946509f
to
a4ec78c
Compare
@nineinchnick ptal |
Rebased and solved conflicts. 115 release is ongoing so this is suppose to fail (I'll retrigger build once release is done) |
I only found two issues. The first one is the left navbar has different styles: The second issue is that it detects my system preferences, but doesn't remember if I switch the theme manually. Maybe this is caused when opening it locally. It looks like it remembers the setting per page, not the whole site. I like how tables use a more compact font. Syntax highlight and note/warning boxes look great. It also looks fine in responsive mode (on mobile). |
@nineinchnick can you test in the https://wendigo.pl/trino-docs/ ? |
It remembers settings when hosted. |
@nineinchnick I've made small change, Idk whether it's better: https://wendigo.pl/trino-docs/optimizer/statistics |
It's better, we can merge it like this. I'll post it on Slack to give others a chance to take a look, since this change has a very high impact. |
Thanks for hosting this @wendigo to test the changes. I was able to verify the changes I expected. |
Ah! The code blocks look clean now. |
@nineinchnick , how do you feel about the table headings? I kind of felt they are unintuitively smaller in font than the Table content. |
It's fine for me, all tables have a font of 14px, both headers and content. Regular text is 17px. |
Great work on this PR so far @kumiDa .. sorry I have not been able to help. Please ensure that the look and feel for the default remains as unchanged as possible or is definitely a listed and known improvement. I just had a very short look - the ToC sections now have bullets.. these should be removed - compare https://trino.io/docs/current/ and https://wendigo.pl/trino-docs/ .. I hope to be able to look some more later this week. |
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 just noticed that the right hand navigation for each page also seems to be gone. We definitely need that .. there are some very long pages and without that nav it is very hard to find things.
Right sidebar is still missing. I tried to figure this out but no luck |
@mosabua i don't think this is it |
Well... it muse be supported somehow - see https://sphinx-immaterial.readthedocs.io/en/latest/apidoc/format_signatures.html |
Also .. maybe https://jbms.github.io/sphinx-immaterial/customization.html#filemeta-hide-toc is set? |
965166e
to
d4f5016
Compare
It seems to me that switching to immaterial is not an option as it breaks too many thing and we are getting little in return |
ef8e6ba
to
94b49cf
Compare
Description
sphinx-immaterial
theme.Additional context and related issues
sphinx-material
theme repo at Optional dark theme bashtage/sphinx-material#89, there's a fork of this theme which includes this light/dark toggle feature- https://jbms.github.io/sphinx-immaterial/sphinx-immaterial
theme is being actively maintained unlike thesphinx-material
theme repo that isn't seeing active code updates.Release notes
(x ) Release notes are required. Please propose a release note for me.