From 9fb800b0f711719e1f3a00641c0c39d1ed53246c Mon Sep 17 00:00:00 2001 From: Bill Huang Date: Fri, 4 Aug 2023 00:12:29 +0800 Subject: [PATCH] docs: add evox logo docs: add sphinx-favicon as a dependency --- README.md | 2 +- docs/source/_static/evox.css | 4 ++-- logo.png => docs/source/_static/evox_logo.png | Bin docs/source/_static/evox_logo_with_title.svg | 1 + docs/source/_static/favicon-16x16.ico | Bin 0 -> 1150 bytes docs/source/_static/favicon-32x32.ico | Bin 0 -> 5558 bytes docs/source/conf.py | 12 +++++++++++- requirements/docs-requirements.txt | 3 ++- 8 files changed, 17 insertions(+), 5 deletions(-) rename logo.png => docs/source/_static/evox_logo.png (100%) create mode 100644 docs/source/_static/evox_logo_with_title.svg create mode 100644 docs/source/_static/favicon-16x16.ico create mode 100644 docs/source/_static/favicon-32x32.ico diff --git a/README.md b/README.md index cf529b5d..5c2bc18b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- Logo + Logo EvoX
A Distributed GPU-accelerated Library towards Scalable Evolutionary Computation diff --git a/docs/source/_static/evox.css b/docs/source/_static/evox.css index 8eea35f2..437f985c 100644 --- a/docs/source/_static/evox.css +++ b/docs/source/_static/evox.css @@ -4,11 +4,11 @@ original css file: https://raw.githubusercontent.com/numpy/numpy/main/doc/source */ .navbar-brand img { - height: 75px; + height: 100%; } .navbar-brand { - height: 75px; + height: 100%; } body { diff --git a/logo.png b/docs/source/_static/evox_logo.png similarity index 100% rename from logo.png rename to docs/source/_static/evox_logo.png diff --git a/docs/source/_static/evox_logo_with_title.svg b/docs/source/_static/evox_logo_with_title.svg new file mode 100644 index 00000000..42c86cfe --- /dev/null +++ b/docs/source/_static/evox_logo_with_title.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/source/_static/favicon-16x16.ico b/docs/source/_static/favicon-16x16.ico new file mode 100644 index 0000000000000000000000000000000000000000..ddf3ef14fe5d968e27fcce5ad55487793e814e69 GIT binary patch literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lFaYJy!6ZYy{~$caQTPAK5Z(Xi z^2q$YIimj?S4jUa*`oBncq;^h6W49R*yW=)wU{J(v%Bw2dr^z;Ak zn=MMR-VHUZ@Hj*F4<1e6|@gt!M4@`5(JC x?tkEcLa-Siy&w#Vvn3teDCVNu4dN&6iToe3Kj**4;ky6!$9f2=$7Tky7yv$@zgPeO literal 0 HcmV?d00001 diff --git a/docs/source/_static/favicon-32x32.ico b/docs/source/_static/favicon-32x32.ico new file mode 100644 index 0000000000000000000000000000000000000000..a2824c539b7169f20f2ecd93bbd6d7483ff372a1 GIT binary patch literal 5558 zcmd5=Sx*~R6ds7#37C)sLJB2S)kX4r$Qq|J<&b{|6_s*R2o$n6Ed2pVb zTFqe_%{^3c+JCL<#xoE!YlUNu_u-Dzl;J{eq4WqSz(E0ob)D4G2p&?47%j{1l$H@97 zxyp%?kUM{h*Jpadb}RR+$i{rWYH++J0J_^lpnfn6il-y@)D_xsbYC?V0eLT@MfM%Z zNymCy)zH{~97^?XxvWdJo_B^q&FBfYbal`g zyuds&*~j{$)dWa+bq8*4XYe*imo9o|W3>SyyHelOzqj!XByIf+mv>4a?)OGTc}F&c zV}vu&c%8?K@QD8r@JN0PXIM*^F%YleaYKJgIrk;zY~A**P(Ht^#!m1#mS=q1hA#}G zs3isFyW^u+=!?_9@MR55Cfef`$+G9l+GULEmxW%S$JnOl+^-EnObdaQ-lI@A6b6J% zMKe*5W5p+_Z?Z{0T0_rgu`qa11LM~;AcuR*_j;xW#^xcIE%Cwl^n>C0!_eEJ2Eqo4 zQ^E&|)%-d8y<5DB{|W0yuUPPYF2((4PgV(6pN&WG*!mRlaj$)gSHN)-H#A_l9RsHO z?)xWfs~rjFYf`~%6xJn6zOXe&eMYH^pW7o-q|`9evE;&baBmMbHbKt=v0LtkI6c1FkedvBdDGdPEbwF zv0?>_b)ml8{bu%A_^m{F4N@Ca)2cDpU}1~=Xx>chQj}|J<}S78W8J|kFYu?T-QP0k0Ey^ z9@mBZxdr3yp#3rXv&f?+`8pQ}eJ#O!onvzc-4g$tDf8ty=pf~si#&8c>mv?0SBzMX zJaD8A_l{g}KlWVFCGKp>SHTSO=ZPwR7{s_!(szc_E7_oV;yFvXo;-)uSNLL`3jkeH z&~9gY$gZ~M=&qcNkr6IHZeD4Qe6R8RN(BaX={TBeHn^9YB=xb~+^dnlD-d^N-&u_?#oGpCqiW4;0Bcvad9j zx|RrcH@=12n-3sq`w3iqoeP(CO5wtrI^H((O)Z{jtU2dnt#gO>Rp%bAUWXsnlkvIV ggRiz8!}Zr$@WoCs#J{QLzcKt9-x-wl|9_wV2ko4&a{vGU literal 0 HcmV?d00001 diff --git a/docs/source/conf.py b/docs/source/conf.py index 4d8bb95a..34cfde05 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -37,6 +37,7 @@ "sphinx.ext.napoleon", "sphinx_copybutton", "sphinx_design", + "sphinx_favicon", ] # Add any paths that contain templates here, relative to this directory. @@ -63,10 +64,19 @@ # a list of builtin themes. # html_theme = "pydata_sphinx_theme" - +html_logo = "_static/evox_logo_with_title.svg" html_theme_options = { "github_url": "https://github.com/EMI-Group/evox", + "logo": { + "alt_text": "EvoX logo image", + "text": "", + }, } +favicons = [ + "favicon-16x16.ico", + "favicon-32x32.ico", +] + # 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/requirements/docs-requirements.txt b/requirements/docs-requirements.txt index 191340e6..003104f0 100644 --- a/requirements/docs-requirements.txt +++ b/requirements/docs-requirements.txt @@ -9,4 +9,5 @@ sphinx numpydoc myst-parser sphinx_copybutton -sphinx_design \ No newline at end of file +sphinx_design +sphinx-favicon