我安装的Sphinx扩展名之一的配置名为:drawio_binary_path
在扩展中,有一个值集。
如果我尝试在我的conf.py中覆盖它:
app.add_config_value(“ drawio_binary_path”,'c:\ draw.io.exe',“ html”)
它引发了一个错误:配置'drawio_binary_path'已经存在。
有什么方法可以覆盖价值吗?
参考:
https://github.com/modelmat/sphinxcontrib-drawio/blob/master/sphinxcontrib/drawio/drawio/drawio/__init__.py_.py
One of the sphinx extensions i installed has a config named: drawio_binary_path
In the extnesion, there is a value set for it.
If i try to override it in my conf.py using:
app.add_config_value("drawio_binary_path", 'C:\draw.io.exe', "html")
it throws an error: Config value 'drawio_binary_path' already present.
Is there a way i can override the value?
Ref: https://www.sphinx-doc.org/en/master/_modules/sphinx/config.html
https://github.com/modelmat/sphinxcontrib-drawio/blob/master/sphinxcontrib/drawio/__init__.py
发布评论
评论(1)
直接在config.py中设置值
drawio_binary_path =“ C:\ draw.io.exe”
而不是使用
app.add_config_value
函数。Directly set the value in the config.py
drawio_binary_path = "C:\draw.io.exe"
instead of using the
app.add_config_value
function.