diff --git a/docs/conf.py b/docs/conf.py index 75d699cd..06acf0a1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -121,29 +121,9 @@ html_css_files = ["css/custom.css"] # -- Breathe configuration --------------------------------------------------- -def configureDoxyfile(input_dir, output_dir): - with open("Doxyfile.in", "r") as file: - filedata = file.read() - - filedata = filedata.replace("@DOXYGEN_INPUT_DIR@", input_dir) - filedata = filedata.replace("@DOXYGEN_OUTPUT_DIR@", output_dir) - - with open("Doxyfile", "w") as file: - file.write(filedata) - - -# Check if we're running on Read the Docs' servers -read_the_docs_build = os.environ.get("READTHEDOCS", None) == "True" - # This should be a dictionary in which the keys are project names and the values # are paths to the folder containing the doxygen output for that project. -breathe_projects = {} -if read_the_docs_build: - input_dir = "../src" - output_dir = "build" - configureDoxyfile(input_dir, output_dir) - subprocess.call("doxygen", shell=True) - breathe_projects["mp-units"] = output_dir + "/xml" +breathe_projects = {"mp-units": "build/xml"} # This should match one of the keys in the breathe_projects dictionary and # indicates which project should be used when the project is not specified on