Module sphinx_ext
source code
Sphinx extension for building opcode documentation.
|
_GetCommonParamNames()
Builds a list of parameters common to all opcodes. |
source code
|
|
|
|
dict
|
|
|
|
|
|
|
PythonEvalRole(role,
rawtext,
text,
lineno,
inliner,
options={},
content=[])
Custom role to evaluate Python expressions. |
source code
|
|
|
|
|
|
|
|
|
s_compat = sphinx.util.compat
|
|
COMMON_PARAM_NAMES = _GetCommonParamNames()
|
|
EVAL_NS = dict(compat= compat, constants= constants, utils= ut...
Namespace for evaluating expressions
|
|
CV_ECODES_DOC = "ecodes"
|
|
CV_ECODES_DOC_LIST = [(name, doc) for(_, name, doc) in constan...
|
|
DOCUMENTED_CONSTANTS = {CV_ECODES_DOC: CV_ECODES_DOC_LIST,}
|
Imports:
StringIO,
docutils,
sphinx,
constants,
compat,
errors,
utils,
opcodes,
ht,
rapi,
luxi,
ganeti
Split simple option list.
- Parameters:
text (string) - Options, e.g. "foo, bar, baz"
|
Parse simple assignment option.
- Parameters:
text (string) - Assignments, e.g. "foo=bar, hello=world"
- Returns: dict
|
_BuildOpcodeParams(op_id,
include,
exclude,
alias)
| source code
|
Build opcode parameter documentation.
- Parameters:
op_id (string) - Opcode ID
|
Build opcode result documentation.
- Parameters:
op_id (string) - Opcode ID
|
PythonEvalRole(role,
rawtext,
text,
lineno,
inliner,
options={},
content=[])
| source code
|
Custom role to evaluate Python expressions.
The expression's result is included as a literal.
|
Build query fields documentation.
- Parameters:
fields (dict (field name as key, field details as value))
|
Builds documentation for a list of values
- Parameters:
values (list of tuples in the form (value, documentation))
|
EVAL_NS
Namespace for evaluating expressions
- Value:
dict(compat= compat, constants= constants, utils= utils, errors= error
s, rlib2= rapi.rlib2, luxi= luxi)
|
|
CV_ECODES_DOC_LIST
- Value:
[(name, doc) for(_, name, doc) in constants.CV_ALL_ECODES]
|
|