From bc00c2b388600551c16079f131d49792e16b972a Mon Sep 17 00:00:00 2001 From: Ian Bell <ian.bell@nist.gov> Date: Tue, 15 Nov 2022 14:04:54 -0700 Subject: [PATCH] Try again to get doxygen to hook up --- doc/environment.yml | 4 +++- doc/source/conf.py | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/environment.yml b/doc/environment.yml index 88724d3..736c97e 100644 --- a/doc/environment.yml +++ b/doc/environment.yml @@ -7,6 +7,7 @@ dependencies: - pip - doxygen - cmake + - pandoc - pip: - breathe - teqp @@ -19,4 +20,5 @@ dependencies: - pandas - matplotlib - PCSAFTsuperanc - - sphinxcontrib-doxylink \ No newline at end of file + - sphinxcontrib-doxylink + - insipid-sphinx-theme \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index a8e343a..f78ab50 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -4,7 +4,7 @@ # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html -import os, subprocess +import os, subprocess, shutil on_rtd = os.environ.get('READTHEDOCS') == 'True' # -- Path setup -------------------------------------------------------------- @@ -31,9 +31,10 @@ release = teqp.__version__ # -- Execute all notebooks -------------------------------------------------- -# Run doxygen -if not os.path.exists(here+'/_static/'): - os.makedirs(here+'/_static') +# Run doxygen (always) +if os.path.exists(here+'/_static/'): + shutil.rmtree(here+'/_static/') +os.makedirs(here+'/_static') subprocess.check_call('doxygen Doxyfile', cwd=here+'/../..', shell=True) if on_rtd: -- GitLab