Skip to content

Commit

Permalink
rtd test storing doxygen in a svn repo
Browse files Browse the repository at this point in the history
  • Loading branch information
burlen committed May 5, 2021
1 parent 485e314 commit 2d20316
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions doc/rtd/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import subprocess, os

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand All @@ -23,17 +25,25 @@

# -- General configuration ---------------------------------------------------

import subprocess, os

doxygen_enabled = True
if not os.path.exists('_build/html'):
os.makedirs('_build/html')

subprocess.call('cat /etc/issue', shell=True)
subprocess.call('doxygen --version', shell=True)

if doxygen_enabled:
if not os.path.exists('_build/html'):
os.makedirs('_build/html')
subprocess.call('cat /etc/issue', shell=True)
subprocess.call('doxygen --version', shell=True)
# RTD version of Doxygen has a bug that crashes it on our code due to a fixed
# buffer size. When RTD updates to Ubuntu 20.04 this will be resolved. See
# issue 613
resolved_613 = False
if resolved_613:
subprocess.call('doxygen', shell=True)
subprocess.call('./parse_xml.py', shell=True)
else:
#subprocess.call('tar xzfv teca_doxygen.tgz -C _build/html/', shell=True)
#subprocess.call('cp -r ./generated_pages _build/rst', shell=True)
subprocess.call('svn checkout svn://svn.code.sf.net/p/teca/rtd_extras/doxygen _build/html/doxygen', shell=True)
subprocess.call('svn checkout svn://svn.code.sf.net/p/teca/rtd_extras/rst _build/html/rst', shell=True)

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand Down

0 comments on commit 2d20316

Please sign in to comment.