From ab2b237304736fea3516710c5e5c48bc88ba1953 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Thu, 2 Jul 2020 01:15:51 -0400 Subject: [PATCH] Add custom logo and custom styles --- _static/css/agaric.css | 8 ++++++++ conf.py | 11 ++++++++++- images/agaric-logo-horizontal-white.svg | 1 + images/agaric-logo-horizontal.png | Bin 0 -> 7064 bytes .../agaric-logo-horizontal.svg | 0 index.md | 2 +- 6 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 _static/css/agaric.css create mode 100644 images/agaric-logo-horizontal-white.svg create mode 100644 images/agaric-logo-horizontal.png rename agaric-logo-horizontal.svg => images/agaric-logo-horizontal.svg (100%) diff --git a/_static/css/agaric.css b/_static/css/agaric.css new file mode 100644 index 0000000..17d621d --- /dev/null +++ b/_static/css/agaric.css @@ -0,0 +1,8 @@ +.wy-side-nav-search { + background-color: #26599b; +} + +.wy-side-nav-search .wy-dropdown > a img.logo, +.wy-side-nav-search > a img.logo { + width: 12rem; +} diff --git a/conf.py b/conf.py index 493706c..44e159e 100644 --- a/conf.py +++ b/conf.py @@ -88,12 +88,21 @@ pygments_style = 'sphinx' # a list of builtin themes. # html_theme = 'sphinx_rtd_theme' +html_logo = 'images/agaric-logo-horizontal-white.svg' +html_css_files = [ + 'css/agaric.css', +] # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # documentation. # -# html_theme_options = {} +# TIP: If it starts with `html_` it belongs directly as a conf.py option and +# NOT in html_theme_options. +html_theme_options = { + 'canonical_url': 'https://docs.agaric.coop/', + 'logo_only': True, +} # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, diff --git a/images/agaric-logo-horizontal-white.svg b/images/agaric-logo-horizontal-white.svg new file mode 100644 index 0000000..380f3cd --- /dev/null +++ b/images/agaric-logo-horizontal-white.svg @@ -0,0 +1 @@ +agaric-logo-horizontal \ No newline at end of file diff --git a/images/agaric-logo-horizontal.png b/images/agaric-logo-horizontal.png new file mode 100644 index 0000000000000000000000000000000000000000..76d286d926a4a70f6f079006d9d773a0432dbdcb GIT binary patch literal 7064 zcmb7phf@!W4sS^pAG2J7WX0Lp z4=0<*s74h4ITwPed7)7ZWys;znYP{ft54pP%^1v2W+o)%IEg-7zRpYqEK^ ze9Ev?4yBE5zyi6yx;1gwL+kkz2hoXh#F9vNV+30sh~6Lv$ub*i)almSspux;|ExxF zj#XWWBQ61mIN*85`g8;OQ|I#421%P_uCb2e=AkFRSTYv%$p9*Fw9M5j(lDU-5qw|+3G3FC=TjxFgHHP#4 ziFO1W8zdwjEIjotzKAd9tsS#}>2<31ONtu-`&7Kgowr>_o-+laPWh@%Op1%q4p%Ij zE&hE5`uj@yQ4=Zztt~bzCu=jYC8LXtw*Y`vNJfY7>|aU0GrQ%8^$W#XMCue-*o;YQ z0>LsuMdl6X{7FdX#y09)YU#CETa`LK2CU|LAMXGm2~N-Mx;DhTru-~pd+4=qSBwW` z-lL&|UFy2`;d)rchv3ZH$8+RZ(zRoZj%L1W<8*?@isg#ShR%K6w7nb%3WnVs2Q#C;u={pQymGWt+Or4`+8o^)w;6M? z$KOjry}CaJTgaK-d1JKH{M1|QVwT`_*14Q7X88$)Q~bk}5NQsATYgx&ZA$c~a7(w@%8N*x`O> zai_(6&u>t#Wy(WuFi0#y`?%YSQ7yO6F(^VWu4Hb+g`D?nlPpg`2jc-Y@xF{V4mOi%8TZEI2xX^w0Kn z;Kudd`;#`vNk7qYl18;(MpKgxy-+^18q85Uow`;3n!?m$L`t<>$4*rbfwswsI&(s1 zp?D7A!M@iOcIo01RKy!QZ$Mke?B6`5WC%mbx4Izp!(ag!m%MMjXpd!5rPpZ5#f)W^ zcgco}Z_8YA@hiepbSXjwEyAF2PAFLzPlAcFx?2w9_`9(F&Pg38f5M5g0_&nA0lCF~ zSo*O-?zCLhVu3=QdZNfAR^J?&P!BM$eGYvbn8?SI=pPNq( zF?&i@EY!L6{-I{)2ReKGD5L6+9xs0|{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{vaZ)Mv*4_|vO(%8k1|BkKbYuJi7K6| zqj%#M3E?clj7%xUsVT4)55}?gILvVBfgq>2SXKkT*jVxK2>~~sF~zGAZEsj+=F zz}sKlkD2&cRiZ&hQ~u~_xFz;f`k}V|T0H}SgVQr3IxxEwaagQO)5ketB_gRNdt3>? z)uXUK;sXk~BE@Fxn#wg|xttP6DlX21msA98_$WEjdm47uNbT2X zC9eC@d}{{1>yZou2kQ%hq;HiCYNjVrFLD5eVQg>B0DQfHmI-Y<1P7m{XW>gi$s|hs ygC8!{)(zau0B&?)&*1M+q6(HQ>k1}23f8hirrpelrThOd94$4lYOV6iu>S+G2;vj~ literal 0 HcmV?d00001 diff --git a/agaric-logo-horizontal.svg b/images/agaric-logo-horizontal.svg similarity index 100% rename from agaric-logo-horizontal.svg rename to images/agaric-logo-horizontal.svg diff --git a/index.md b/index.md index 042b656..f12b1eb 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,6 @@ # Welcome to Agaric Collective's documentation! -```{image} agaric-logo-horizontal.svg +```{image} images/agaric-logo-horizontal.svg :width: 240px :alt: Agaric logo (two mushrooms reminiscent of the cooperative trees) :align: center