如何在Sphinx文档中添加自定义页脚? (reStructuredText)

如果我有一些文档,例如Galleria的文档,我该如何设置它以便在运行
make html
命令时它会在每个页面上添加一个自定义页脚? 我看到如果我将它输出为pdf格式,我可能会使用conf.py的latex前言部分。 谢谢!     
已邀请:
您必须通过提供如下的html文件来扩展默认布局:
{% extends '!layout.html' %}

{% block footer %}
        <!-- your html code here -->
{% endblock %}
将其保存在
_templates/
子目录中,如
layout.html
,并确保告诉
conf.py
在哪里可以找到此目录:
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
有关模板的更多信息,请访问:http://sphinx.pocoo.org/templating.html     

要回复问题请先登录注册