Merge branch 'fio-c++-engine' of https://github.com/tchaikov/fio
[fio.git] / doc / conf.py
1 # -*- coding: utf-8 -*-
2 #
3 # fio documentation build configuration file, created by
4 # sphinx-quickstart on Mon Nov 14 13:56:30 2016.
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 # If extensions (or modules to document with autodoc) are in another directory,
16 # add these directories to sys.path here. If the directory is relative to the
17 # documentation root, use os.path.abspath to make it absolute, like shown here.
18 #
19 # import os
20 # import sys
21 # sys.path.insert(0, os.path.abspath('.'))
22
23 # -- General configuration ------------------------------------------------
24
25 from __future__ import absolute_import
26 from __future__ import print_function
27
28 # If your documentation needs a minimal Sphinx version, state it here.
29 #
30 # needs_sphinx = '1.0'
31
32 # Add any Sphinx extension module names here, as strings. They can be
33 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34 # ones.
35 extensions = []
36
37 # Add any paths that contain templates here, relative to this directory.
38 templates_path = ['_templates']
39
40 # The suffix(es) of source filenames.
41 # You can specify multiple suffix as a list of string:
42 #
43 # source_suffix = ['.rst', '.md']
44 source_suffix = '.rst'
45
46 # The encoding of source files.
47 #
48 # source_encoding = 'utf-8-sig'
49
50 # The master toctree document.
51 master_doc = 'index'
52
53 # General information about the project.
54 project = 'fio'
55 copyright = '2017, Jens Axboe <axboe@kernel.dk>'
56 author = 'Jens Axboe <axboe@kernel.dk>'
57
58 # The version info for the project you're documenting, acts as replacement for
59 # |version| and |release|, also used in various other places throughout the
60 # built documents.
61 #
62
63 # The short X.Y version.
64 # version = '1'
65 # The full version, including alpha/beta/rc tags.
66 # release = '1'
67
68 def fio_version():
69
70         from os.path import exists, dirname, join
71         wsroot = dirname(dirname(__file__))
72         version_file = join(wsroot, "FIO-VERSION-FILE")
73         if not exists(version_file):
74                 version_gen = join(wsroot, "FIO-VERSION-GEN")
75                 from subprocess import call
76                 rc = call(version_gen, shell=True, cwd=wsroot)
77                 if rc:
78                         print("Couldn't generate version file. rc=%r" % rc)
79                         return "Unknown", "Unknown"
80
81         vsl = open(version_file).read().strip().split('-')
82         version = vsl[1]
83         release = '-'.join(vsl[1:])
84         return version, release
85
86 version, release = fio_version()
87
88 # The language for content autogenerated by Sphinx. Refer to documentation
89 # for a list of supported languages.
90 #
91 # This is also used if you do content translation via gettext catalogs.
92 # Usually you set "language" from the command line for these cases.
93 language = None
94
95 # There are two options for replacing |today|: either, you set today to some
96 # non-false value, then it is used:
97 #
98 # today = ''
99 #
100 # Else, today_fmt is used as the format for a strftime call.
101 #
102 # today_fmt = '%B %d, %Y'
103
104 # List of patterns, relative to source directory, that match files and
105 # directories to ignore when looking for source files.
106 # This patterns also effect to html_static_path and html_extra_path
107 exclude_patterns = ['output', 'Thumbs.db', '.DS_Store', 'fio_examples.rst']
108
109 # The reST default role (used for this markup: `text`) to use for all
110 # documents.
111 #
112 # default_role = None
113
114 # If true, '()' will be appended to :func: etc. cross-reference text.
115 #
116 # add_function_parentheses = True
117
118 # If true, the current module name will be prepended to all description
119 # unit titles (such as .. function::).
120 #
121 # add_module_names = True
122
123 # If true, sectionauthor and moduleauthor directives will be shown in the
124 # output. They are ignored by default.
125 #
126 # show_authors = False
127
128 # The name of the Pygments (syntax highlighting) style to use.
129 pygments_style = 'sphinx'
130
131 # A list of ignored prefixes for module index sorting.
132 # modindex_common_prefix = []
133
134 # If true, keep warnings as "system message" paragraphs in the built documents.
135 # keep_warnings = False
136
137 # If true, `todo` and `todoList` produce output, else they produce nothing.
138 todo_include_todos = False
139
140
141 # -- Options for HTML output ----------------------------------------------
142
143 # The theme to use for HTML and HTML Help pages.  See the documentation for
144 # a list of builtin themes.
145 #
146 html_theme = 'alabaster'
147
148 # Theme options are theme-specific and customize the look and feel of a theme
149 # further.  For a list of options available for each theme, see the
150 # documentation.
151 #
152 # html_theme_options = {}
153
154 # Add any paths that contain custom themes here, relative to this directory.
155 # html_theme_path = []
156
157 # The name for this set of Sphinx documents.
158 # "<project> v<release> documentation" by default.
159 #
160 # html_title = 'fio v1'
161
162 # A shorter title for the navigation bar.  Default is the same as html_title.
163 #
164 # html_short_title = None
165
166 # The name of an image file (relative to this directory) to place at the top
167 # of the sidebar.
168 #
169 # html_logo = None
170
171 # The name of an image file (relative to this directory) to use as a favicon of
172 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
173 # pixels large.
174 #
175 # html_favicon = None
176
177 # Add any paths that contain custom static files (such as style sheets) here,
178 # relative to this directory. They are copied after the builtin static files,
179 # so a file named "default.css" will overwrite the builtin "default.css".
180 html_static_path = ['_static']
181
182 # Add any extra paths that contain custom files (such as robots.txt or
183 # .htaccess) here, relative to this directory. These files are copied
184 # directly to the root of the documentation.
185 #
186 # html_extra_path = []
187
188 # If not None, a 'Last updated on:' timestamp is inserted at every page
189 # bottom, using the given strftime format.
190 # The empty string is equivalent to '%b %d, %Y'.
191 #
192 # html_last_updated_fmt = None
193
194 # If true, SmartyPants will be used to convert quotes and dashes to
195 # typographically correct entities.
196 #
197 # html_use_smartypants = True
198
199 # Custom sidebar templates, maps document names to template names.
200 #
201 # html_sidebars = {}
202
203 # Additional templates that should be rendered to pages, maps page names to
204 # template names.
205 #
206 # html_additional_pages = {}
207
208 # If false, no module index is generated.
209 #
210 # html_domain_indices = True
211
212 # If false, no index is generated.
213 #
214 # html_use_index = True
215
216 # If true, the index is split into individual pages for each letter.
217 #
218 # html_split_index = False
219
220 # If true, links to the reST sources are added to the pages.
221 #
222 # html_show_sourcelink = True
223
224 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
225 #
226 # html_show_sphinx = True
227
228 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
229 #
230 # html_show_copyright = True
231
232 # If true, an OpenSearch description file will be output, and all pages will
233 # contain a <link> tag referring to it.  The value of this option must be the
234 # base URL from which the finished HTML is served.
235 #
236 # html_use_opensearch = ''
237
238 # This is the file name suffix for HTML files (e.g. ".xhtml").
239 # html_file_suffix = None
240
241 # Language to be used for generating the HTML full-text search index.
242 # Sphinx supports the following languages:
243 #   'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
244 #   'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
245 #
246 # html_search_language = 'en'
247
248 # A dictionary with options for the search language support, empty by default.
249 # 'ja' uses this config value.
250 # 'zh' user can custom change `jieba` dictionary path.
251 #
252 # html_search_options = {'type': 'default'}
253
254 # The name of a javascript file (relative to the configuration directory) that
255 # implements a search results scorer. If empty, the default will be used.
256 #
257 # html_search_scorer = 'scorer.js'
258
259 # Output file base name for HTML help builder.
260 htmlhelp_basename = 'fiodoc'
261
262 # -- Options for LaTeX output ---------------------------------------------
263
264 latex_elements = {
265      # The paper size ('letterpaper' or 'a4paper').
266      #
267      # 'papersize': 'letterpaper',
268
269      # The font size ('10pt', '11pt' or '12pt').
270      #
271      # 'pointsize': '10pt',
272
273      # Additional stuff for the LaTeX preamble.
274      #
275      # 'preamble': '',
276
277      # Latex figure (float) alignment
278      #
279      # 'figure_align': 'htbp',
280 }
281
282 # Grouping the document tree into LaTeX files. List of tuples
283 # (source start file, target name, title,
284 #  author, documentclass [howto, manual, or own class]).
285 latex_documents = [
286     (master_doc, 'fio.tex', 'fio Documentation',
287      'a', 'manual'),
288 ]
289
290 # The name of an image file (relative to this directory) to place at the top of
291 # the title page.
292 #
293 # latex_logo = None
294
295 # For "manual" documents, if this is true, then toplevel headings are parts,
296 # not chapters.
297 #
298 # latex_use_parts = False
299
300 # If true, show page references after internal links.
301 #
302 # latex_show_pagerefs = False
303
304 # If true, show URL addresses after external links.
305 #
306 # latex_show_urls = False
307
308 # Documents to append as an appendix to all manuals.
309 #
310 # latex_appendices = []
311
312 # It false, will not define \strong, \code,     itleref, \crossref ... but only
313 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
314 # packages.
315 #
316 # latex_keep_old_macro_names = True
317
318 # If false, no module index is generated.
319 #
320 # latex_domain_indices = True
321
322
323 # -- Options for manual page output ---------------------------------------
324
325 # One entry per manual page. List of tuples
326 # (source start file, name, description, authors, manual section).
327 man_pages = [
328     ('fio_man', 'fio', 'flexible I/O tester',
329      [author], 1)
330 ]
331
332 # If true, show URL addresses after external links.
333 #
334 # man_show_urls = False
335
336
337 # -- Options for Texinfo output -------------------------------------------
338
339 # Grouping the document tree into Texinfo files. List of tuples
340 # (source start file, target name, title, author,
341 #  dir menu entry, description, category)
342 texinfo_documents = [
343     (master_doc, 'fio', 'fio Documentation',
344      author, 'fio', 'One line description of project.',
345      'Miscellaneous'),
346 ]
347
348 # Documents to append as an appendix to all manuals.
349 #
350 # texinfo_appendices = []
351
352 # If false, no module index is generated.
353 #
354 # texinfo_domain_indices = True
355
356 # How to display URL addresses: 'footnote', 'no', or 'inline'.
357 #
358 # texinfo_show_urls = 'footnote'
359
360 # If true, do not generate a @detailmenu in the "Top" node's menu.
361 #
362 # texinfo_no_detailmenu = False