34 extensions = [
'breathe']
36 breathe_projects = {
'pybind11':
'.build/doxygenxml/'}
37 breathe_default_project =
'pybind11' 38 breathe_domain_by_extension = {
'h':
'cpp'}
41 templates_path = [
'.templates']
46 source_suffix =
'.rst' 56 copyright =
'2017, Wenzel Jakob' 57 author =
'Wenzel Jakob' 83 exclude_patterns = [
'.build',
'release.rst']
110 todo_include_todos =
False 118 on_rtd = os.environ.get(
'READTHEDOCS',
None) ==
'True' 121 import sphinx_rtd_theme
122 html_theme =
'sphinx_rtd_theme' 123 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
127 '_static/theme_overrides.css' 133 '//media.readthedocs.org/css/sphinx_rtd_theme.css',
134 '//media.readthedocs.org/css/readthedocs-doc-embed.css',
135 '_static/theme_overrides.css' 166 html_static_path = [
'_static']
229 htmlhelp_basename =
'pybind11doc' 241 'preamble':
r'\DeclareUnicodeCharacter{00A0}{}',
251 (master_doc,
'pybind11.tex',
'pybind11 Documentation',
252 'Wenzel Jakob',
'manual'),
281 (master_doc,
'pybind11',
'pybind11 Documentation',
294 texinfo_documents = [
295 (master_doc,
'pybind11',
'pybind11 Documentation',
296 author,
'pybind11',
'One line description of project.',
312 primary_domain =
'cpp' 313 highlight_language =
'cpp' 317 build_dir = os.path.join(app.confdir,
'.build')
318 if not os.path.exists(build_dir):
322 subprocess.call([
'doxygen',
'--version'])
323 retcode = subprocess.call([
'doxygen'], cwd=app.confdir)
325 sys.stderr.write(
"doxygen error code: {}\n".format(-retcode))
327 sys.stderr.write(
"doxygen execution failed: {}\n".format(e))
331 """Add hook for building doxygen xml when needed""" 332 app.connect(
"builder-inited", generate_doxygen_xml)
def generate_doxygen_xml(app)