2017-08-07 28 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', 
#  ] 
# }