blob: f452e424cfe3c23a94638106a9f0b7701286e77f [file] [log] [blame]
Peter Maydell5329da62019-03-07 14:26:45 +00001# -*- coding: utf-8 -*-
2#
3# QEMU documentation build configuration file, created by
4# sphinx-quickstart on Thu Jan 31 16:40:14 2019.
5#
Peter Maydellf8cf7142019-03-07 14:26:46 +00006# This config file can be used in one of two ways:
7# (1) as a common config file which is included by the conf.py
8# for each of QEMU's manuals: in this case sphinx-build is run multiple
9# times, once per subdirectory.
10# (2) as a top level conf file which will result in building all
11# the manuals into a single document: in this case sphinx-build is
12# run once, on the top-level docs directory.
13#
14# QEMU's makefiles take option (1), which allows us to install
15# only the ones the user cares about (in particular we don't want
16# to ship the 'devel' manual to end-users).
17# Third-party sites such as readthedocs.org will take option (2).
18#
19#
Peter Maydell5329da62019-03-07 14:26:45 +000020# This file is execfile()d with the current directory set to its
21# containing dir.
22#
23# Note that not all possible configuration values are present in this
24# autogenerated file.
25#
26# All configuration values have a default; values that are commented out
27# serve to show the default.
28
Peter Maydellf8cf7142019-03-07 14:26:46 +000029import os
30import sys
31
32# The per-manual conf.py will set qemu_docdir for a single-manual build;
33# otherwise set it here if this is an entire-manual-set build.
34# This is always the absolute path of the docs/ directory in the source tree.
35try:
36 qemu_docdir
37except NameError:
38 qemu_docdir = os.path.abspath(".")
39
Peter Maydell5329da62019-03-07 14:26:45 +000040# If extensions (or modules to document with autodoc) are in another directory,
41# add these directories to sys.path here. If the directory is relative to the
Peter Maydellf8cf7142019-03-07 14:26:46 +000042# documentation root, use an absolute path starting from qemu_docdir.
Peter Maydell5329da62019-03-07 14:26:45 +000043#
Peter Maydellf8cf7142019-03-07 14:26:46 +000044# sys.path.insert(0, os.path.join(qemu_docdir, "my_subdir"))
Peter Maydell5329da62019-03-07 14:26:45 +000045
46
47# -- General configuration ------------------------------------------------
48
49# If your documentation needs a minimal Sphinx version, state it here.
50#
Peter Maydell4fad3862019-03-07 14:26:45 +000051# 1.3 is where the 'alabaster' theme was shipped with Sphinx.
52needs_sphinx = '1.3'
Peter Maydell5329da62019-03-07 14:26:45 +000053
54# Add any Sphinx extension module names here, as strings. They can be
55# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
56# ones.
57extensions = []
58
59# Add any paths that contain templates here, relative to this directory.
60templates_path = ['_templates']
61
62# The suffix(es) of source filenames.
63# You can specify multiple suffix as a list of string:
64#
65# source_suffix = ['.rst', '.md']
66source_suffix = '.rst'
67
68# The master toctree document.
69master_doc = 'index'
70
71# General information about the project.
72project = u'QEMU'
73copyright = u'2019, The QEMU Project Developers'
74author = u'The QEMU Project Developers'
75
76# The version info for the project you're documenting, acts as replacement for
77# |version| and |release|, also used in various other places throughout the
78# built documents.
79#
80# The short X.Y version.
81version = u'4.0'
82# The full version, including alpha/beta/rc tags.
83release = u'4.0'
84
85# The language for content autogenerated by Sphinx. Refer to documentation
86# for a list of supported languages.
87#
88# This is also used if you do content translation via gettext catalogs.
89# Usually you set "language" from the command line for these cases.
90language = None
91
92# List of patterns, relative to source directory, that match files and
93# directories to ignore when looking for source files.
94# This patterns also effect to html_static_path and html_extra_path
95exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
96
97# The name of the Pygments (syntax highlighting) style to use.
98pygments_style = 'sphinx'
99
100# If true, `todo` and `todoList` produce output, else they produce nothing.
101todo_include_todos = False
102
Peter Maydelle250e862019-03-07 14:26:46 +0000103# Sphinx defaults to warning about use of :option: for options not defined
104# with "option::" in the document being processed. Turn that off.
105suppress_warnings = ["ref.option"]
Peter Maydell5329da62019-03-07 14:26:45 +0000106
107# -- Options for HTML output ----------------------------------------------
108
109# The theme to use for HTML and HTML Help pages. See the documentation for
110# a list of builtin themes.
111#
112html_theme = 'alabaster'
113
114# Theme options are theme-specific and customize the look and feel of a theme
115# further. For a list of options available for each theme, see the
116# documentation.
Peter Maydellf8cf7142019-03-07 14:26:46 +0000117# We initialize this to empty here, so the per-manual conf.py can just
118# add individual key/value entries.
119html_theme_options = {
120}
Peter Maydell5329da62019-03-07 14:26:45 +0000121
122# Add any paths that contain custom static files (such as style sheets) here,
123# relative to this directory. They are copied after the builtin static files,
124# so a file named "default.css" will overwrite the builtin "default.css".
Peter Maydell07fd6562019-03-07 14:26:45 +0000125# QEMU doesn't yet have any static files, so comment this out so we don't
126# get a warning about a missing directory.
127# If we do ever add this then it would probably be better to call the
128# subdirectory sphinx_static, as the Linux kernel does.
129# html_static_path = ['_static']
Peter Maydell5329da62019-03-07 14:26:45 +0000130
131# Custom sidebar templates, must be a dictionary that maps document names
132# to template names.
133#
134# This is required for the alabaster theme
135# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
136html_sidebars = {
137 '**': [
Peter Maydell4fad3862019-03-07 14:26:45 +0000138 'about.html',
139 'navigation.html',
Peter Maydell5329da62019-03-07 14:26:45 +0000140 'searchbox.html',
141 ]
142}
143
Peter Maydell479fb8a2019-03-07 14:26:46 +0000144# Don't copy the rST source files to the HTML output directory,
145# and don't put links to the sources into the output HTML.
146html_copy_source = False
Peter Maydell5329da62019-03-07 14:26:45 +0000147
148# -- Options for HTMLHelp output ------------------------------------------
149
150# Output file base name for HTML help builder.
151htmlhelp_basename = 'QEMUdoc'
152
153
154# -- Options for LaTeX output ---------------------------------------------
155
156latex_elements = {
157 # The paper size ('letterpaper' or 'a4paper').
158 #
159 # 'papersize': 'letterpaper',
160
161 # The font size ('10pt', '11pt' or '12pt').
162 #
163 # 'pointsize': '10pt',
164
165 # Additional stuff for the LaTeX preamble.
166 #
167 # 'preamble': '',
168
169 # Latex figure (float) alignment
170 #
171 # 'figure_align': 'htbp',
172}
173
174# Grouping the document tree into LaTeX files. List of tuples
175# (source start file, target name, title,
176# author, documentclass [howto, manual, or own class]).
177latex_documents = [
178 (master_doc, 'QEMU.tex', u'QEMU Documentation',
179 u'The QEMU Project Developers', 'manual'),
180]
181
182
183# -- Options for manual page output ---------------------------------------
184
185# One entry per manual page. List of tuples
186# (source start file, name, description, authors, manual section).
187man_pages = [
188 (master_doc, 'qemu', u'QEMU Documentation',
189 [author], 1)
190]
191
192
193# -- Options for Texinfo output -------------------------------------------
194
195# Grouping the document tree into Texinfo files. List of tuples
196# (source start file, target name, title, author,
197# dir menu entry, description, category)
198texinfo_documents = [
199 (master_doc, 'QEMU', u'QEMU Documentation',
200 author, 'QEMU', 'One line description of project.',
201 'Miscellaneous'),
202]
203
204
205