From b116b485470b7124c60e9b24f6aa5030b0a9952e Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@stfc.ac.uk> Date: Fri, 13 Jun 2014 11:11:16 +0100 Subject: [PATCH] Separate the Sphinx doctree directories by bulder type. Each builder type now has a separate environment so that the order of running the targets doesn't make a difference. Shared doctree directories meant that running doctest first just in vanilla python wouldn't generate the screenshots and running the html target wouldn't reread the unchanged source files to generate the images. It forced doctest to run in MantidPlot and do the screenshot generation. Refs #9639 --- Code/Mantid/docs/runsphinx.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/docs/runsphinx.py.in b/Code/Mantid/docs/runsphinx.py.in index bb6a822e80b..8f7a6a2740c 100644 --- a/Code/Mantid/docs/runsphinx.py.in +++ b/Code/Mantid/docs/runsphinx.py.in @@ -18,7 +18,7 @@ def main(): src_dir = "@CMAKE_CURRENT_SOURCE_DIR@/source" sphinx_build_dir = "@SPHINX_BUILD_DIR@" output_dir = os.path.join(sphinx_build_dir, builder) - doctree_dir = os.path.join(sphinx_build_dir, "doctrees") + doctree_dir = os.path.join(sphinx_build_dir, "doctrees", builder) # See if we have been told to only process a particular file src_file = os.environ.get("DOCS_SRC_FILE", None) -- GitLab