Fix documentation build

* Doxygen needs `RECURSIVE = YES` in order to parse the `detail` subdir.

* The `-W` warnings-as-errors option for sphinx doesn't work with the
  makefile build. Switched to calling sphinx directly.

* Fix "citation [cppimport] is not referenced" warning.
This commit is contained in:
Dean Moldovan
2017-08-17 15:01:43 +02:00
parent 0d703f6e7c
commit 8665ee8100
4 changed files with 8 additions and 7 deletions

View File

@@ -314,13 +314,13 @@ highlight_language = 'cpp'
def generate_doxygen_xml(app):
build_dir = '.build'
build_dir = os.path.join(app.confdir, '.build')
if not os.path.exists(build_dir):
os.mkdir(build_dir)
try:
subprocess.call(['doxygen', '--version'])
retcode = subprocess.call(['doxygen'])
retcode = subprocess.call(['doxygen'], cwd=app.confdir)
if retcode < 0:
sys.stderr.write("doxygen error code: {}\n".format(-retcode))
except OSError as e: