Debian Codegraph @

docs/conf.py

raw
1 # -*- coding: utf-8 -*-
2 #
3 # DRMAA Python documentation build configuration file, created by
4 # sphinx-quickstart on Wed Nov 27 13:52:19 2013.
5 #
6 # This file is execfile()d with the current directory set to its containing dir.
7 #
8 # Note that not all possible configuration values are present in this
9 # autogenerated file.
10 #
11 # All configuration values have a default; values that are commented out
12 # serve to show the default.
13
14 import os
15 import sys
16
17
18 # Handle modules that will not import properly because they rely on C
19 class Mock(object):
20 def __init__(self, *args, **kwargs):
21 pass
22
23 def __call__(self, *args, **kwargs):
24 return Mock()
25
26 @classmethod
27 def __getattr__(cls, name):
28 if name in ('__file__', '__path__'):
29 return '/dev/null'
30 elif name[0] == name[0].upper():
31 mockType = type(name, (), {})
32 mockType.__module__ = __name__
33 return mockType
34 else:
35 return Mock()
36
37 MOCK_MODULES = ['drmaa.wrappers']
38 for mod_name in MOCK_MODULES:
39 sys.modules[mod_name] = Mock()
40
41
42 # If extensions (or modules to document with autodoc) are in another directory,
43 # add these directories to sys.path here. If the directory is relative to the
44 # documentation root, use os.path.abspath to make it absolute, like shown here.
45 sys.path.insert(0, os.path.abspath('..'))
46
47 import drmaa
48
49 # -- General configuration -----------------------------------------------------
50
51 # If your documentation needs a minimal Sphinx version, state it here.
52 #needs_sphinx = '1.0'
53
54 # Add any Sphinx extension module names here, as strings. They can be extensions
55 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
56 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.todo', 'sphinx.ext.coverage',
57 'sphinx.ext.mathjax', 'sphinx.ext.viewcode']
58
59 # Add any paths that contain templates here, relative to this directory.
60 templates_path = ['_templates']
61
62 # The suffix of source filenames.
63 source_suffix = '.rst'
64
65 # The encoding of source files.
66 #source_encoding = 'utf-8-sig'
67
68 # The master toctree document.
69 master_doc = 'index'
70
71 # General information about the project.
72 project = u'DRMAA Python'
73 copyright = u'2013, Dan Blanchard, David Ressman, Enrico Sirola'
74
75 # The version info for the project you're documenting, acts as replacement for
76 # |version| and |release|, also used in various other places throughout the
77 # built documents.
78 #
79 # The short X.Y version.
80 version = drmaa.__version__
81 # The full version, including alpha/beta/rc tags.
82 release = drmaa.__version__
83
84 # The language for content autogenerated by Sphinx. Refer to documentation
85 # for a list of supported languages.
86 #language = None
87
88 # There are two options for replacing |today|: either, you set today to some
89 # non-false value, then it is used:
90 #today = ''
91 # Else, today_fmt is used as the format for a strftime call.
92 #today_fmt = '%B %d, %Y'
93
94 # List of patterns, relative to source directory, that match files and
95 # directories to ignore when looking for source files.
96 exclude_patterns = ['_build']
97
98 # The reST default role (used for this markup: `text`) to use for all documents.
99 #default_role = None
100
101 # If true, '()' will be appended to :func: etc. cross-reference text.
102 #add_function_parentheses = True
103
104 # If true, the current module name will be prepended to all description
105 # unit titles (such as .. function::).
106 #add_module_names = True
107
108 # If true, sectionauthor and moduleauthor directives will be shown in the
109 # output. They are ignored by default.
110 #show_authors = False
111
112 # The name of the Pygments (syntax highlighting) style to use.
113 pygments_style = 'sphinx'
114
115 # A list of ignored prefixes for module index sorting.
116 #modindex_common_prefix = []
117
118
119 # -- Options for HTML output ---------------------------------------------------
120
121 # The theme to use for HTML and HTML Help pages. See the documentation for
122 # a list of builtin themes.
123 html_theme = 'default'
124
125 # Theme options are theme-specific and customize the look and feel of a theme
126 # further. For a list of options available for each theme, see the
127 # documentation.
128 #html_theme_options = {}
129
130 # Add any paths that contain custom themes here, relative to this directory.
131 #html_theme_path = []
132
133 # The name for this set of Sphinx documents. If None, it defaults to
134 # "<project> v<release> documentation".
135 #html_title = None
136
137 # A shorter title for the navigation bar. Default is the same as html_title.
138 #html_short_title = None
139
140 # The name of an image file (relative to this directory) to place at the top
141 # of the sidebar.
142 #html_logo = None
143
144 # The name of an image file (within the static path) to use as favicon of the
145 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
146 # pixels large.
147 #html_favicon = None
148
149 # Add any paths that contain custom static files (such as style sheets) here,
150 # relative to this directory. They are copied after the builtin static files,
151 # so a file named "default.css" will overwrite the builtin "default.css".
152 # html_static_path = ['_static']
153
154 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
155 # using the given strftime format.
156 #html_last_updated_fmt = '%b %d, %Y'
157
158 # If true, SmartyPants will be used to convert quotes and dashes to
159 # typographically correct entities.
160 #html_use_smartypants = True
161
162 # Custom sidebar templates, maps document names to template names.
163 #html_sidebars = {}
164
165 # Additional templates that should be rendered to pages, maps page names to
166 # template names.
167 #html_additional_pages = {}
168
169 # If false, no module index is generated.
170 #html_domain_indices = True
171
172 # If false, no index is generated.
173 #html_use_index = True
174
175 # If true, the index is split into individual pages for each letter.
176 #html_split_index = False
177
178 # If true, links to the reST sources are added to the pages.
179 #html_show_sourcelink = True
180
181 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
182 #html_show_sphinx = True
183
184 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
185 #html_show_copyright = True
186
187 # If true, an OpenSearch description file will be output, and all pages will
188 # contain a <link> tag referring to it. The value of this option must be the
189 # base URL from which the finished HTML is served.
190 #html_use_opensearch = ''
191
192 # This is the file name suffix for HTML files (e.g. ".xhtml").
193 #html_file_suffix = None
194
195 # Output file base name for HTML help builder.
196 htmlhelp_basename = 'DRMAAPythondoc'
197
198
199 # -- Options for LaTeX output --------------------------------------------------
200
201 latex_elements = {
202 # The paper size ('letterpaper' or 'a4paper').
203 #'papersize': 'letterpaper',
204
205 # The font size ('10pt', '11pt' or '12pt').
206 #'pointsize': '10pt',
207
208 # Additional stuff for the LaTeX preamble.
209 #'preamble': '',
210 }
211
212 # Grouping the document tree into LaTeX files. List of tuples
213 # (source start file, target name, title, author, documentclass [howto/manual]).
214 latex_documents = [
215 ('index', 'DRMAAPython.tex', u'DRMAA Python Documentation',
216 u'Dan Blanchard, David Ressman, Enrico Sirola', 'manual'),
217 ]
218
219 # The name of an image file (relative to this directory) to place at the top of
220 # the title page.
221 #latex_logo = None
222
223 # For "manual" documents, if this is true, then toplevel headings are parts,
224 # not chapters.
225 #latex_use_parts = False
226
227 # If true, show page references after internal links.
228 #latex_show_pagerefs = False
229
230 # If true, show URL addresses after external links.
231 #latex_show_urls = False
232
233 # Documents to append as an appendix to all manuals.
234 #latex_appendices = []
235
236 # If false, no module index is generated.
237 #latex_domain_indices = True
238
239
240 # -- Options for manual page output --------------------------------------------
241
242 # One entry per manual page. List of tuples
243 # (source start file, name, description, authors, manual section).
244 man_pages = [
245 ('index', 'drmaapython', u'DRMAA Python Documentation',
246 [u'Dan Blanchard, David Ressman, Enrico Sirola'], 1)
247 ]
248
249 # If true, show URL addresses after external links.
250 #man_show_urls = False
251
252
253 # -- Options for Texinfo output ------------------------------------------------
254
255 # Grouping the document tree into Texinfo files. List of tuples
256 # (source start file, target name, title, author,
257 # dir menu entry, description, category)
258 texinfo_documents = [
259 ('index', 'DRMAAPython', u'DRMAA Python Documentation',
260 u'Dan Blanchard, David Ressman, Enrico Sirola', 'DRMAAPython', 'One line description of project.',
261 'Miscellaneous'),
262 ]
263
264 # Documents to append as an appendix to all manuals.
265 #texinfo_appendices = []
266
267 # If false, no module index is generated.
268 #texinfo_domain_indices = True
269
270 # How to display URL addresses: 'footnote', 'no', or 'inline'.
271 #texinfo_show_urls = 'footnote'