Skip to content

Commit

Permalink
Added logo for docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsch420 committed Feb 29, 2024
1 parent ea08206 commit dc5a6de
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 10 additions & 0 deletions doc/_static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
`width:auto` was rendering 0px wide for .svg files
https://stackoverflow.com/questions/59215996/how-to-add-a-logo-to-my-readthedocs-logo-rendering-at-0px-wide
*/
.wy-side-nav-search .wy-dropdown > a img.logo, .wy-side-nav-search > a img.logo {
width: auto;
height: auto;
margin-top: -80px;
margin-bottom: -80px;
}
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
import os.path

# -- Path setup --------------------------------------------------------------

Expand Down Expand Up @@ -111,7 +112,11 @@
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

html_logo = os.path.join("logo", "Logo.svg")
html_css_files = ['style.css']
html_theme_options = {
'logo_only': True,
}
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
Expand Down
Loading

0 comments on commit dc5a6de

Please sign in to comment.