mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Copy the environment pickle to the output dir in the web builder.
This commit is contained in:
parent
276141002f
commit
4fc61114e5
@ -597,6 +597,11 @@ class WebHTMLBuilder(StandaloneHTMLBuilder):
|
||||
with open(path.join(self.outdir, 'searchindex.pickle'), 'wb') as f:
|
||||
self.indexer.dump(f, 'pickle')
|
||||
|
||||
# copy the environment file from the doctree dir to the output dir
|
||||
# as needed by the web app
|
||||
shutil.copyfile(path.join(self.doctreedir, ENV_PICKLE_FILENAME),
|
||||
path.join(self.outdir, ENV_PICKLE_FILENAME))
|
||||
|
||||
# touch 'last build' file, used by the web application to determine
|
||||
# when to reload its environment and clear the cache
|
||||
open(path.join(self.outdir, LAST_BUILD_FILENAME), 'w').close()
|
||||
|
Loading…
Reference in New Issue
Block a user