cantera/doc/SConscript
Ray Speth b4ceb7da2e Reformatted the Python docstrings to work better with Sphinx
This means that the docstrings are now parsed as reStructuredText.
2012-03-13 17:34:47 +00:00

21 lines
715 B
Python

from buildutils import *
Import('env', 'build', 'install')
localenv = env.Clone()
if localenv['doxygen_docs']:
build(localenv.Command('#build/docs/html/index.html',
'doxygen/Doxyfile', 'doxygen $SOURCE'))
install(pjoin('$inst_docdir', 'html'),
mglob(localenv, '#/build/docs/html', 'html', 'svg', 'css', 'png'))
if localenv['sphinx_docs']:
localenv['SPHINXBUILD'] = Dir('#build/sphinx')
localenv['SPHINXSRC'] = Dir('sphinx')
sphinxdocs = build(localenv.Command('${SPHINXBUILD}/html/index.html',
'sphinx/conf.py',
'sphinx-build -b html -d ${SPHINXBUILD}/doctrees ${SPHINXSRC} ${SPHINXBUILD}/html'))
localenv.AlwaysBuild(sphinxdocs)