Skip to content
Snippets Groups Projects
Commit b116b485 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

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
parent 935bda12
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment