Statistics
| Branch: | Tag: | Revision:

root / docs / conf.py @ 584fd90a

History | View | Annotate | Download (10.2 kB)

1
# -*- coding: utf-8 -*-
2
#
3
# Copyright 2011-2013 GRNET S.A. All rights reserved.
4
#
5
# Redistribution and use in source and binary forms, with or
6
# without modification, are permitted provided that the following
7
# conditions are met:
8
#
9
#   1. Redistributions of source code must retain the above
10
#      copyright notice, this list of conditions and the following
11
#      disclaimer.
12
#
13
#   2. Redistributions in binary form must reproduce the above
14
#      copyright notice, this list of conditions and the following
15
#      disclaimer in the documentation and/or other materials
16
#      provided with the distribution.
17
#
18
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
19
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
22
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
25
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
28
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
# POSSIBILITY OF SUCH DAMAGE.
30
#
31
# The views and conclusions contained in the software and
32
# documentation are those of the authors and should not be
33
# interpreted as representing official policies, either expressed
34
# or implied, of GRNET S.A.
35
#
36
#
37
#
38
# Kamaki documentation build configuration file, created by
39
# sphinx-quickstart on Tue Nov 29 15:15:50 2011.
40
#
41
# This file is execfile()d with the current directory set to its containing
42
# dir.
43
#
44
# Note that not all possible configuration values are present in this
45
# auto-generated file.
46
#
47
# All configuration values have a default; values that are commented out
48
# serve to show the default.
49

    
50
# If extensions (or modules to document with autodoc) are in another directory,
51
# add these directories to sys.path here. If the directory is relative to the
52
# documentation root, use os.path.abspath to make it absolute, like shown here.
53

    
54
from sys import path, stderr
55
import os
56

    
57
try:
58
    from objpool.http import PooledHTTPConnection
59
    PooledHTTPConnection
60
except ImportError:
61
    stderr.write("`objpool` package is required to build kamaki docs.\n")
62
    raise
63

    
64
try:
65
    from progress.bar import ShadyBar
66
    ShadyBar
67
except ImportError:
68
    stderr.write("`progress` package is required to build kamaki docs.\n")
69
    raise
70

    
71
path.insert(0, os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))
72

    
73
# -- General configuration ---------------------------------------------------
74

    
75
# If your documentation needs a minimal Sphinx version, state it here.
76
#needs_sphinx = '1.0'
77

    
78
# Add any Sphinx extension module names here, as strings. They can be
79
#extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
80
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
81

    
82
# Add any paths that contain templates here, relative to this directory.
83
templates_path = ['_templates']
84

    
85
# The suffix of source filenames.
86
source_suffix = '.rst'
87

    
88
# The encoding of source files.
89
#source_encoding = 'utf-8-sig'
90

    
91
# The master toctree document.
92
master_doc = 'index'
93

    
94
# General information about the project.
95
project = u'Kamaki'
96
copyright = u'2013, GRNET'
97

    
98
# The version info for the project you're documenting, acts as replacement for
99
# |version| and |release|, also used in various other places throughout the
100
# built documents.
101
#
102
# The short X.Y version.
103
version = '0.10'
104
# The full version, including alpha/beta/rc tags.
105
try:
106
    import kamaki
107
    release = kamaki.__version__
108
except ImportError:
109
    release = version
