From f7c5e1fb93005f72fc44453cd49f54610809b79f Mon Sep 17 00:00:00 2001 From: Bradley Ellert Date: Wed, 3 Jan 2018 12:15:00 -0800 Subject: [PATCH] Build Doxygen from Read the Docs --- docs/source/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 842aff1e..9c80bb1b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -16,7 +16,7 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -import os +import subprocess, os import sys # sys.path.insert(0, os.path.abspath('.')) config_directory = os.path.dirname(os.path.abspath(__file__)) @@ -181,3 +181,9 @@ author, 'minorminer', 'One line description of project.', 'Miscellaneous'), ] + +read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' + +if read_the_docs_build: + + subprocess.call('cd ..; make cpp', shell=True)