By: Amelia Saiko
Logos¶
You will most certainly want to change the default logos to make your documentation look like it is actually made for your very own project. Fortunately, this theme supports that.
Changing the logo¶
To change the logo, you can use the built-in Sphinx
configuration variable html_logo:
conf.py¶
html_logo = '_static/logo.png'
Note
Make sure you have _static folder added to
html_static_path, otherwise Sphinx won’t copy your logo
where it needs to be.
Changing the mobile logo¶
Theme displays a different logo on mobile layout, where it is located in a narrow mobile header instead of the sidebar.
To change it, you’ll need to set a theme variable named
mobile_layout_logo:
conf.py¶
html_theme_options = {
...,
"mobile_layout_logo": "_static/text-logo.png"
}