Header logo and title#

The header can show logo image, title text, or both, giving your documentation immediate branding. Swapping variants and tailoring light/dark mode versions is straightforward.

If set, by default, the both logo and title are shown. The header branding region spans roughly half the header width to fit even wide logos and titles.

Header title#

The same as page title#

By default, the header title uses Sphinx standard html_title option used for HTML page title (<title>). The default value is <project> <release> documentation. E.g., for project = "Foo" and release = "1.5", it becomes Foo 1.5 documentation.

Set page and header title

  1. In conf.py:

    html_title = "REST API"
    

Tip

Set the same project and HTML title:

project = html_title = "My Awesome Project"

Different than page title#

If you want header title different than html_title, use the html_theme_options’s header_title option.

Set custom header title

  1. In conf.py:

    html_title = "REST API"
    html_theme_options = {
       "header_title": "Getting started with RESTful API"
    }
    

Disable title#

To completely disable showing a header title, set the html_theme_options’s header_title option to False.

Disable header title

  1. In conf.py:

    html_theme_options = {
       "header_title": False
    }