Debian Codegraph @

doc/source/conf.py

raw
1 # Licensed under the Apache License, Version 2.0 (the "License"); you may
2 # not use this file except in compliance with the License. You may obtain
3 # a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10 # License for the specific language governing permissions and limitations
11 # under the License.
12
13
14 # python-manilaclient documentation build configuration file
15
16 import os
17 import sys
18
19 # If extensions (or modules to document with autodoc) are in another directory,
20 # add these directories to sys.path here. If the directory is relative to the
21 # documentation root, use os.path.abspath to make it absolute, like shown here.
22
23 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
24 ROOT = os.path.abspath(os.path.join(BASE_DIR, "..", ".."))
25 sys.path.insert(0, ROOT)
26
27 # -- General configuration ----------------------------------------------------
28
29 # Add any Sphinx extension module names here, as strings. They can be
30 # extensions
31 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32 extensions = [
33 'sphinx.ext.autodoc',
34 'openstackdocstheme',
35 'sphinxcontrib.programoutput',
36 'cliff.sphinxext',
37 ]
38
39 # Add any paths that contain templates here, relative to this directory.
40 templates_path = ['_templates']
41
42 # The suffix of source filenames.
43 source_suffix = '.rst'
44
45 # The master toctree document.
46 master_doc = 'index'
47
48 # General information about the project.
49 copyright = 'Rackspace, based on work by Jacob Kaplan-Moss'
50
51 # List of directories, relative to source directory, that shouldn't be searched
52 # for source files.
53 exclude_trees = []
54
55 # If true, '()' will be appended to :func: etc. cross-reference text.
56 add_function_parentheses = True
57
58 # If true, the current module name will be prepended to all description
59 # unit titles (such as .. function::).
60 add_module_names = True
61
62 # The name of the Pygments (syntax highlighting) style to use.
63 pygments_style = 'native'
64
65 # -- Options for HTML output --------------------------------------------------
66
67 # Output file base name for HTML help builder.
68 htmlhelp_basename = 'python-manilaclientdoc'
69 html_theme = 'openstackdocs'
70
71 # openstackdocstheme options
72 openstackdocs_repo_name = 'openstack/python-manilaclient'
73 openstackdocs_pdf_link = True
74 openstackdocs_bug_project = 'python-manilaclient'
75 openstackdocs_bug_tag = 'docs'
76
77 # -- Options for LaTeX output -------------------------------------------------
78
79 # Docs job does not install xindy
80 latex_use_xindy = False
81
82 # The paper size ('letter' or 'a4').
83 # latex_paper_size = 'letter'
84
85 # The font size ('10pt', '11pt' or '12pt').
86 # latex_font_size = '10pt'
87
88 # Grouping the document tree into LaTeX files. List of tuples
89 # (source start file, target name, title, author, documentclass
90 # [howto/manual]).
91 latex_documents = [
92 (
93 'index',
94 'Manila-client.tex',
95 'Manila Python Client Documentation',
96 'Manila contributors',
97 'manual',
98 ),
99 ]
100
101 # The name of an image file (relative to this directory) to place at the top of
102 # the title page.
103 # latex_logo = None
104
105 # For "manual" documents, if this is true, then toplevel headings are parts,
106 # not chapters.
107 # latex_use_parts = False
108
109 # Additional stuff for the LaTeX preamble.
110 # latex_preamble = ''
111
112 # Documents to append as an appendix to all manuals.
113 # latex_appendices = []
114
115 # If false, no module index is generated.
116 # latex_use_modindex = True