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

Allow single file selection for sphinx run

Refs #9639
parent 76b2d481
No related branches found
No related tags found
No related merge requests found
......@@ -17,8 +17,13 @@ def main():
output_dir = os.path.join(sphinx_build_dir, builder)
doctree_dir = os.path.join(sphinx_build_dir, "doctrees")
# See if we have been told to only process a particular file
src_file = os.environ.get("DOCS_SRC_FILE", None)
import sphinx
argv = [sys.executable, "-b", builder, "-d", doctree_dir, src_dir, output_dir]
if src_file is not None:
argv.append(src_file)
# run
sys.exit(sphinx.main(argv))
......
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