Skip to content

Commit

Permalink
improve script
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhmaj committed Mar 25, 2024
1 parent f47b831 commit accee67
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ def configure_doxyfile(input_dir, output_dir):
file.write(filedata)


# Check if we're running on Read the Docs' servers or in the GitHub Actions Workflow
breathe_projects = {}
input_dir = "../src"
output_dir = "build"
configure_doxyfile(input_dir, output_dir)
subprocess.call("doxygen", shell=True)
breathe_projects["polyhedral-gravity-model"] = output_dir + "/xml"
if os.environ.get("READTHEDOCS", None) is not None or os.environ.get("GITHUB_PAGES_BUILD", None) is not None:
input_dir = "../src"
output_dir = "build"
configure_doxyfile(input_dir, output_dir)
subprocess.call("doxygen", shell=True)
breathe_projects["polyhedral-gravity-model"] = output_dir + "/xml"

# -- Project information -----------------------------------------------------

Expand Down

0 comments on commit accee67

Please sign in to comment.