How to delete the build cache while building documents using WebSupport.Build in sphinx?
This is the solution I have found working for me: Removing builddir
if it exists only to remove the previous build.
import osimport shutilfrom sphinxcontrib.websupport import WebSupportdef build_doc(srcdir, builddir): if os.path.exists(builddir): shutil.rmtree(builddir) support = WebSupport(srcdir=srcdir, builddir=_builddir,search="xapian") support.build()
Thank you, Everyone!!!