小编Pau*_*aul的帖子

Sphinx:html_static_path条目不存在

我正在使用 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”不存在

你能帮助我吗?谢谢你!

python path python-sphinx

10
推荐指数
1
解决办法
5624
查看次数

标签 统计

path ×1

python ×1

python-sphinx ×1