]> git.proxmox.com Git - proxmox-backup.git/blob - docs/conf.py
administration-guide.rst: add section "Proxmox VE integration"
[proxmox-backup.git] / docs / conf.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 #
4 # Proxmox Backup documentation build configuration file, originally
5 # created by sphinx-quickstart on Tue Feb 26 16:54:35 2019.
6 #
7 # This file is execfile()d with the current directory set to its
8 # containing dir.
9 #
10 # Note that not all possible configuration values are present in this
11 # autogenerated file.
12 #
13 # All configuration values have a default; values that are commented out
14 # serve to show the default.
15
16 # If extensions (or modules to document with autodoc) are in another directory,
17 # add these directories to sys.path here. If the directory is relative to the
18 # documentation root, use os.path.abspath to make it absolute, like shown here.
19 #
20 # import os
21 # import sys
22 # sys.path.insert(0, os.path.abspath('.'))
23
24 # -- Implement custom formatter for code-blocks ---------------------------
25 #
26 # * use smaller font
27 # * avoid space between lines to nicely format utf8 tables
28
29 from sphinx.highlighting import PygmentsBridge
30 from pygments.formatters.latex import LatexFormatter
31
32 class CustomLatexFormatter(LatexFormatter):
33 def __init__(self, **options):
34 super(CustomLatexFormatter, self).__init__(**options)
35 self.verboptions = r"formatcom=\footnotesize\relax\let\strut\empty"
36
37 PygmentsBridge.latex_formatter = CustomLatexFormatter
38
39 # -- General configuration ------------------------------------------------
40
41 # If your documentation needs a minimal Sphinx version, state it here.
42 #
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.graphviz", "sphinx.ext.todo"]
49
50 # Add any paths that contain templates here, relative to this directory.
51 templates_path = ['_templates']
52
53 # The suffix(es) of source filenames.
54 # You can specify multiple suffix as a list of string:
55 #
56 # source_suffix = ['.rst', '.md']
57 source_suffix = '.rst'
58
59 # The encoding of source files.
60 #
61 # source_encoding = 'utf-8-sig'
62
63 # The master toctree document.
64 master_doc = 'index'
65
66 epilog_file = open('epilog.rst', 'r')
67 rst_epilog = epilog_file.read()
68
69 # General information about the project.
70 project = 'Proxmox Backup'
71 copyright = '2019, Proxmox Support Team'
72 author = 'Proxmox Support Team'
73
74 # The version info for the project you're documenting, acts as replacement for
75 # |version| and |release|, also used in various other places throughout the
76 # built documents.
77 #
78 # The short X.Y version.
79 version = '1.0'
80 # The full version, including alpha/beta/rc tags.
81 release = '1.0-1'
82
83 # The language for content autogenerated by Sphinx. Refer to documentation
84 # for a list of supported languages.
85 #
86 # This is also used if you do content translation via gettext catalogs.
87 # Usually you set "language" from the command line for these cases.
88 language = None
89
90 # There are two options for replacing |today|: either, you set today to some
91 # non-false value, then it is used:
92 #
93 # today = ''
94 #
95 # Else, today_fmt is used as the format for a strftime call.
96 #
97 # today_fmt = '%B %d, %Y'
98
99 # List of patterns, relative to source directory, that match files and
100 # directories to ignore when looking for source files.
101 # This patterns also effect to html_static_path and html_extra_path
102 exclude_patterns = [
103 '_build', 'Thumbs.db', '.DS_Store',
104 'proxmox-backup-client/man1.rst',
105 'proxmox-backup-manager/man1.rst',
106 'proxmox-backup-proxy/man1.rst',
107 'pxar/man1.rst',
108 'epilog.rst',
109 'pbs-copyright.rst',
110 'sysadmin.rst',
111 'package-repositories.rst',
112 ]
113
114 # The reST default role (used for this markup: `text`) to use for all
115 # documents.
116 #
117 # default_role = None
118
119 # If true, '()' will be appended to :func: etc. cross-reference text.
120 #
121 # add_function_parentheses = True
122
123 # If true, the current module name will be prepended to all description
124 # unit titles (such as .. function::).
125 #
126 # add_module_names = True
127
128 # If true, sectionauthor and moduleauthor directives will be shown in the
129 # output. They are ignored by default.
130 #
131 # show_authors = False
132
133 # The name of the Pygments (syntax highlighting) style to use.
134 pygments_style = 'sphinx'
135
136 # A list of ignored prefixes for module index sorting.
137 # modindex_common_prefix = []
138
139 # If true, keep warnings as "system message" paragraphs in the built documents.
140 # keep_warnings = False
141
142 # If true, `todo` and `todoList` produce output, else they produce nothing.
143 todo_include_todos = True
144
145
146 # -- Options for HTML output ----------------------------------------------
147
148 # The theme to use for HTML and HTML Help pages. See the documentation for
149 # a list of builtin themes.
150 #
151 html_theme = 'sphinxdoc'
152
153 # Theme options are theme-specific and customize the look and feel of a theme
154 # further. For a list of options available for each theme, see the
155 # documentation.
156 #
157 # html_theme_options = {}
158
159 # Add any paths that contain custom themes here, relative to this directory.
160 # html_theme_path = []
161
162 # The name for this set of Sphinx documents.
163 # "<project> v<release> documentation" by default.
164 #
165 # html_title = 'Proxmox Backup v1.0-1'
166
167 # A shorter title for the navigation bar. Default is the same as html_title.
168 #
169 # html_short_title = None
170
171 # The name of an image file (relative to this directory) to place at the top
172 # of the sidebar.
173 #
174 html_logo = 'images/proxmox-logo.svg'
175
176 # The name of an image file (relative to this directory) to use as a favicon of
177 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
178 # pixels large.
179 #
180 html_favicon = 'images/favicon.ico'
181
182 # Add any paths that contain custom static files (such as style sheets) here,
183 # relative to this directory. They are copied after the builtin static files,
184 # so a file named "default.css" will overwrite the builtin "default.css".
185 html_static_path = ['_static']
186
187 # Add any extra paths that contain custom files (such as robots.txt or
188 # .htaccess) here, relative to this directory. These files are copied
189 # directly to the root of the documentation.
190 #
191 # html_extra_path = []
192
193 # If not None, a 'Last updated on:' timestamp is inserted at every page
194 # bottom, using the given strftime format.
195 # The empty string is equivalent to '%b %d, %Y'.
196 #
197 # html_last_updated_fmt = None
198
199 # If true, SmartyPants will be used to convert quotes and dashes to
200 # typographically correct entities.
201 #
202 # html_use_smartypants = True
203
204 # Custom sidebar templates, maps document names to template names.
205 #
206 # html_sidebars = {}
207
208 # Additional templates that should be rendered to pages, maps page names to
209 # template names.
210 #
211 # html_additional_pages = {}
212
213 # If false, no module index is generated.
214 #
215 # html_domain_indices = True
216
217 # If false, no index is generated.
218 #
219 # html_use_index = True
220
221 # If true, the index is split into individual pages for each letter.
222 #
223 # html_split_index = False
224
225 # If true, links to the reST sources are added to the pages.
226 #
227 # html_show_sourcelink = True
228
229 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
230 #
231 # html_show_sphinx = True
232
233 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
234 #
235 # html_show_copyright = True
236
237 # If true, an OpenSearch description file will be output, and all pages will
238 # contain a <link> tag referring to it. The value of this option must be the
239 # base URL from which the finished HTML is served.
240 #
241 # html_use_opensearch = ''
242
243 # This is the file name suffix for HTML files (e.g. ".xhtml").
244 # html_file_suffix = None
245
246 # Language to be used for generating the HTML full-text search index.
247 # Sphinx supports the following languages:
248 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
249 # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
250 #
251 # html_search_language = 'en'
252
253 # A dictionary with options for the search language support, empty by default.
254 # 'ja' uses this config value.
255 # 'zh' user can custom change `jieba` dictionary path.
256 #
257 # html_search_options = {'type': 'default'}
258
259 # The name of a javascript file (relative to the configuration directory) that
260 # implements a search results scorer. If empty, the default will be used.
261 #
262 # html_search_scorer = 'scorer.js'
263
264 # Output file base name for HTML help builder.
265 htmlhelp_basename = 'ProxmoxBackupdoc'
266
267 # -- Options for LaTeX output ---------------------------------------------
268
269 latex_engine = 'xelatex'
270
271 latex_elements = {
272 'fontenc': '\\usepackage{fontspec}',
273
274 # The paper size ('letterpaper' or 'a4paper').
275 #
276 'papersize': 'a4paper',
277
278 # The font size ('10pt', '11pt' or '12pt').
279 #
280 'pointsize': '10pt',
281
282 'fontpkg': r'''
283 \setmainfont{Open Sans}
284 \setsansfont{Lato}
285 \setmonofont{DejaVu Sans Mono}
286 ''',
287
288 # Additional stuff for the LaTeX preamble.
289 #
290 # 'preamble': '',
291
292 # Latex figure (float) alignment
293 #
294 # 'figure_align': 'htbp',
295 }
296
297 # Grouping the document tree into LaTeX files. List of tuples
298 # (source start file, target name, title,
299 # author, documentclass [howto, manual, or own class]).
300 latex_documents = [
301 (master_doc, 'ProxmoxBackup.tex', 'Proxmox Backup Documentation',
302 'Proxmox Support Team', 'manual'),
303 ]
304
305 # The name of an image file (relative to this directory) to place at the top of
306 # the title page.
307 #
308 #
309 # Note: newer sphinx 1.6 should be able to convert .svg to .png
310 # automatically using sphinx.ext.imgconverter
311 latex_logo = "images/proxmox-logo.png"
312
313 # For "manual" documents, if this is true, then toplevel headings are parts,
314 # not chapters.
315 #
316 # latex_use_parts = False
317
318 # If true, show page references after internal links.
319 #
320 # latex_show_pagerefs = False
321
322 # If true, show URL addresses after external links.
323 #
324 # latex_show_urls = False
325
326 # Documents to append as an appendix to all manuals.
327 #
328 # latex_appendices = []
329
330 # It false, will not define \strong, \code, itleref, \crossref ... but only
331 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
332 # packages.
333 #
334 # latex_keep_old_macro_names = True
335
336 # If false, no module index is generated.
337 #
338 # latex_domain_indices = True
339
340
341 # -- Options for Epub output ----------------------------------------------
342
343 # Bibliographic Dublin Core info.
344 epub_title = project
345 epub_author = author
346 epub_publisher = author
347 epub_copyright = copyright
348
349 # The basename for the epub file. It defaults to the project name.
350 # epub_basename = project
351
352 # The HTML theme for the epub output. Since the default themes are not
353 # optimized for small screen space, using the same theme for HTML and epub
354 # output is usually not wise. This defaults to 'epub', a theme designed to save
355 # visual space.
356 #
357 # epub_theme = 'epub'
358
359 # The language of the text. It defaults to the language option
360 # or 'en' if the language is not set.
361 #
362 # epub_language = ''
363
364 # The scheme of the identifier. Typical schemes are ISBN or URL.
365 # epub_scheme = ''
366
367 # The unique identifier of the text. This can be a ISBN number
368 # or the project homepage.
369 #
370 # epub_identifier = ''
371
372 # A unique identification for the text.
373 #
374 # epub_uid = ''
375
376 # A tuple containing the cover image and cover page html template filenames.
377 #
378 # epub_cover = ()
379
380 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
381 #
382 # epub_guide = ()
383
384 # HTML files that should be inserted before the pages created by sphinx.
385 # The format is a list of tuples containing the path and title.
386 #
387 # epub_pre_files = []
388
389 # HTML files that should be inserted after the pages created by sphinx.
390 # The format is a list of tuples containing the path and title.
391 #
392 # epub_post_files = []
393
394 # A list of files that should not be packed into the epub file.
395 epub_exclude_files = ['search.html']
396
397 # The depth of the table of contents in toc.ncx.
398 #
399 # epub_tocdepth = 3
400
401 # Allow duplicate toc entries.
402 #
403 # epub_tocdup = True
404
405 # Choose between 'default' and 'includehidden'.
406 #
407 # epub_tocscope = 'default'
408
409 # Fix unsupported image types using the Pillow.
410 #
411 # epub_fix_images = False
412
413 # Scale large images.
414 #
415 # epub_max_image_width = 0
416
417 # How to display URL addresses: 'footnote', 'no', or 'inline'.
418 #
419 # epub_show_urls = 'inline'
420
421 # If false, no index is generated.
422 #
423 # epub_use_index = True