]>
git.proxmox.com Git - proxmox-backup.git/blob - docs/conf.py
6ba3f4b18eb9af8bcbe862b18e0f7da145f50f63
2 # -*- coding: utf-8 -*-
4 # Proxmox Backup documentation build configuration file, originally
5 # created by sphinx-quickstart on Tue Feb 26 16:54:35 2019.
7 # This file is execfile()d with the current directory set to its
10 # Note that not all possible configuration values are present in this
13 # All configuration values have a default; values that are commented out
14 # serve to show the default.
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.
22 # sys.path.insert(0, os.path.abspath('.'))
25 sys
.path
.append(os
.path
.abspath("./_ext"))
27 # -- Implement custom formatter for code-blocks ---------------------------
30 # * avoid space between lines to nicely format utf8 tables
32 from sphinx
.highlighting
import PygmentsBridge
33 from pygments
.formatters
.latex
import LatexFormatter
35 class CustomLatexFormatter(LatexFormatter
):
36 def __init__(self
, **options
):
37 super(CustomLatexFormatter
, self
).__init
__(**options
)
38 self
.verboptions
= r
"formatcom=\footnotesize\relax\let\strut\empty"
40 PygmentsBridge
.latex_formatter
= CustomLatexFormatter
42 # -- General configuration ------------------------------------------------
44 # If your documentation needs a minimal Sphinx version, state it here.
46 # needs_sphinx = '1.0'
48 # Add any Sphinx extension module names here, as strings. They can be
49 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
52 extensions
= ["sphinx.ext.graphviz", "sphinx.ext.todo", "proxmox-scanrefs"]
56 # Add any paths that contain templates here, relative to this directory.
57 templates_path
= ['_templates']
59 # The suffix(es) of source filenames.
60 # You can specify multiple suffix as a list of string:
62 # source_suffix = ['.rst', '.md']
63 source_suffix
= '.rst'
65 # The encoding of source files.
67 # source_encoding = 'utf-8-sig'
69 # The master toctree document.
72 epilog_file
= open('epilog.rst', 'r')
73 rst_epilog
= epilog_file
.read()
75 # General information about the project.
76 project
= 'Proxmox Backup'
77 copyright
= '2019-2020, Proxmox Server Solutions GmbH'
78 author
= 'Proxmox Support Team'
80 # The version info for the project you're documenting, acts as replacement for
81 # |version| and |release|, also used in various other places throughout the
84 # The short X.Y version.
85 vstr
= lambda s
: '<devbuild>' if s
is None else str(s
)
87 version
= vstr(os
.getenv('DEB_VERSION_UPSTREAM'))
88 # The full version, including alpha/beta/rc tags.
89 release
= vstr(os
.getenv('DEB_VERSION'))
91 # The language for content autogenerated by Sphinx. Refer to documentation
92 # for a list of supported languages.
94 # This is also used if you do content translation via gettext catalogs.
95 # Usually you set "language" from the command line for these cases.
98 # There are two options for replacing |today|: either, you set today to some
99 # non-false value, then it is used:
103 # Else, today_fmt is used as the format for a strftime call.
105 # today_fmt = '%B %d, %Y'
107 # List of patterns, relative to source directory, that match files and
108 # directories to ignore when looking for source files.
109 # This patterns also effect to html_static_path and html_extra_path
111 '_build', 'Thumbs.db', '.DS_Store',
112 'proxmox-backup-client/man1.rst',
113 'proxmox-backup-manager/man1.rst',
114 'proxmox-backup-proxy/man1.rst',
119 'package-repositories.rst',
122 # The reST default role (used for this markup: `text`) to use for all
125 # default_role = None
127 # If true, '()' will be appended to :func: etc. cross-reference text.
129 # add_function_parentheses = True
131 # If true, the current module name will be prepended to all description
132 # unit titles (such as .. function::).
134 # add_module_names = True
136 # If true, sectionauthor and moduleauthor directives will be shown in the
137 # output. They are ignored by default.
139 # show_authors = False
141 # The name of the Pygments (syntax highlighting) style to use.
142 pygments_style
= 'sphinx'
144 # A list of ignored prefixes for module index sorting.
145 # modindex_common_prefix = []
147 # If true, keep warnings as "system message" paragraphs in the built documents.
148 # keep_warnings = False
150 # If true, `todo` and `todoList` produce output, else they produce nothing.
151 todo_include_todos
= True
154 # -- Options for HTML output ----------------------------------------------
156 # The theme to use for HTML and HTML Help pages. See the documentation for
157 # a list of builtin themes.
159 html_theme
= 'alabaster'
161 # Theme options are theme-specific and customize the look and feel of a theme
162 # further. For a list of options available for each theme, see the
165 html_theme_options
= {
166 'fixed_sidebar': True,
167 #'sidebar_includehidden': False,
168 'sidebar_collapse': False, # FIXME: documented, but does not works?!
169 'show_relbar_bottom': True, # FIXME: documented, but does not works?!
170 'show_powered_by': False,
172 'logo': 'proxmox-logo.svg',
173 'logo_name': True, # show project name below logo
174 #'logo_text_align': 'center',
175 #'description': 'Fast, Secure & Efficient.',
177 'sidebar_width': '300px',
178 'page_width': '1280px',
180 'head_font_family': 'Lato, sans-serif',
181 'caption_font_family': 'Lato, sans-serif',
182 'caption_font_size': '20px',
183 'font_family': 'Open Sans, sans-serif',
186 # Add any paths that contain custom themes here, relative to this directory.
187 # html_theme_path = []
189 # The name for this set of Sphinx documents.
190 # "<project> v<release> documentation" by default.
192 # html_title = 'Proxmox Backup v1.0-1'
194 # A shorter title for the navigation bar. Default is the same as html_title.
196 # html_short_title = None
198 # The name of an image file (relative to this directory) to place at the top
201 #html_logo = 'images/proxmox-logo.svg' # replaced by html_theme_options.logo
203 # The name of an image file (relative to this directory) to use as a favicon of
204 # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
207 html_favicon
= 'images/favicon.ico'
209 # Add any paths that contain custom static files (such as style sheets) here,
210 # relative to this directory. They are copied after the builtin static files,
211 # so a file named "default.css" will overwrite the builtin "default.css".
212 html_static_path
= ['_static']
214 # Add any extra paths that contain custom files (such as robots.txt or
215 # .htaccess) here, relative to this directory. These files are copied
216 # directly to the root of the documentation.
218 # html_extra_path = []
220 # If not None, a 'Last updated on:' timestamp is inserted at every page
221 # bottom, using the given strftime format.
222 # The empty string is equivalent to '%b %d, %Y'.
224 # html_last_updated_fmt = None
226 # If true, SmartyPants will be used to convert quotes and dashes to
227 # typographically correct entities.
229 # html_use_smartypants = True
231 # Custom sidebar templates, maps document names to template names.
235 # Additional templates that should be rendered to pages, maps page names to
238 # html_additional_pages = {}
240 # If false, no module index is generated.
242 # html_domain_indices = True
244 # If false, no index is generated.
246 # html_use_index = True
248 # If true, the index is split into individual pages for each letter.
250 # html_split_index = False
252 # If true, links to the reST sources are added to the pages.
254 html_show_sourcelink
= False
256 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
258 # html_show_sphinx = True
260 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
262 # html_show_copyright = True
264 # If true, an OpenSearch description file will be output, and all pages will
265 # contain a <link> tag referring to it. The value of this option must be the
266 # base URL from which the finished HTML is served.
268 # html_use_opensearch = ''
270 # This is the file name suffix for HTML files (e.g. ".xhtml").
271 # html_file_suffix = None
273 # Language to be used for generating the HTML full-text search index.
274 # Sphinx supports the following languages:
275 # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
276 # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
278 # html_search_language = 'en'
280 # A dictionary with options for the search language support, empty by default.
281 # 'ja' uses this config value.
282 # 'zh' user can custom change `jieba` dictionary path.
284 # html_search_options = {'type': 'default'}
286 # The name of a javascript file (relative to the configuration directory) that
287 # implements a search results scorer. If empty, the default will be used.
289 # html_search_scorer = 'scorer.js'
291 # Output file base name for HTML help builder.
292 htmlhelp_basename
= 'ProxmoxBackupdoc'
294 # -- Options for LaTeX output ---------------------------------------------
296 latex_engine
= 'xelatex'
299 'fontenc': '\\usepackage{fontspec}',
301 # The paper size ('letterpaper' or 'a4paper').
303 'papersize': 'a4paper',
305 # The font size ('10pt', '11pt' or '12pt').
310 \setmainfont{Open Sans}
312 \setmonofont{DejaVu Sans Mono}
315 # Additional stuff for the LaTeX preamble.
319 # Latex figure (float) alignment
321 # 'figure_align': 'htbp',
324 # Grouping the document tree into LaTeX files. List of tuples
325 # (source start file, target name, title,
326 # author, documentclass [howto, manual, or own class]).
328 (master_doc
, 'ProxmoxBackup.tex', 'Proxmox Backup Documentation',
329 'Proxmox Support Team', 'manual'),
332 # The name of an image file (relative to this directory) to place at the top of
336 # Note: newer sphinx 1.6 should be able to convert .svg to .png
337 # automatically using sphinx.ext.imgconverter
338 latex_logo
= "images/proxmox-logo.png"
340 # For "manual" documents, if this is true, then toplevel headings are parts,
343 # latex_use_parts = False
345 # If true, show page references after internal links.
347 # latex_show_pagerefs = False
349 # If true, show URL addresses after external links.
351 # latex_show_urls = False
353 # Documents to append as an appendix to all manuals.
355 # latex_appendices = []
357 # It false, will not define \strong, \code, itleref, \crossref ... but only
358 # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
361 # latex_keep_old_macro_names = True
363 # If false, no module index is generated.
365 # latex_domain_indices = True
368 # -- Options for Epub output ----------------------------------------------
370 # Bibliographic Dublin Core info.
373 epub_publisher
= author
374 epub_copyright
= copyright
376 # The basename for the epub file. It defaults to the project name.
377 # epub_basename = project
379 # The HTML theme for the epub output. Since the default themes are not
380 # optimized for small screen space, using the same theme for HTML and epub
381 # output is usually not wise. This defaults to 'epub', a theme designed to save
384 # epub_theme = 'epub'
386 # The language of the text. It defaults to the language option
387 # or 'en' if the language is not set.
391 # The scheme of the identifier. Typical schemes are ISBN or URL.
394 # The unique identifier of the text. This can be a ISBN number
395 # or the project homepage.
397 # epub_identifier = ''
399 # A unique identification for the text.
403 # A tuple containing the cover image and cover page html template filenames.
407 # A sequence of (type, uri, title) tuples for the guide element of content.opf.
411 # HTML files that should be inserted before the pages created by sphinx.
412 # The format is a list of tuples containing the path and title.
414 # epub_pre_files = []
416 # HTML files that should be inserted after the pages created by sphinx.
417 # The format is a list of tuples containing the path and title.
419 # epub_post_files = []
421 # A list of files that should not be packed into the epub file.
422 epub_exclude_files
= ['search.html']
424 # The depth of the table of contents in toc.ncx.
428 # Allow duplicate toc entries.
432 # Choose between 'default' and 'includehidden'.
434 # epub_tocscope = 'default'
436 # Fix unsupported image types using the Pillow.
438 # epub_fix_images = False
440 # Scale large images.
442 # epub_max_image_width = 0
444 # How to display URL addresses: 'footnote', 'no', or 'inline'.
446 # epub_show_urls = 'inline'
448 # If false, no index is generated.
450 # epub_use_index = True