Debian Codegraph @

docs/conf.py

raw ◀ ▶
2 Debian patches touch this file
1 # -*- coding: utf-8 -*-
2 #
3 # BioMAJ documentation build configuration file, created by
4 # sphinx-quickstart on Mon Oct 27 08:26:18 2014.
5 #
6 # This file is execfile()d with the current directory set to its
7 # containing dir.
8 #
9 # Note that not all possible configuration values are present in this
10 # autogenerated file.
11 #
12 # All configuration values have a default; values that are commented out
13 # serve to show the default.
14
15 import sys
16 import os
17
•18 from unittest.mock import Mock as MagicMock
19
20 class Mock(MagicMock):
21 @classmethod
22 def __getattr__(cls, name):
23 return Mock()
24
•25 MOCK_MODULES = ['pycurl', 'pymongo', 'elasticsearch', 'influxdb',
26 'biomaj_download',
27 'biomaj_download.downloadclient',
28 'biomaj_download.download',
29 'biomaj_download.download.localcopy',
30 'biomaj_download.download.http',
31 'biomaj_download.download.http.HTTPParse',
32 'biomaj_download.message']
33 sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
34
35 # If extensions (or modules to document with autodoc) are in another directory,
36 # add these directories to sys.path here. If the directory is relative to the
37 # documentation root, use os.path.abspath to make it absolute, like shown here.
38 sys.path.insert(0, os.path.abspath('../'))
39
40 # -- General configuration ------------------------------------------------
41
42 # If your documentation needs a minimal Sphinx version, state it here.
43 #needs_sphinx = '1.0'
44
45 # Add any Sphinx extension module names here, as strings. They can be
46 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
47 # ones.
48 extensions = ['sphinx.ext.autodoc',
49 'sphinx.ext.doctest',
50 'sphinx.ext.intersphinx',
51 'sphinx.ext.todo',
52 'sphinx.ext.coverage',
53 'sphinx.ext.ifconfig',
54 'sphinx.ext.viewcode',
55 'sphinx.ext.graphviz'
56 ]
57
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'BioMAJ'
73 copyright = u'2014, Olivier Sallou'
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 = '3.0'
81 # The full version, including alpha/beta/rc tags.
82 release = '3.0'
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
99 # documents.
100 #default_role = None
101
102 # If true, '()' will be appended to :func: etc. cross-reference text.
103 #add_function_parentheses = True
104
105 # If true, the current module name will be prepended to all description
106 # unit titles (such as .. function::).
107 #add_module_names = True
108
109 # If true, sectionauthor and moduleauthor directives will be shown in the
110 # output. They are ignored by default.
111 #show_authors = False
112
113 # The name of the Pygments (syntax highlighting) style to use.
114 pygments_style = 'sphinx'
115
116 # A list of ignored prefixes for module index sorting.
117 #modindex_common_prefix = []
118
119 # If true, keep warnings as "system message" paragraphs in the built documents.
120 #keep_warnings = False
121
122
123 # -- Options for HTML output ----------------------------------------------
124
125 # The theme to use for HTML and HTML Help pages. See the documentation for
126 # a list of builtin themes.
127 html_theme = 'default'
128
129 # Theme options are theme-specific and customize the look and feel of a theme
130 # further. For a list of options available for each theme, see the
131 # documentation.
132 #html_theme_options = {}
133
134 # Add any paths that contain custom themes here, relative to this directory.
135 #html_theme_path = []
136
137 # The name for this set of Sphinx documents. If None, it defaults to
138 # "<project> v<release> documentation".
139 #html_title = None
140
141 # A shorter title for the navigation bar. Default is the same as html_title.
142 #html_short_title = None
143
144 # The name of an image file (relative to this directory) to place at the top
145 # of the sidebar.
146 #html_logo = None
147
148 # The name of an image file (within the static path) to use as favicon of the
149 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
150 # pixels large.
151 #html_favicon = None
152
153 # Add any paths that contain custom static files (such as style sheets) here,
154 # relative to this directory. They are copied after the builtin static files,
155 # so a file named "default.css" will overwrite the builtin "default.css".
156 html_static_path = ['_static']
157
158 # Add any extra paths that contain custom files (such as robots.txt or
159 # .htaccess) here, relative to this directory. These files are copied
160 # directly to the root of the documentation.
161 #html_extra_path = []
162
163 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
164 # using the given strftime format.
165 #html_last_updated_fmt = '%b %d, %Y'
166
167 # If true, SmartyPants will be used to convert quotes and dashes to
168 # typographically correct entities.
169 #html_use_smartypants = True
170
171 # Custom sidebar templates, maps document names to template names.
172 #html_sidebars = {}
173
174 # Additional templates that should be rendered to pages, maps page names to
175 # template names.
176 #html_additional_pages = {}
177
178 # If false, no module index is generated.
179 #html_domain_indices = True
180
181 # If false, no index is generated.
182 #html_use_index = True
183
184 # If true, the index is split into individual pages for each letter.
185 #html_split_index = False
186
187 # If true, links to the reST sources are added to the pages.
188 #html_show_sourcelink = True
189
190 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
191 #html_show_sphinx = True
192
193 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
194 #html_show_copyright = True
195
196 # If true, an OpenSearch description file will be output, and all pages will
197 # contain a <link> tag referring to it. The value of this option must be the
198 # base URL from which the finished HTML is served.
199 #html_use_opensearch = ''
200
201 # This is the file name suffix for HTML files (e.g. ".xhtml").
202 #html_file_suffix = None
203
204 # Output file base name for HTML help builder.
205 htmlhelp_basename = 'BioMAJdoc'
206
207
208 # -- Options for LaTeX output ---------------------------------------------
209
210 latex_elements = {
211 # The paper size ('letterpaper' or 'a4paper').
212 #'papersize': 'letterpaper',
213
214 # The font size ('10pt', '11pt' or '12pt').
215 #'pointsize': '10pt',
216
217 # Additional stuff for the LaTeX preamble.
218 #'preamble': '',
219 }
220
221 # Grouping the document tree into LaTeX files. List of tuples
222 # (source start file, target name, title,
223 # author, documentclass [howto, manual, or own class]).
224 latex_documents = [
225 ('index', 'BioMAJ.tex', u'BioMAJ Documentation',
226 u'Olivier Sallou', 'manual'),
227 ]
228
229 # The name of an image file (relative to this directory) to place at the top of
230 # the title page.
231 #latex_logo = None
232
233 # For "manual" documents, if this is true, then toplevel headings are parts,
234 # not chapters.
235 #latex_use_parts = False
236
237 # If true, show page references after internal links.
238 #latex_show_pagerefs = False
239
240 # If true, show URL addresses after external links.
241 #latex_show_urls = False
242
243 # Documents to append as an appendix to all manuals.
244 #latex_appendices = []
245
246 # If false, no module index is generated.
247 #latex_domain_indices = True
248
249
250 # -- Options for manual page output ---------------------------------------
251
252 # One entry per manual page. List of tuples
253 # (source start file, name, description, authors, manual section).
254 man_pages = [
255 ('index', 'biomaj', u'BioMAJ Documentation',
256 [u'Olivier Sallou'], 1)
257 ]
258
259 # If true, show URL addresses after external links.
260 #man_show_urls = False
261
262
263 # -- Options for Texinfo output -------------------------------------------
264
265 # Grouping the document tree into Texinfo files. List of tuples
266 # (source start file, target name, title, author,
267 # dir menu entry, description, category)
268 texinfo_documents = [
269 ('index', 'BioMAJ', u'BioMAJ Documentation',
270 u'Olivier Sallou', 'BioMAJ', 'Biological databanks update.',
271 'Miscellaneous'),
272 ]
273
274 # Documents to append as an appendix to all manuals.
275 #texinfo_appendices = []
276
277 # If false, no module index is generated.
278 #texinfo_domain_indices = True
279
280 # How to display URL addresses: 'footnote', 'no', or 'inline'.
281 #texinfo_show_urls = 'footnote'
282
283 # If true, do not generate a @detailmenu in the "Top" node's menu.
284 #texinfo_no_detailmenu = False