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