sphinx_press_theme icon indicating copy to clipboard operation
sphinx_press_theme copied to clipboard

add html_theme_options

Open schettino72 opened this issue 6 years ago • 4 comments

Option to show/hide page components

  • [ ] breadcrumbs
  • [ ] top page nav
  • [ ] bottom page nav
  • [x] external links (without need to write a template)

schettino72 avatar Apr 20 '19 12:04 schettino72

Hi @schettino72. Great work!

(I can open a proper issue instead of a comment, if you like. I'll also try to take a look to see if I can implement myself.)

It would be nice to have a K:V pair for html_theme_options which controls the accent colors.

For example, we want to use shades of blue for the accent color; we've been able to use custom CSS stylesheets to set blue across most of the Sphinx site, but that doesn't apply to everything; there are still places which default to green and I haven't yet figured out why.

a, p a code {
    color: #1589ee;
}

image

From a quick search I see that #3eaf7c is defined in config.styl. The other major accent color seems to be #86d4b1, but I can't find where it is defined.

afparsons avatar Nov 01 '19 19:11 afparsons

@afparsons sorry I really dont have time to maintain this project right now. do you want commit access?

or maybe @Zulko can help you...

schettino72 avatar Nov 04 '19 09:11 schettino72

I'm not a sphinx expert, so I'm not sure how create color themes. The simplest and fastest at this point might still be to over-ride the color of any green element using CSS and "!important" tags.

Zulko avatar Nov 04 '19 11:11 Zulko

It would be pretty awesome if the colors were configurable. At least some colors seem configurable here https://github.com/schettino72/sphinx_press_theme/blob/465db4bb0fe88c8debad6fc8de567d13656519d9/ui/src/vuepress/styles/config.styl

But that's not configurable in the conf.py.

ricklamers avatar Sep 20 '21 13:09 ricklamers