handler
Classes¶
KiaraHandler
¶
Bases: BaseHandler
The kiara handler class.
domain: The cross-documentation domain/language for this handler.
enable_inventory: Whether this handler is interested in enabling the creation
of the `objects.inv` Sphinx inventory file.
Source code in src/kiara/doc/mkdocstrings/handler.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
Attributes¶
domain: str = 'kiara'
class-attribute
instance-attribute
¶
enable_inventory: bool = True
class-attribute
instance-attribute
¶
Functions¶
collect(identifier: str, config: typing.MutableMapping[str, typing.Any]) -> CollectorItem
¶
Collect the documentation tree given an identifier and selection options.
identifier: The dotted-path of a Python object available in the Python path.
config: Selection options, used to alter the data collection done by `pytkdocs`.
CollectionError: When there was a problem collecting the object documentation.
The collected object-tree.
Source code in src/kiara/doc/mkdocstrings/handler.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
|
get_anchors(data: CollectorItem) -> typing.Tuple[str, ...]
¶
Source code in src/kiara/doc/mkdocstrings/handler.py
79 80 81 82 83 |
|
render(data: CollectorItem, config: typing.Mapping[str, typing.Any]) -> str
¶
Source code in src/kiara/doc/mkdocstrings/handler.py
85 86 87 88 89 90 91 92 |
|
Functions¶
get_handler(theme: str, custom_templates: typing.Union[str, None], mdx: typing.List[str], mdx_config: typing.Dict, handler_config: typing.Dict, tool_config: typing.Dict) -> KiaraHandler
¶
Simply return an instance of PythonHandler
.
theme: The theme to use when rendering contents.
custom_templates: Directory containing custom templates.
**config: Configuration passed to the handler.
An instance of `PythonHandler`.
Source code in src/kiara/doc/mkdocstrings/handler.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
|