Customize sphinxdoc theme

后端 未结 4 1960
礼貌的吻别
礼貌的吻别 2020-12-01 04:58

Is there an easy way to customize the existing sphinxdoc theme? For the default theme, there are many theme-attributes, but in sphinxdoc I can\'t even set a log

4条回答
  •  春和景丽
    2020-12-01 05:28

    For Sphinx 1.8.2 the default theme is Alabaster which I customize by adding a new stylesheet configured with html_style:

    conf.py:

    html_style = 'custom.css'
    

    _static/custom.css:

    @import url("alabaster.css");
    
    blockquote{
      background: white;
      color: black;
      display: block;
    }
    

提交回复
热议问题