doc: fix rst syntax in documentation, including docstrings
This commit is contained in:
parent
57a98b97cb
commit
0bb35193b4
@ -11,6 +11,9 @@ Contents:
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
|
modules
|
||||||
|
manpages/index
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
|
@ -259,6 +259,7 @@ class QubesBase(qubesadmin.base.PropertyHolder):
|
|||||||
can be also VM object; use None for default value
|
can be also VM object; use None for default value
|
||||||
:param str pool: storage pool to use instead of default one
|
:param str pool: storage pool to use instead of default one
|
||||||
:param dict pools: storage pool for specific volumes
|
:param dict pools: storage pool for specific volumes
|
||||||
|
|
||||||
:return new VM object
|
:return new VM object
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@ -311,6 +312,7 @@ class QubesBase(qubesadmin.base.PropertyHolder):
|
|||||||
logged, or abort the whole operation?
|
logged, or abort the whole operation?
|
||||||
:param list ignore_volumes: do not clone volumes on this list,
|
:param list ignore_volumes: do not clone volumes on this list,
|
||||||
like 'private' or 'root'
|
like 'private' or 'root'
|
||||||
|
|
||||||
:return new VM object
|
:return new VM object
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ class Volume(object):
|
|||||||
self._info = None
|
self._info = None
|
||||||
|
|
||||||
def is_outdated(self):
|
def is_outdated(self):
|
||||||
''' Returns `True` if this snapshot of a source volume (for
|
'''Returns `True` if this snapshot of a source volume (for
|
||||||
`snap_on_start`=True) is outdated.
|
`snap_on_start`=True) is outdated.
|
||||||
'''
|
'''
|
||||||
self._fetch_info(True)
|
self._fetch_info(True)
|
||||||
|
@ -327,10 +327,11 @@ class QubesArgumentParser(argparse.ArgumentParser):
|
|||||||
:py:class:`qubes.Qubes` object, just add argument for custom xml file
|
:py:class:`qubes.Qubes` object, just add argument for custom xml file
|
||||||
:param mixed vmname_nargs: The number of ``VMNAME`` arguments that should be
|
:param mixed vmname_nargs: The number of ``VMNAME`` arguments that should be
|
||||||
consumed. Values include:
|
consumed. Values include:
|
||||||
- N (an integer) consumes N arguments (and produces a list)
|
* N (an integer) consumes N arguments (and produces a list)
|
||||||
- '?' consumes zero or one arguments
|
* '?' consumes zero or one arguments
|
||||||
- '*' consumes zero or more arguments (and produces a list)
|
* '*' consumes zero or more arguments (and produces a list)
|
||||||
- '+' consumes one or more arguments (and produces a list)
|
* '+' consumes one or more arguments (and produces a list)
|
||||||
|
|
||||||
*kwargs* are passed to :py:class:`argparser.ArgumentParser`.
|
*kwargs* are passed to :py:class:`argparser.ArgumentParser`.
|
||||||
|
|
||||||
Currenty supported options:
|
Currenty supported options:
|
||||||
@ -443,7 +444,7 @@ class QubesArgumentParser(argparse.ArgumentParser):
|
|||||||
|
|
||||||
|
|
||||||
class SubParsersHelpAction(argparse._HelpAction):
|
class SubParsersHelpAction(argparse._HelpAction):
|
||||||
''' Print help for all options _and all subparsers_ '''
|
''' Print help for all options and all subparsers '''
|
||||||
# source https://stackoverflow.com/a/24122778
|
# source https://stackoverflow.com/a/24122778
|
||||||
# pylint: disable=protected-access,too-few-public-methods
|
# pylint: disable=protected-access,too-few-public-methods
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ class OptionsCheckVisitor(docutils.nodes.SparseNodeVisitor):
|
|||||||
While the documentation talks about a
|
While the documentation talks about a
|
||||||
'SparseNodeVisitor.depart_document()' function, this function does
|
'SparseNodeVisitor.depart_document()' function, this function does
|
||||||
not exists. (For details see implementation of
|
not exists. (For details see implementation of
|
||||||
:py:method:`NodeVisitor.dispatch_departure()`) So we need to
|
:py:meth:`NodeVisitor.dispatch_departure()`) So we need to
|
||||||
manually call this.
|
manually call this.
|
||||||
'''
|
'''
|
||||||
if ignored_options is None:
|
if ignored_options is None:
|
||||||
@ -205,7 +205,7 @@ class CommandCheckVisitor(docutils.nodes.SparseNodeVisitor):
|
|||||||
While the documentation talks about a
|
While the documentation talks about a
|
||||||
'SparseNodeVisitor.depart_document()' function, this function does
|
'SparseNodeVisitor.depart_document()' function, this function does
|
||||||
not exists. (For details see implementation of
|
not exists. (For details see implementation of
|
||||||
:py:method:`NodeVisitor.dispatch_departure()`) So we need to
|
:py:meth:`NodeVisitor.dispatch_departure()`) So we need to
|
||||||
manually call this.
|
manually call this.
|
||||||
'''
|
'''
|
||||||
if self.sub_commands:
|
if self.sub_commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user