-
Notifications
You must be signed in to change notification settings - Fork 339
Add logo and update brand colors #698
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
Conversation
what would you think adding a favicon as well ? |
good point! added favicon |
Also I was looking at the final layout and the topleft navbar seems a bit empty to me. What would you think about adding the name "Pydata Sphinx theme" in the logo? maybe using the same colors as the logo and eventually the pydata font (if you know it) |
Yep i agree! I didn't do it because it is not yet possible, but I hope soon will be 🙂 |
@12rambau I merged your light/dark logo PR so that I could try it out here! That uncovered a couple of bugs which I believe I've addressed in this PR as well. At the least I think we should add a test for:
Question to resolveAfter poking around a bit, I realized that we need to standardize the logo text behavior a bit. This is because Sphinx doesn't tell us whether the value of ProposalWhat if we defined a top level So a fully-specified logo config would be:
See the latest commit for an example of this config structure in action, I believe it now works as-expected with the text only showing up if it is explicitly set in |
I think this one is ready for another review from my perspective |
Agreed I'm also in favor of the "logo" section in |
Added a diagonal logo so others could take a look themselves, since it seems popular in #701 So you think it'd be better to use something like: html_theme_options = {
"logo": {
"text": "My docs",
"image_light": "myimage.png",
"image_dark": "mydarkimage.png",
}
} over html_theme_options = {
"logo_text": "My docs",
"logo_image_light": "myimage.png",
"logo_image_dark": "mydarkimage.png",
}
} I think it would be conceptually simpler, though we'd have to do a deprecation on |
@choldgraf @12rambau After you fix these tests and merge this PR, I believe we are ready to release 0.9. Let me know if there is anything else I should wait for.. |
As long as there aren't any objections, I'll plan to move all of the logo config under a single |
OK I think the latest commit adds support for a dictionary for the logo, and also adds a deprecationwarning for the |
(my 2 cents is that the codecov diff is OK, it is just for the deprecation warning we added + a type check) |
fix stroke miters; optimize svg; fix stroke width on dark logo
@choldgraf See #703. |
* main: Use myst-parser 0.18 (pydata#703) Style the toctree (pydata#693)
@choldgraf I merged main into your branch to get the tests to hopefully pass. I think this is ready to merge (assuming tests all pass). |
@choldgraf @12rambau I think this is ready to merge. Once that is done, I plan to make the 0.9 release. Please let me know, if there is any reason to delay a bit. I will be around for the next few weeks, if we need to make a 0.9.1 or (even) a 0.10 release. |
The modification are super cool, I really like the new look and feel of the demo website. I think it's important to test the prepare_html method before merging but after that that's definitely ready to fly |
We do test that method, there are just a couple of lines inside of it that we don't test:
|
then let's fly ! |
This makes a few updates to the branding of the theme, here are some major changes:
note
admonition to use primary color by default, andwarning
admonition to usesecondary
color by defaultnavbar_start
(closes Position and default styling for version switcher #680)Todo
logo
config a dictionary