110

    
111
# The language for content autogenerated by Sphinx. Refer to documentation
112
# for a list of supported languages.
113
#language = None
114

    
115
# There are two options for replacing |today|: either, you set today to some
116
# non-false value, then it is used:
117
#today = ''
118
# Else, today_fmt is used as the format for a strftime call.
119
#today_fmt = '%B %d, %Y'
120

    
121
# List of patterns, relative to source directory, that match files and
122
# directories to ignore when looking for source files.
123
exclude_patterns = ['_build']
124

    
125
# The reST default role (used for this markup: `text`) to use for all
126
# documents.
127
#default_role = None
128

    
129
# If true, '()' will be appended to :func: etc. cross-reference text.
130
#add_function_parentheses = True
131

    
132
# If true, the current module name will be prepended to all description
133
# unit titles (such as .. function::).
134
#add_module_names = True
135

    
136
# If true, sectionauthor and moduleauthor directives will be shown in the
137
# output. They are ignored by default.
138
#show_authors = False
139

    
140
# The name of the Pygments (syntax highlighting) style to use.
141
pygments_style = 'sphinx'
142

    
143
# A list of ignored prefixes for module index sorting.
144
#modindex_common_prefix = []
145

    
146

    
147
# -- Options for HTML output -------------------------------------------------
148

    
149
# The theme to use for HTML and HTML Help pages.  See the documentation for
150
# a list of builtin themes.
151
#html_theme = 'nature'
152
html_theme = 'default'
153
html_theme_options = {
154
    'collapsiblesidebar': 'true',
155
    'footerbgcolor':    '#55b577',
156
    'footertextcolor':  '#000000',
157
    'sidebarbgcolor':   '#ffffff',
158
    'sidebarbtncolor':  '#f2f2f2',
159
    'sidebartextcolor': '#000000',
160
    'sidebarlinkcolor': '#328e4a',
161
    'relbarbgcolor':    '#55b577',
162
    'relbartextcolor':  '#ffffff',
163
    'relbarlinkcolor':  '#ffffff',
164
    'bgcolor':          '#ffffff',
165
    'textcolor':        '#000000',
166
    'headbgcolor':      '#ffffff',
167
    'headtextcolor':    '#000000',
168
    'headlinkcolor':    '#c60f0f',
169
    'linkcolor':        '#328e4a',
170
    'visitedlinkcolor': '#63409b',
171
    'codebgcolor':      '#eeffcc',
172
    'codetextcolor':    '#333333'
173
}
174

    
175

    
176
# Theme options are theme-specific and customize the look and feel of a theme
177
# further.  For a list of options available for each theme, see the
178
# documentation.
179
#html_theme_options = {}
180

    
181
# Add any paths that contain custom themes here, relative to this directory.
182
#html_theme_path = []
183

    
184
# The name for this set of Sphinx documents.  If None, it defaults to
185
# "<project> v<release> documentation".
186
#html_title = None
187

    
188
# A shorter title for the navigation bar.  Default is the same as html_title.
189
#html_short_title = None
190

    
191
# The name of an image file (relative to this directory) to place at the top
192
# of the sidebar.
193
#html_logo = None
194

    
195
# The name of an image file (within the static path) to use as favicon of the
196
# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
197
# pixels large.
198
#html_favicon = None
199

    
200
# Add any paths that contain custom static files (such as style sheets) here,
201
# relative to this directory. They are copied after the builtin static files,
202
# so a file named "default.css" will overwrite the builtin "default.css".
203
html_static_path = ['_static']
204

    
205
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
206
# using the given strftime format.
207
#html_last_updated_fmt = '%b %d, %Y'
208

    
209
# If true, SmartyPants will be used to convert quotes and dashes to
210
# typographically correct entities.
211
#html_use_smartypants = True
212

    
213
# Custom sidebar templates, maps document names to template names.
214
#html_sidebars = {}
215

    
216
# Additional templates that should be rendered to pages, maps page names to
217
# template names.
218
#html_additional_pages = {}
219

    
220
# If false, no module index is generated.
221
#html_domain_indices = True
222

    
223
# If false, no index is generated.
224
#html_use_index = True
225

    
226
# If true, the index is split into individual pages for each letter.
227
#html_split_index = False
228

    
229
# If true, links to the reST sources are added to the pages.
230
#html_show_sourcelink = True
231

    
232
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
233
#html_show_sphinx = True
234

    
235
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
236
#html_show_copyright = True
237

    
238
# If true, an OpenSearch description file will be output, and all pages will
239
# contain a <link> tag referring to it.  The value of this option must be the
240
# base URL from which the finished HTML is served.
241
#html_use_opensearch = ''
242

    
243
# This is the file name suffix for HTML files (e.g. ".xhtml").
244
#html_file_suffix = None
245

    
246
# Output file base name for HTML help builder.
247
htmlhelp_basename = 'Kamakidoc'
248

    
249

    
250
# -- Options for LaTeX output ------------------------------------------------
251

    
252
latex_elements = {
253
# The paper size ('letterpaper' or 'a4paper').
254
#'papersize': 'letterpaper',
255

    
256
# The font size ('10pt', '11pt' or '12pt').
257
#'pointsize': '10pt',
258

    
259
# Additional stuff for the LaTeX preamble.
260
#'preamble': '',
261
}
262

    
263
# Grouping the document tree into LaTeX files. List of tuples
264
# (source start file, target name, title, author, documentclass
265
# [howto/manual]).
266
latex_documents = [
267
  ('index', 'Kamaki.tex', u'Kamaki Documentation',
268
   u'GRNET', 'manual'),
269
]
270

    
271
# The name of an image file (relative to this directory) to place at the top of
272
# the title page.
273
#latex_logo = None
274

    
275
# For "manual" documents, if this is true, then toplevel headings are parts,
276
# not chapters.
277
#latex_use_parts = False
278

    
279
# If true, show page references after internal links.
280
#latex_show_pagerefs = False
281

    
282
# If true, show URL addresses after external links.
283
#latex_show_urls = False
284

    
285
# Documents to append as an appendix to all manuals.
286
#latex_appendices = []
287

    
288
# If false, no module index is generated.
289
#latex_domain_indices = True
290

    
291

    
292
# -- Options for manual page output ------------------------------------------
293

    
294
# One entry per manual page. List of tuples
295
# (source start file, name, description, authors, manual section).
296
man_pages = [
297
    ('man/kamaki', 'kamaki', 'Command-line tool for managing clouds', '', 1),
298
]
299

    
300
# If true, show URL addresses after external links.
301
#man_show_urls = False
302

    
303

    
304
# -- Options for Texinfo output ----------------------------------------------
305

    
306
# Grouping the document tree into Texinfo files. List of tuples
307
# (source start file, target name, title, author,
308
#  dir menu entry, description, category)
309
texinfo_documents = [
310
  ('index', 'Kamaki', u'Kamaki Documentation',
311
   u'GRNET', 'Kamaki', 'One line description of project.',
312
   'Miscellaneous'),
313
]
314

    
315
# Documents to append as an appendix to all manuals.
316
#texinfo_appendices = []
317

    
318
# If false, no module index is generated.
319
#texinfo_domain_indices = True
320

    
321
# How to display URL addresses: 'footnote', 'no', or 'inline'.
322
#texinfo_show_urls = 'footnote'