]> git.proxmox.com Git - ceph.git/blob - ceph/doc/conf.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / doc / conf.py
1 import sys
2 import os
3
4 project = u'Ceph'
5 copyright = u'2016, Red Hat, Inc, and contributors. Licensed under Creative Commons BY-SA'
6 version = 'dev'
7 release = 'dev'
8
9 templates_path = ['_templates']
10 source_suffix = '.rst'
11 master_doc = 'index'
12 exclude_patterns = ['**/.#*', '**/*~', 'start/quick-common.rst']
13 if tags.has('man'):
14 exclude_patterns += ['architecture.rst', 'glossary.rst', 'release*.rst',
15 'api/*',
16 'cephfs/*',
17 'dev/*',
18 'install/*',
19 'mon/*',
20 'rados/*',
21 'radosgw/*',
22 'rbd/*',
23 'start/*']
24
25 pygments_style = 'sphinx'
26
27 html_theme = 'ceph'
28 html_theme_path = ['_themes']
29 html_title = "Ceph Documentation"
30 html_logo = 'logo.png'
31 html_favicon = 'favicon.ico'
32 html_use_smartypants = True
33 html_show_sphinx = False
34 html_sidebars = {
35 '**': ['smarttoc.html', 'searchbox.html'],
36 }
37
38 extensions = [
39 'sphinx.ext.autodoc',
40 'sphinx.ext.graphviz',
41 'sphinx.ext.todo',
42 'sphinx_ditaa',
43 'breathe',
44 ]
45 todo_include_todos = True
46
47 top_level = os.path.dirname(
48 os.path.dirname(
49 os.path.abspath(__file__)
50 )
51 )
52
53 breathe_default_project = "Ceph"
54 # see $(top_srcdir)/Doxyfile
55
56 breathe_build_directory = os.path.join(top_level, "build-doc")
57 breathe_projects = {"Ceph": os.path.join(top_level, breathe_build_directory)}
58 breathe_projects_source = {
59 "Ceph": (os.path.join(top_level, "src/include/rados"),
60 ["rados_types.h", "librados.h"])
61 }
62 breathe_domain_by_extension = {'py': 'py', 'c': 'c', 'h': 'c', 'cc': 'cxx', 'hpp': 'cxx'}
63 pybind = os.path.join(top_level, 'src/pybind')
64 if pybind not in sys.path:
65 sys.path.insert(0, pybind)