我在向 Sphinx .html 文件添加自定义页脚时遇到一些问题。我正在使用sphinx_rtd_theme。我已经检查了这篇文章并尝试了它(以及评论中的一些建议)但无济于事。我不确定我错过了什么。如果我没有在这里发布足够的内容来实际指出导致问题的原因,我深表歉意。任何帮助或建议表示赞赏!
我的 css 主题文件已被我自己(很差地)修改过(我不是 HTML/CSS 人员!),但我认为这并不重要?我唯一能想到的另一件事是,当我重新编译输出文件时,也许我必须做一些特别的事情。我只是使用:
make clean html && make html
Run Code Online (Sandbox Code Playgroud)
我的conf.py
位于:root/source/conf.py。以下是我的conf.py
文件的一些摘录:
import sphinx_rtd_theme
project = 'Project Name'
copyright = '2021, My Company'
author = 'My Name, Coworker Name'
master_doc = 'Home'
extensions = ["sphinx_rtd_theme", "sphinx.ext.todo"]
todo_include_todos = True
templates_path = ['_templates']
source_suffix = ['.rst']
html4_writer = True
html_theme = 'sphinx_rtd_theme'
# html_theme_path = ['_static']
html_static_path = ['_static']
# html_extra_path = []
html_show_sphinx = True
html_show_copyright …
Run Code Online (Sandbox Code Playgroud)