sphinx-theme-mochi

1.1. Setup#

1.1.1. Instruction#

Requirements

Python > 3.8

Installation

Install the theme

python -m pip install sphinx
python -m pip install sphinx-theme-mochi

Create a new project

sphinx-quickstart .

Edit conf.py to change the theme

# conf.py
html_theme = 'sphinx_theme_mochi'

Add the theme to the list of extensions.

extensions = [
    'sphinx.ext.todo',
    'sphinx.ext.autodoc',
    'sphinx.ext.mathjax',
    'myst_parser',
    'sphinx_theme_mochi',
]
Menu Expand Search