我正在使用 Sphinx .我想模板化它。所以在阅读文档之后,我正在尝试的是,在我的 conf.py 中,
我写了一行,
templates_path = ['_templates']
我创建了一个文件
_templates/page.html
但这不会覆盖 sphinx 提供的默认模板。我还应该做什么,这个模板需要去哪里?
编辑:
来自评论的目录结构:
conf.py
abc.txt
def.txt
makefile
_templates\
page.html
最佳答案
关于python - 狮身人面像模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1079417/