conf.py 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Qubes Admin client documentation build configuration file, created by
  5. # sphinx-quickstart on Thu May 11 19:00:43 2017.
  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. # 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. import subprocess
  22. sys.path.insert(0, os.path.abspath('..'))
  23. # -- General configuration ------------------------------------------------
  24. # If your documentation needs a minimal Sphinx version, state it here.
  25. #
  26. # needs_sphinx = '1.0'
  27. # Add any Sphinx extension module names here, as strings. They can be
  28. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  29. # ones.
  30. extensions = [
  31. 'sphinx.ext.autodoc',
  32. 'sphinx.ext.doctest',
  33. 'sphinx.ext.intersphinx',
  34. 'sphinx.ext.todo',
  35. 'sphinx.ext.coverage',
  36. 'sphinx.ext.viewcode',
  37. ]
  38. try:
  39. import qubesadmin.tools.dochelpers
  40. extensions.append('qubesadmin.tools.dochelpers')
  41. except ImportError:
  42. pass
  43. # Add any paths that contain templates here, relative to this directory.
  44. templates_path = ['_templates']
  45. # The suffix(es) of source filenames.
  46. # You can specify multiple suffix as a list of string:
  47. #
  48. # source_suffix = ['.rst', '.md']
  49. source_suffix = '.rst'
  50. # The encoding of source files.
  51. #
  52. # source_encoding = 'utf-8-sig'
  53. # The master toctree document.
  54. master_doc = 'index'
  55. # General information about the project.
  56. project = 'Qubes Admin client'
  57. copyright = '2017, Invisible Things Lab'
  58. author = 'Invisible Things Lab'
  59. # The version info for the project you're documenting, acts as replacement for
  60. # |version| and |release|, also used in various other places throughout the
  61. # built documents.
  62. #
  63. # The short X.Y version.
  64. version = open('../version').read().strip()
  65. # The full version, including alpha/beta/rc tags.
  66. try:
  67. release = subprocess.check_output(['git', 'describe', '--long', '--dirty']).strip().decode()
  68. except:
  69. release = "1"
  70. # The language for content autogenerated by Sphinx. Refer to documentation
  71. # for a list of supported languages.
  72. #
  73. # This is also used if you do content translation via gettext catalogs.
  74. # Usually you set "language" from the command line for these cases.
  75. language = None
  76. # There are two options for replacing |today|: either, you set today to some
  77. # non-false value, then it is used:
  78. #
  79. # today = ''
  80. #
  81. # Else, today_fmt is used as the format for a strftime call.
  82. #
  83. # today_fmt = '%B %d, %Y'
  84. # List of patterns, relative to source directory, that match files and
  85. # directories to ignore when looking for source files.
  86. # This patterns also effect to html_static_path and html_extra_path
  87. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  88. # The reST default role (used for this markup: `text`) to use for all
  89. # documents.
  90. #
  91. # default_role = None
  92. # If true, '()' will be appended to :func: etc. cross-reference text.
  93. #
  94. add_function_parentheses = True
  95. # If true, the current module name will be prepended to all description
  96. # unit titles (such as .. function::).
  97. #
  98. # add_module_names = True
  99. # If true, sectionauthor and moduleauthor directives will be shown in the
  100. # output. They are ignored by default.
  101. #
  102. # show_authors = False
  103. # The name of the Pygments (syntax highlighting) style to use.
  104. pygments_style = 'sphinx'
  105. # A list of ignored prefixes for module index sorting.
  106. # modindex_common_prefix = []
  107. # If true, keep warnings as "system message" paragraphs in the built documents.
  108. # keep_warnings = False
  109. # If true, `todo` and `todoList` produce output, else they produce nothing.
  110. todo_include_todos = True
  111. # -- Options for HTML output ----------------------------------------------
  112. # The theme to use for HTML and HTML Help pages. See the documentation for
  113. # a list of builtin themes.
  114. #
  115. #html_theme = 'alabaster'
  116. html_theme = 'nature'
  117. # Theme options are theme-specific and customize the look and feel of a theme
  118. # further. For a list of options available for each theme, see the
  119. # documentation.
  120. #
  121. # html_theme_options = {}
  122. # Add any paths that contain custom themes here, relative to this directory.
  123. # html_theme_path = []
  124. # The name for this set of Sphinx documents.
  125. # "<project> v<release> documentation" by default.
  126. #
  127. # html_title = 'Qubes Admin client v4.0.0'
  128. # A shorter title for the navigation bar. Default is the same as html_title.
  129. #
  130. # html_short_title = None
  131. # The name of an image file (relative to this directory) to place at the top
  132. # of the sidebar.
  133. #
  134. # html_logo = None
  135. # The name of an image file (relative to this directory) to use as a favicon of
  136. # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  137. # pixels large.
  138. #
  139. # html_favicon = None
  140. # Add any paths that contain custom static files (such as style sheets) here,
  141. # relative to this directory. They are copied after the builtin static files,
  142. # so a file named "default.css" will overwrite the builtin "default.css".
  143. html_static_path = ['_static']
  144. # Add any extra paths that contain custom files (such as robots.txt or
  145. # .htaccess) here, relative to this directory. These files are copied
  146. # directly to the root of the documentation.
  147. #
  148. # html_extra_path = []
  149. # If not None, a 'Last updated on:' timestamp is inserted at every page
  150. # bottom, using the given strftime format.
  151. # The empty string is equivalent to '%b %d, %Y'.
  152. #
  153. # html_last_updated_fmt = None
  154. # If true, SmartyPants will be used to convert quotes and dashes to
  155. # typographically correct entities.
  156. #
  157. # html_use_smartypants = True
  158. # Custom sidebar templates, maps document names to template names.
  159. #
  160. # html_sidebars = {}
  161. # Additional templates that should be rendered to pages, maps page names to
  162. # template names.
  163. #
  164. # html_additional_pages = {}
  165. # If false, no module index is generated.
  166. #
  167. # html_domain_indices = True
  168. # If false, no index is generated.
  169. #
  170. # html_use_index = True
  171. # If true, the index is split into individual pages for each letter.
  172. #
  173. # html_split_index = False
  174. # If true, links to the reST sources are added to the pages.
  175. #
  176. # html_show_sourcelink = True
  177. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  178. #
  179. # html_show_sphinx = True
  180. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  181. #
  182. # html_show_copyright = True
  183. # If true, an OpenSearch description file will be output, and all pages will
  184. # contain a <link> tag referring to it. The value of this option must be the
  185. # base URL from which the finished HTML is served.
  186. #
  187. # html_use_opensearch = ''
  188. # This is the file name suffix for HTML files (e.g. ".xhtml").
  189. # html_file_suffix = None
  190. # Language to be used for generating the HTML full-text search index.
  191. # Sphinx supports the following languages:
  192. # 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
  193. # 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr', 'zh'
  194. #
  195. # html_search_language = 'en'
  196. # A dictionary with options for the search language support, empty by default.
  197. # 'ja' uses this config value.
  198. # 'zh' user can custom change `jieba` dictionary path.
  199. #
  200. # html_search_options = {'type': 'default'}
  201. # The name of a javascript file (relative to the configuration directory) that
  202. # implements a search results scorer. If empty, the default will be used.
  203. #
  204. # html_search_scorer = 'scorer.js'
  205. # Output file base name for HTML help builder.
  206. htmlhelp_basename = 'QubesAdminclientdoc'
  207. # -- Options for LaTeX output ---------------------------------------------
  208. latex_elements = {
  209. # The paper size ('letterpaper' or 'a4paper').
  210. #
  211. # 'papersize': 'letterpaper',
  212. # The font size ('10pt', '11pt' or '12pt').
  213. #
  214. # 'pointsize': '10pt',
  215. # Additional stuff for the LaTeX preamble.
  216. #
  217. # 'preamble': '',
  218. # Latex figure (float) alignment
  219. #
  220. # 'figure_align': 'htbp',
  221. }
  222. # Grouping the document tree into LaTeX files. List of tuples
  223. # (source start file, target name, title,
  224. # author, documentclass [howto, manual, or own class]).
  225. latex_documents = [
  226. (master_doc, 'QubesAdminclient.tex', 'Qubes Admin client Documentation',
  227. 'Invisible Things Lab', 'manual'),
  228. ]
  229. # The name of an image file (relative to this directory) to place at the top of
  230. # the title page.
  231. #
  232. # latex_logo = None
  233. # For "manual" documents, if this is true, then toplevel headings are parts,
  234. # not chapters.
  235. #
  236. # latex_use_parts = False
  237. # If true, show page references after internal links.
  238. #
  239. # latex_show_pagerefs = False
  240. # If true, show URL addresses after external links.
  241. #
  242. # latex_show_urls = False
  243. # Documents to append as an appendix to all manuals.
  244. #
  245. # latex_appendices = []
  246. # It false, will not define \strong, \code, itleref, \crossref ... but only
  247. # \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
  248. # packages.
  249. #
  250. # latex_keep_old_macro_names = True
  251. # If false, no module index is generated.
  252. #
  253. # latex_domain_indices = True
  254. # -- Options for manual page output ---------------------------------------
  255. # authors should be empty and authors should be specified in each man page,
  256. # because html builder will omit them
  257. _man_pages_author = []
  258. # One entry per manual page. List of tuples
  259. # (source start file, name, description, authors, manual section).
  260. man_pages = [
  261. ('manpages/qvm-backup-restore', 'qvm-backup-restore',
  262. u'Restores Qubes VMs from backup', _man_pages_author, 1),
  263. ('manpages/qvm-backup', 'qvm-backup',
  264. u'Create backup of specified qubes', _man_pages_author, 1),
  265. ('manpages/qvm-check', 'qvm-check',
  266. u'Check existence/state of a qube', _man_pages_author, 1),
  267. ('manpages/qvm-clone', 'qvm-clone',
  268. u'Clones an existing qube by copying all its disk files', _man_pages_author, 1),
  269. ('manpages/qvm-create', 'qvm-create',
  270. u'Creates a new qube', _man_pages_author, 1),
  271. ('manpages/qvm-device', 'qvm-device',
  272. u'List/set VM devices', _man_pages_author, 1),
  273. ('manpages/qvm-features', 'qvm-features',
  274. u'Manage VM features', _man_pages_author, 1),
  275. ('manpages/qvm-firewall', 'qvm-firewall',
  276. u'Qubes firewall configuration', _man_pages_author, 1),
  277. ('manpages/qvm-kill', 'qvm-kill',
  278. u'Kill the specified qube', _man_pages_author, 1),
  279. ('manpages/qvm-ls', 'qvm-ls',
  280. u'List VMs and various information about them', _man_pages_author, 1),
  281. ('manpages/qvm-pause', 'qvm-pause',
  282. u'Pause a specified qube(s)', _man_pages_author, 1),
  283. ('manpages/qvm-pool', 'qvm-pool',
  284. u'Manages Qubes pools and their options', _man_pages_author, 1),
  285. ('manpages/qvm-prefs', 'qvm-prefs',
  286. u'List/set various per-VM properties', _man_pages_author, 1),
  287. ('manpages/qvm-remove', 'qvm-remove',
  288. u'Remove a VM', _man_pages_author, 1),
  289. ('manpages/qvm-run', 'qvm-run',
  290. u'Run a command on a specified VM', _man_pages_author, 1),
  291. ('manpages/qvm-service', 'qvm-service',
  292. u'Manage (Qubes-specific) services started in VM', _man_pages_author, 1),
  293. ('manpages/qvm-shutdown', 'qvm-shutdown',
  294. u'Gracefully shut down a qube', _man_pages_author, 1),
  295. ('manpages/qvm-start-daemon', 'qvm-start-daemon',
  296. u'Start GUI/AUDIO daemon for qubes', _man_pages_author, 1),
  297. ('manpages/qvm-start', 'qvm-start',
  298. u'Start a specified qube', _man_pages_author, 1),
  299. ('manpages/qvm-tags', 'qvm-tags',
  300. u'Manage tags on a qube', _man_pages_author, 1),
  301. ('manpages/qvm-unpause', 'qvm-unpause',
  302. u'Pause a qube', _man_pages_author, 1),
  303. ('manpages/qvm-volume', 'qvm-volume',
  304. u'Manage storage volumes of a qube', _man_pages_author, 1),
  305. ('manpages/qubes-prefs', 'qubes-prefs',
  306. u'Display system-wide Qubes settings', _man_pages_author, 1),
  307. ]
  308. # If true, show URL addresses after external links.
  309. #
  310. # man_show_urls = False
  311. # -- Options for Texinfo output -------------------------------------------
  312. # Grouping the document tree into Texinfo files. List of tuples
  313. # (source start file, target name, title, author,
  314. # dir menu entry, description, category)
  315. texinfo_documents = [
  316. (master_doc, 'QubesAdminclient', 'Qubes Admin client Documentation',
  317. author, 'QubesAdminclient', 'One line description of project.',
  318. 'Miscellaneous'),
  319. ]
  320. # Documents to append as an appendix to all manuals.
  321. #
  322. # texinfo_appendices = []
  323. # If false, no module index is generated.
  324. #
  325. # texinfo_domain_indices = True
  326. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  327. #
  328. # texinfo_show_urls = 'footnote'
  329. # If true, do not generate a @detailmenu in the "Top" node's menu.
  330. #
  331. # texinfo_no_detailmenu = False
  332. # Example configuration for intersphinx: refer to the Python standard library.
  333. intersphinx_mapping = {
  334. 'python': ('https://docs.python.org/', None),
  335. 'qubes': ('https://dev.qubes-os.org/projects/qubes-core-admin/en/latest', None),
  336. }