pip install sphinxtrap
In in the sphinx project’s conf.py add sphinxtrap.ext.rawtoc to extensions, set the html_theme to “sphinxtrap”, and html_theme_path to [sphinxtrap.get_theme_dir()] like this:
import sphinxtrap
extensions = ["sphinxtrap.ext.rawtoc"]
html_theme = 'sphinxtrap'
html_theme_path = [sphinxtrap.get_theme_dir()]
The following html_theme_options keys in conf.py are allowed:
Note
If you customize the logo make sure it is a 32x32 image.
html_theme_options = {'analytics':"YOUR-ANALITICS-CODE", 'inverse': False}
html_logo = None #will fallback to the folder icon
new_page_external_links = true