2017-08-07 29 views
7

在我的conf.py它说我应该看到内置主题列表的文档。现在我的第一个谷歌命中导致我http://www.sphinx-doc.org/en/stable/theming.html#builtin-themes。那里有一些我的狮身人面像不知道的主题。例如'经典'。狮身人面像内置主题找不到

在conf.py html_theme = 'classic'

在我的壳

我做的:sphinx-build -b html source build

writing output... [100%] index 
Exception occurred: 
    File "~\appdata\local\programs\python\python35\lib\site-packages\sphinx\jinja2glue.py", line 200, in get_source 
    raise TemplateNotFound(template) 
jinja2.exceptions.TemplateNotFound: about.html 

Sphinx的版本:1.6.3。

+1

是否有内置主题的工作? – mzjn

+1

是的,ha句和卷轴工作的例子。 – Nozdrum

回答

16

我有同样的问题,因为我之前使用雪花石膏主题。 conf.py中有几行需要雪花石膏和其他主题。你需要评论他们。

# Custom sidebar templates, must be a dictionary that maps document names 
# to template names. 
# 
# This is required for the alabaster theme 
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars 
# html_sidebars = { 
#  '**': [ 
#   'about.html', 
#   'navigation.html', 
#   'relations.html', # needs 'show_related': True theme option to display 
#   'searchbox.html', 
#   'donate.html', 
#  ] 
# }