]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: add breathe_domain_by_extension to conf.py 9406/head
authorKefu Chai <kchai@redhat.com>
Tue, 31 May 2016 10:33:08 +0000 (18:33 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 31 May 2016 10:34:32 +0000 (18:34 +0800)
so it can render the doxygen generated objects with the proper domain by
checking the extension of rendered source file.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/conf.py

index 7199b1669de8bf3a968f9b6595d478f4c672616c..3534c033c9b73e96129d447bddd17bfdaa17c523 100644 (file)
@@ -59,6 +59,7 @@ breathe_projects_source = {
     "Ceph": (os.path.join(top_level, "src/include/rados"),
              ["rados_types.h", "librados.h"])
 }
+breathe_domain_by_extension = {'py': 'py', 'c': 'c', 'h': 'c', 'cc': 'cxx', 'hpp': 'cxx'}
 pybind = os.path.join(top_level, 'src/pybind')
 if pybind not in sys.path:
     sys.path.insert(0, pybind)