customize

inherit

手順

  • テーマ名決める(仮に custom とする)

  • conf.py のあるフォルダに custom フォルダを作る

  • custom/theme.conf を作成

    [theme] inherit = basic stylesheet = main.css pygments_style = sphinx

    [option] nosidebar = false

  • conf.py が custom を使うように設定する

html_theme = 'custom'
html_theme_path = ['.']
  • custom/static/main.css

.body {
    background-color: silver;
}

.related {
    background-color: #a2e8fe;
}

.sphinxsidebar {
    background-color: #4b7afd;
}

.footer {
    background-color: #fcc1c1;
}