1e66f31c5Sopenharmony_ci# -*- coding: utf-8 -*-
2e66f31c5Sopenharmony_ci#
3e66f31c5Sopenharmony_ci# libuv documentation documentation build configuration file, created by
4e66f31c5Sopenharmony_ci# sphinx-quickstart on Sun Jul 27 11:47:51 2014.
5e66f31c5Sopenharmony_ci#
6e66f31c5Sopenharmony_ci# This file is execfile()d with the current directory set to its
7e66f31c5Sopenharmony_ci# containing dir.
8e66f31c5Sopenharmony_ci#
9e66f31c5Sopenharmony_ci# Note that not all possible configuration values are present in this
10e66f31c5Sopenharmony_ci# autogenerated file.
11e66f31c5Sopenharmony_ci#
12e66f31c5Sopenharmony_ci# All configuration values have a default; values that are commented out
13e66f31c5Sopenharmony_ci# serve to show the default.
14e66f31c5Sopenharmony_ci
15e66f31c5Sopenharmony_ciimport os
16e66f31c5Sopenharmony_ciimport re
17e66f31c5Sopenharmony_ciimport sys
18e66f31c5Sopenharmony_ci
19e66f31c5Sopenharmony_ci
20e66f31c5Sopenharmony_cidef get_libuv_version():
21e66f31c5Sopenharmony_ci    with open('../../include/uv/version.h') as f:
22e66f31c5Sopenharmony_ci        data = f.read()
23e66f31c5Sopenharmony_ci    try:
24e66f31c5Sopenharmony_ci        m = re.search(r"""^#define UV_VERSION_MAJOR (\d+)$""", data, re.MULTILINE)
25e66f31c5Sopenharmony_ci        major = int(m.group(1))
26e66f31c5Sopenharmony_ci        m = re.search(r"""^#define UV_VERSION_MINOR (\d+)$""", data, re.MULTILINE)
27e66f31c5Sopenharmony_ci        minor = int(m.group(1))
28e66f31c5Sopenharmony_ci        m = re.search(r"""^#define UV_VERSION_PATCH (\d+)$""", data, re.MULTILINE)
29e66f31c5Sopenharmony_ci        patch = int(m.group(1))
30e66f31c5Sopenharmony_ci        m = re.search(r"""^#define UV_VERSION_IS_RELEASE (\d)$""", data, re.MULTILINE)
31e66f31c5Sopenharmony_ci        is_release = int(m.group(1))
32e66f31c5Sopenharmony_ci        m = re.search(r"""^#define UV_VERSION_SUFFIX \"(\w*)\"$""", data, re.MULTILINE)
33e66f31c5Sopenharmony_ci        suffix = m.group(1)
34e66f31c5Sopenharmony_ci        return '%d.%d.%d%s' % (major, minor, patch, '-%s' % suffix if not is_release else '')
35e66f31c5Sopenharmony_ci    except Exception:
36e66f31c5Sopenharmony_ci        return 'unknown'
37e66f31c5Sopenharmony_ci
38e66f31c5Sopenharmony_ci# If extensions (or modules to document with autodoc) are in another directory,
39e66f31c5Sopenharmony_ci# add these directories to sys.path here. If the directory is relative to the
40e66f31c5Sopenharmony_ci# documentation root, use os.path.abspath to make it absolute, like shown here.
41e66f31c5Sopenharmony_cisys.path.insert(0, os.path.abspath('sphinx-plugins'))
42e66f31c5Sopenharmony_ci
43e66f31c5Sopenharmony_ci# -- General configuration ------------------------------------------------
44e66f31c5Sopenharmony_ci
45e66f31c5Sopenharmony_ci# If your documentation needs a minimal Sphinx version, state it here.
46e66f31c5Sopenharmony_ci#needs_sphinx = '1.0'
47e66f31c5Sopenharmony_ci
48e66f31c5Sopenharmony_ci# Add any Sphinx extension module names here, as strings. They can be
49e66f31c5Sopenharmony_ci# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
50e66f31c5Sopenharmony_ci# ones.
51e66f31c5Sopenharmony_ciextensions = ['manpage']
52e66f31c5Sopenharmony_ci
53e66f31c5Sopenharmony_ci# Add any paths that contain templates here, relative to this directory.
54e66f31c5Sopenharmony_citemplates_path = ['templates']
55e66f31c5Sopenharmony_ci
56e66f31c5Sopenharmony_ci# The suffix of source filenames.
57e66f31c5Sopenharmony_cisource_suffix = '.rst'
58e66f31c5Sopenharmony_ci
59e66f31c5Sopenharmony_ci# The encoding of source files.
60e66f31c5Sopenharmony_ci#source_encoding = 'utf-8-sig'
61e66f31c5Sopenharmony_ci
62e66f31c5Sopenharmony_ci# The master toctree document.
63e66f31c5Sopenharmony_cimaster_doc = 'index'
64e66f31c5Sopenharmony_ci
65e66f31c5Sopenharmony_ci# General information about the project.
66e66f31c5Sopenharmony_ciproject = u'libuv API documentation'
67e66f31c5Sopenharmony_cicopyright = u'2014-present, libuv contributors'
68e66f31c5Sopenharmony_ci
69e66f31c5Sopenharmony_ci# The version info for the project you're documenting, acts as replacement for
70e66f31c5Sopenharmony_ci# |version| and |release|, also used in various other places throughout the
71e66f31c5Sopenharmony_ci# built documents.
72e66f31c5Sopenharmony_ci#
73e66f31c5Sopenharmony_ci# The short X.Y version.
74e66f31c5Sopenharmony_civersion = get_libuv_version()
75e66f31c5Sopenharmony_ci# The full version, including alpha/beta/rc tags.
76e66f31c5Sopenharmony_cirelease = version
77e66f31c5Sopenharmony_ci
78e66f31c5Sopenharmony_ci# The language for content autogenerated by Sphinx. Refer to documentation
79e66f31c5Sopenharmony_ci# for a list of supported languages.
80e66f31c5Sopenharmony_ci#language = None
81e66f31c5Sopenharmony_ci
82e66f31c5Sopenharmony_ci# There are two options for replacing |today|: either, you set today to some
83e66f31c5Sopenharmony_ci# non-false value, then it is used:
84e66f31c5Sopenharmony_ci#today = ''
85e66f31c5Sopenharmony_ci# Else, today_fmt is used as the format for a strftime call.
86e66f31c5Sopenharmony_ci#today_fmt = '%B %d, %Y'
87e66f31c5Sopenharmony_ci
88e66f31c5Sopenharmony_ci# List of patterns, relative to source directory, that match files and
89e66f31c5Sopenharmony_ci# directories to ignore when looking for source files.
90e66f31c5Sopenharmony_ciexclude_patterns = []
91e66f31c5Sopenharmony_ci
92e66f31c5Sopenharmony_ci# The reST default role (used for this markup: `text`) to use for all
93e66f31c5Sopenharmony_ci# documents.
94e66f31c5Sopenharmony_ci#default_role = None
95e66f31c5Sopenharmony_ci
96e66f31c5Sopenharmony_ci# If true, '()' will be appended to :func: etc. cross-reference text.
97e66f31c5Sopenharmony_ci#add_function_parentheses = True
98e66f31c5Sopenharmony_ci
99e66f31c5Sopenharmony_ci# If true, the current module name will be prepended to all description
100e66f31c5Sopenharmony_ci# unit titles (such as .. function::).
101e66f31c5Sopenharmony_ci#add_module_names = True
102e66f31c5Sopenharmony_ci
103e66f31c5Sopenharmony_ci# If true, sectionauthor and moduleauthor directives will be shown in the
104e66f31c5Sopenharmony_ci# output. They are ignored by default.
105e66f31c5Sopenharmony_ci#show_authors = False
106e66f31c5Sopenharmony_ci
107e66f31c5Sopenharmony_ci# The name of the Pygments (syntax highlighting) style to use.
108e66f31c5Sopenharmony_cipygments_style = 'sphinx'
109e66f31c5Sopenharmony_ci
110e66f31c5Sopenharmony_ci# A list of ignored prefixes for module index sorting.
111e66f31c5Sopenharmony_ci#modindex_common_prefix = []
112e66f31c5Sopenharmony_ci
113e66f31c5Sopenharmony_ci# If true, keep warnings as "system message" paragraphs in the built documents.
114e66f31c5Sopenharmony_ci#keep_warnings = False
115e66f31c5Sopenharmony_ci
116e66f31c5Sopenharmony_ci
117e66f31c5Sopenharmony_ci# -- Options for HTML output ----------------------------------------------
118e66f31c5Sopenharmony_ci
119e66f31c5Sopenharmony_ci# The theme to use for HTML and HTML Help pages.  See the documentation for
120e66f31c5Sopenharmony_ci# a list of builtin themes.
121e66f31c5Sopenharmony_cihtml_theme = 'furo'
122e66f31c5Sopenharmony_ci
123e66f31c5Sopenharmony_ci# Theme options are theme-specific and customize the look and feel of a theme
124e66f31c5Sopenharmony_ci# further.  For a list of options available for each theme, see the
125e66f31c5Sopenharmony_ci# documentation.
126e66f31c5Sopenharmony_ci#html_theme_options = {}
127e66f31c5Sopenharmony_ci
128e66f31c5Sopenharmony_ci# Add any paths that contain custom themes here, relative to this directory.
129e66f31c5Sopenharmony_ci#html_theme_path = []
130e66f31c5Sopenharmony_ci
131e66f31c5Sopenharmony_ci# The name for this set of Sphinx documents.  If None, it defaults to
132e66f31c5Sopenharmony_ci# "<project> v<release> documentation".
133e66f31c5Sopenharmony_cihtml_title = 'libuv documentation'
134e66f31c5Sopenharmony_ci
135e66f31c5Sopenharmony_ci# A shorter title for the navigation bar.  Default is the same as html_title.
136e66f31c5Sopenharmony_cihtml_short_title = 'libuv %s documentation' % version
137e66f31c5Sopenharmony_ci
138e66f31c5Sopenharmony_ci# The name of an image file (relative to this directory) to place at the top
139e66f31c5Sopenharmony_ci# of the sidebar.
140e66f31c5Sopenharmony_cihtml_logo = 'static/logo.png'
141e66f31c5Sopenharmony_ci
142e66f31c5Sopenharmony_ci# The name of an image file (within the static path) to use as favicon of the
143e66f31c5Sopenharmony_ci# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
144e66f31c5Sopenharmony_ci# pixels large.
145e66f31c5Sopenharmony_cihtml_favicon = 'static/favicon.ico'
146e66f31c5Sopenharmony_ci
147e66f31c5Sopenharmony_ci# Add any paths that contain custom static files (such as style sheets) here,
148e66f31c5Sopenharmony_ci# relative to this directory. They are copied after the builtin static files,
149e66f31c5Sopenharmony_ci# so a file named "default.css" will overwrite the builtin "default.css".
150e66f31c5Sopenharmony_cihtml_static_path = ['static']
151e66f31c5Sopenharmony_ci
152e66f31c5Sopenharmony_ci# Add any extra paths that contain custom files (such as robots.txt or
153e66f31c5Sopenharmony_ci# .htaccess) here, relative to this directory. These files are copied
154e66f31c5Sopenharmony_ci# directly to the root of the documentation.
155e66f31c5Sopenharmony_ci#html_extra_path = []
156e66f31c5Sopenharmony_ci
157e66f31c5Sopenharmony_ci# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158e66f31c5Sopenharmony_ci# using the given strftime format.
159e66f31c5Sopenharmony_ci#html_last_updated_fmt = '%b %d, %Y'
160e66f31c5Sopenharmony_ci
161e66f31c5Sopenharmony_ci# If true, SmartyPants will be used to convert quotes and dashes to
162e66f31c5Sopenharmony_ci# typographically correct entities.
163e66f31c5Sopenharmony_ci#html_use_smartypants = True
164e66f31c5Sopenharmony_ci
165e66f31c5Sopenharmony_ci# Custom sidebar templates, maps document names to template names.
166e66f31c5Sopenharmony_ci#html_sidebars = {}
167e66f31c5Sopenharmony_ci
168e66f31c5Sopenharmony_ci# Additional templates that should be rendered to pages, maps page names to
169e66f31c5Sopenharmony_ci# template names.
170e66f31c5Sopenharmony_ci#html_additional_pages = {}
171e66f31c5Sopenharmony_ci
172e66f31c5Sopenharmony_ci# If false, no module index is generated.
173e66f31c5Sopenharmony_ci#html_domain_indices = True
174e66f31c5Sopenharmony_ci
175e66f31c5Sopenharmony_ci# If false, no index is generated.
176e66f31c5Sopenharmony_ci#html_use_index = True
177e66f31c5Sopenharmony_ci
178e66f31c5Sopenharmony_ci# If true, the index is split into individual pages for each letter.
179e66f31c5Sopenharmony_ci#html_split_index = False
180e66f31c5Sopenharmony_ci
181e66f31c5Sopenharmony_ci# If true, links to the reST sources are added to the pages.
182e66f31c5Sopenharmony_ci#html_show_sourcelink = True
183e66f31c5Sopenharmony_ci
184e66f31c5Sopenharmony_ci# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
185e66f31c5Sopenharmony_ci#html_show_sphinx = True
186e66f31c5Sopenharmony_ci
187e66f31c5Sopenharmony_ci# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
188e66f31c5Sopenharmony_ci#html_show_copyright = True
189e66f31c5Sopenharmony_ci
190e66f31c5Sopenharmony_ci# If true, an OpenSearch description file will be output, and all pages will
191e66f31c5Sopenharmony_ci# contain a <link> tag referring to it.  The value of this option must be the
192e66f31c5Sopenharmony_ci# base URL from which the finished HTML is served.
193e66f31c5Sopenharmony_ci#html_use_opensearch = ''
194e66f31c5Sopenharmony_ci
195e66f31c5Sopenharmony_ci# This is the file name suffix for HTML files (e.g. ".xhtml").
196e66f31c5Sopenharmony_ci#html_file_suffix = None
197e66f31c5Sopenharmony_ci
198e66f31c5Sopenharmony_ci# Output file base name for HTML help builder.
199e66f31c5Sopenharmony_cihtmlhelp_basename = 'libuv'
200e66f31c5Sopenharmony_ci
201e66f31c5Sopenharmony_ci
202e66f31c5Sopenharmony_ci# -- Options for LaTeX output ---------------------------------------------
203e66f31c5Sopenharmony_ci
204e66f31c5Sopenharmony_cilatex_elements = {
205e66f31c5Sopenharmony_ci# The paper size ('letterpaper' or 'a4paper').
206e66f31c5Sopenharmony_ci#'papersize': 'letterpaper',
207e66f31c5Sopenharmony_ci
208e66f31c5Sopenharmony_ci# The font size ('10pt', '11pt' or '12pt').
209e66f31c5Sopenharmony_ci#'pointsize': '10pt',
210e66f31c5Sopenharmony_ci
211e66f31c5Sopenharmony_ci# Additional stuff for the LaTeX preamble.
212e66f31c5Sopenharmony_ci#'preamble': '',
213e66f31c5Sopenharmony_ci}
214e66f31c5Sopenharmony_ci
215e66f31c5Sopenharmony_ci# Grouping the document tree into LaTeX files. List of tuples
216e66f31c5Sopenharmony_ci# (source start file, target name, title,
217e66f31c5Sopenharmony_ci#  author, documentclass [howto, manual, or own class]).
218e66f31c5Sopenharmony_cilatex_documents = [
219e66f31c5Sopenharmony_ci  ('index', 'libuv.tex', u'libuv documentation',
220e66f31c5Sopenharmony_ci   u'libuv contributors', 'manual'),
221e66f31c5Sopenharmony_ci]
222e66f31c5Sopenharmony_ci
223e66f31c5Sopenharmony_ci# The name of an image file (relative to this directory) to place at the top of
224e66f31c5Sopenharmony_ci# the title page.
225e66f31c5Sopenharmony_ci#latex_logo = None
226e66f31c5Sopenharmony_ci
227e66f31c5Sopenharmony_ci# For "manual" documents, if this is true, then toplevel headings are parts,
228e66f31c5Sopenharmony_ci# not chapters.
229e66f31c5Sopenharmony_ci#latex_use_parts = False
230e66f31c5Sopenharmony_ci
231e66f31c5Sopenharmony_ci# If true, show page references after internal links.
232e66f31c5Sopenharmony_ci#latex_show_pagerefs = False
233e66f31c5Sopenharmony_ci
234e66f31c5Sopenharmony_ci# If true, show URL addresses after external links.
235e66f31c5Sopenharmony_ci#latex_show_urls = False
236e66f31c5Sopenharmony_ci
237e66f31c5Sopenharmony_ci# Documents to append as an appendix to all manuals.
238e66f31c5Sopenharmony_ci#latex_appendices = []
239e66f31c5Sopenharmony_ci
240e66f31c5Sopenharmony_ci# If false, no module index is generated.
241e66f31c5Sopenharmony_ci#latex_domain_indices = True
242e66f31c5Sopenharmony_ci
243e66f31c5Sopenharmony_ci
244e66f31c5Sopenharmony_ci# -- Options for manual page output ---------------------------------------
245e66f31c5Sopenharmony_ci
246e66f31c5Sopenharmony_ci# One entry per manual page. List of tuples
247e66f31c5Sopenharmony_ci# (source start file, name, description, authors, manual section).
248e66f31c5Sopenharmony_ciman_pages = [
249e66f31c5Sopenharmony_ci    ('index', 'libuv', u'libuv documentation',
250e66f31c5Sopenharmony_ci     [u'libuv contributors'], 1)
251e66f31c5Sopenharmony_ci]
252e66f31c5Sopenharmony_ci
253e66f31c5Sopenharmony_ci# If true, show URL addresses after external links.
254e66f31c5Sopenharmony_ci#man_show_urls = False
255e66f31c5Sopenharmony_ci
256e66f31c5Sopenharmony_ci
257e66f31c5Sopenharmony_ci# -- Options for Texinfo output -------------------------------------------
258e66f31c5Sopenharmony_ci
259e66f31c5Sopenharmony_ci# Grouping the document tree into Texinfo files. List of tuples
260e66f31c5Sopenharmony_ci# (source start file, target name, title, author,
261e66f31c5Sopenharmony_ci#  dir menu entry, description, category)
262e66f31c5Sopenharmony_citexinfo_documents = [
263e66f31c5Sopenharmony_ci  ('index', 'libuv', u'libuv documentation',
264e66f31c5Sopenharmony_ci   u'libuv contributors', 'libuv', 'Cross-platform asynchronous I/O',
265e66f31c5Sopenharmony_ci   'Miscellaneous'),
266e66f31c5Sopenharmony_ci]
267e66f31c5Sopenharmony_ci
268e66f31c5Sopenharmony_ci# Documents to append as an appendix to all manuals.
269e66f31c5Sopenharmony_ci#texinfo_appendices = []
270e66f31c5Sopenharmony_ci
271e66f31c5Sopenharmony_ci# If false, no module index is generated.
272e66f31c5Sopenharmony_ci#texinfo_domain_indices = True
273e66f31c5Sopenharmony_ci
274e66f31c5Sopenharmony_ci# How to display URL addresses: 'footnote', 'no', or 'inline'.
275e66f31c5Sopenharmony_ci#texinfo_show_urls = 'footnote'
276e66f31c5Sopenharmony_ci
277e66f31c5Sopenharmony_ci# If true, do not generate a @detailmenu in the "Top" node's menu.
278e66f31c5Sopenharmony_ci#texinfo_no_detailmenu = False
279e66f31c5Sopenharmony_ci
280e66f31c5Sopenharmony_ci
281e66f31c5Sopenharmony_ci# -- Options for Epub output ----------------------------------------------
282e66f31c5Sopenharmony_ci
283e66f31c5Sopenharmony_ci# Bibliographic Dublin Core info.
284e66f31c5Sopenharmony_ciepub_title = u'libuv documentation'
285e66f31c5Sopenharmony_ciepub_author = u'libuv contributors'
286e66f31c5Sopenharmony_ciepub_publisher = u'libuv contributors'
287e66f31c5Sopenharmony_ciepub_copyright = u'2014-present, libuv contributors'
288e66f31c5Sopenharmony_ci
289e66f31c5Sopenharmony_ci# The basename for the epub file. It defaults to the project name.
290e66f31c5Sopenharmony_ciepub_basename = u'libuv'
291e66f31c5Sopenharmony_ci
292e66f31c5Sopenharmony_ci# The HTML theme for the epub output. Since the default themes are not optimized
293e66f31c5Sopenharmony_ci# for small screen space, using the same theme for HTML and epub output is
294e66f31c5Sopenharmony_ci# usually not wise. This defaults to 'epub', a theme designed to save visual
295e66f31c5Sopenharmony_ci# space.
296e66f31c5Sopenharmony_ci#epub_theme = 'epub'
297e66f31c5Sopenharmony_ci
298e66f31c5Sopenharmony_ci# The language of the text. It defaults to the language option
299e66f31c5Sopenharmony_ci# or en if the language is not set.
300e66f31c5Sopenharmony_ci#epub_language = ''
301e66f31c5Sopenharmony_ci
302e66f31c5Sopenharmony_ci# The scheme of the identifier. Typical schemes are ISBN or URL.
303e66f31c5Sopenharmony_ci#epub_scheme = ''
304e66f31c5Sopenharmony_ci
305e66f31c5Sopenharmony_ci# The unique identifier of the text. This can be a ISBN number
306e66f31c5Sopenharmony_ci# or the project homepage.
307e66f31c5Sopenharmony_ci#epub_identifier = ''
308e66f31c5Sopenharmony_ci
309e66f31c5Sopenharmony_ci# A unique identification for the text.
310e66f31c5Sopenharmony_ci#epub_uid = ''
311e66f31c5Sopenharmony_ci
312e66f31c5Sopenharmony_ci# A tuple containing the cover image and cover page html template filenames.
313e66f31c5Sopenharmony_ci#epub_cover = ()
314e66f31c5Sopenharmony_ci
315e66f31c5Sopenharmony_ci# A sequence of (type, uri, title) tuples for the guide element of content.opf.
316e66f31c5Sopenharmony_ci#epub_guide = ()
317e66f31c5Sopenharmony_ci
318e66f31c5Sopenharmony_ci# HTML files that should be inserted before the pages created by sphinx.
319e66f31c5Sopenharmony_ci# The format is a list of tuples containing the path and title.
320e66f31c5Sopenharmony_ci#epub_pre_files = []
321e66f31c5Sopenharmony_ci
322e66f31c5Sopenharmony_ci# HTML files shat should be inserted after the pages created by sphinx.
323e66f31c5Sopenharmony_ci# The format is a list of tuples containing the path and title.
324e66f31c5Sopenharmony_ci#epub_post_files = []
325e66f31c5Sopenharmony_ci
326e66f31c5Sopenharmony_ci# A list of files that should not be packed into the epub file.
327e66f31c5Sopenharmony_ciepub_exclude_files = ['search.html']
328e66f31c5Sopenharmony_ci
329e66f31c5Sopenharmony_ci# The depth of the table of contents in toc.ncx.
330e66f31c5Sopenharmony_ci#epub_tocdepth = 3
331e66f31c5Sopenharmony_ci
332e66f31c5Sopenharmony_ci# Allow duplicate toc entries.
333e66f31c5Sopenharmony_ci#epub_tocdup = True
334e66f31c5Sopenharmony_ci
335e66f31c5Sopenharmony_ci# Choose between 'default' and 'includehidden'.
336e66f31c5Sopenharmony_ci#epub_tocscope = 'default'
337e66f31c5Sopenharmony_ci
338e66f31c5Sopenharmony_ci# Fix unsupported image types using the PIL.
339e66f31c5Sopenharmony_ci#epub_fix_images = False
340e66f31c5Sopenharmony_ci
341e66f31c5Sopenharmony_ci# Scale large images.
342e66f31c5Sopenharmony_ci#epub_max_image_width = 0
343e66f31c5Sopenharmony_ci
344e66f31c5Sopenharmony_ci# How to display URL addresses: 'footnote', 'no', or 'inline'.
345e66f31c5Sopenharmony_ci#epub_show_urls = 'inline'
346e66f31c5Sopenharmony_ci
347e66f31c5Sopenharmony_ci# If false, no index is generated.
348e66f31c5Sopenharmony_ci#epub_use_index = True
349