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