Module sphinx_ext
source code
Sphinx extension for building opcode documentation.
|
|
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 = map(compat.fst, opcodes.OpCode.OP_PARAMS)
|
|
EVAL_NS = dict(compat= compat, constants= constants, utils= ut...
Namespace for evaluating expressions
|
Imports:
StringIO,
docutils,
sphinx,
constants,
compat,
errors,
utils,
opcodes,
ht,
rapi,
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))
|
EVAL_NS
Namespace for evaluating expressions
- Value:
dict(compat= compat, constants= constants, utils= utils, errors= error
s, rlib2= rapi.rlib2)
|
|