当使用Sphinx中的WebSupport.build
时,是否有任何方法可以删除构建缓存?我需要删除构建缓存,因为如果使用WebSupport.build
一次或多次构建具有相同名称但不同图像内容的图像,则会显示相同的旧图像,除非并且直到图像的名称发生更改。你知道吗
我使用Websupport.build
从rst
格式构建文档,如下所示:
from sphinxcontrib.websupport import WebSupport
support = WebSupport(srcdir=srcdir, builddir=builddir,search="xapian")
support.build()
document= support.getdocument("index")
并在flask
应用程序中相应地呈现
使用以下jinja
模板:
{% extends 'baselayout.html' %}
{% block doc_sidebar %}
{{ document.sidebar|safe }}
{% endblock %}
{% block doc_content %}
{{ document.body|safe }}
{% endblock %}
这就是我找到的适合我的解决方案:删除
builddir
(如果它只存在于删除以前的构建的情况下)。你知道吗谢谢大家!!!你知道吗
相关问题 更多 >
编程相关推荐