Statistics
| Branch: | Tag: | Revision:

root / docs / conf.py @ 109c8171

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

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

    
69
path.insert(0, os.path.join(os.path.abspath(os.path.dirname(__file__)), '..'))
70

    
71
# -- General configuration ---------------------------------------------------
72

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

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

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

    
83
# The suffix of source filenames.
84
source_suffix = '.rst'
85

    
86
# The encoding of source files.
87
#source_encoding = 'utf-8-sig'
88

    
89
# The master toctree document.
90
master_doc = 'index'
91

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

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

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

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

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

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

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

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

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

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

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

    
144

    
145
# -- Options for HTML output -------------------------------------------------
146

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

    
173

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

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

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

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

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

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

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

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

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

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

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

    
218
# If false, no module index is generated.
219
#html_domain_indices = True
220

    
221
# If false, no index is generated.
222
#html_use_index = True
223

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

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

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

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

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

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

    
244
# Output file base name for HTML help builder.
245
htmlhelp_basename = 'Kamakidoc'
246

    
247

    
248
# -- Options for LaTeX output ------------------------------------------------
249

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

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

    
257
# Additional stuff for the LaTeX preamble.
258
#'preamble': '',
259
}
260

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

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

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

    
277
# If true, show page references after internal links.
278
#latex_show_pagerefs = False
279

    
280
# If true, show URL addresses after external links.
281
#latex_show_urls = False
282

    
283
# Documents to append as an appendix to all manuals.
284
#latex_appendices = []
285

    
286
# If false, no module index is generated.
287
#latex_domain_indices = True
288

    
289

    
290
# -- Options for manual page output ------------------------------------------
291

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

    
298
# If true, show URL addresses after external links.
299
#man_show_urls = False
300

    
301

    
302
# -- Options for Texinfo output ----------------------------------------------
303

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

    
313
# Documents to append as an appendix to all manuals.
314
#texinfo_appendices = []
315

    
316
# If false, no module index is generated.
317
#texinfo_domain_indices = True
318

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