安装¶
Alabaster需要 Sphinx 3.4 or newer ,并作为默认主题包含在其中。
要设置Alabaster,请添加一个显式 html_sidebars
设置以加载Alabaster的自定义侧边栏模板:
html_sidebars = { '**': [ 'about.html', 'navigation.html', 'relations.html', 'searchbox.html', 'donate.html', ] }
就这样!现在,您已经设置了标准的Alabaster主题。有关更多核心配置问题,请继续阅读,或参阅 定制 用于功能/样式选项。
图像和/或自定义样式表的静电路径¶
If you're using any of the image-related options listed on 定制
(logo
or touch-icon
) or a custom stylesheet,
you'll also want to tell Sphinx where to get these files from. If so, add a
line like this (changing the path if necessary; see the Sphinx docs for
'html_static_path') to your conf.py
:
html_static_path = ['_static']