我正在使用 Sphinx,我想在 config.py 文件中设置 html_static_path 变量。默认为:
html_static_path = ['_static']
我的项目设置是:
docs/
build/
doctrees
html/
_static/
source/
conf.py
Run Code Online (Sandbox Code Playgroud)
sphinx文档说我需要设置相对于该目录的路径,即conf.py的相对路径。因此,我尝试:
html_static_path = ['..\build\html\source\_static']
Run Code Online (Sandbox Code Playgroud)
我尝试设置绝对路径。但我仍然收到警告:
警告:html_static_path 条目“build\html\source\_static”不存在
你能帮助我吗?谢谢你!