You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix deprecation warnings by combining our Collector and Renderer class into the Handler class. Move static methods and helper functions to separate files.
"""The cross-documentation domain/language for this handler."""
42
+
"""
43
+
The cross-documentation domain/language for this handler.
44
+
"""
23
45
24
46
enable_inventory: bool=True
25
-
"""Whether this handler is interested in enabling the creation of the `objects.inv` Sphinx inventory file."""
47
+
"""
48
+
Whether this handler is interested in enabling the creation of the `objects.inv` Sphinx inventory file.
49
+
"""
50
+
51
+
fallback_theme="material"
52
+
"""
53
+
The theme to fall back to.
54
+
"""
55
+
56
+
default_config: dict= {
57
+
"show_root_heading": False,
58
+
"show_root_toc_entry": True,
59
+
"show_root_full_path": True,
60
+
"show_root_members_full_path": False,
61
+
"show_object_full_path": False,
62
+
"show_category_heading": False,
63
+
"show_if_no_docstring": False,
64
+
"show_signature": True,
65
+
"separate_signature": False,
66
+
"line_length": 60,
67
+
"show_source": True,
68
+
"show_bases": True,
69
+
"show_submodules": True,
70
+
"heading_level": 2,
71
+
"members_order": Order.alphabetical.value,
72
+
"docstring_section_style": "table",
73
+
}
74
+
"""
75
+
The default rendering options.
76
+
77
+
See [`default_config`][mkdocstrings_handlers.vba.renderer.VbaRenderer.default_config].
78
+
79
+
Option | Type | Description | Default
80
+
------ | ---- | ----------- | -------
81
+
**`show_root_heading`** | `bool` | Show the heading of the object at the root of the documentation tree. | `False`
82
+
**`show_root_toc_entry`** | `bool` | If the root heading is not shown, at least add a ToC entry for it. | `True`
83
+
**`show_root_full_path`** | `bool` | Show the full VBA path for the root object heading. | `True`
84
+
**`show_object_full_path`** | `bool` | Show the full VBA path of every object. | `False`
85
+
**`show_root_members_full_path`** | `bool` | Show the full VBA path of objects that are children of the root object (for example, classes in a module). When False, `show_object_full_path` overrides. | `False`
86
+
**`show_category_heading`** | `bool` | When grouped by categories, show a heading for each category. | `False`
87
+
**`show_if_no_docstring`** | `bool` | Show the object heading even if it has no docstring or children with docstrings. | `False`
88
+
**`show_signature`** | `bool` | Show method and function signatures. | `True`
89
+
**`separate_signature`** | `bool` | Whether to put the whole signature in a code block below the heading. | `False`
90
+
**`line_length`** | `int` | Maximum line length when formatting code. | `60`
91
+
**`show_source`** | `bool` | Show the source code of this object. | `True`
92
+
**`show_bases`** | `bool` | Show the base classes of a class. | `True`
93
+
**`show_submodules`** | `bool` | When rendering a module, show its submodules recursively. | `True`
94
+
**`heading_level`** | `int` | The initial heading level to use. | `2`
95
+
**`members_order`** | `str` | The members ordering to use. Options: `alphabetical` - order by the members names, `source` - order members as they appear in the source file. | `alphabetical`
96
+
**`docstring_section_style`** | `str` | The style used to render docstring sections. Options: `table`, `list`, `spacy`. | `table`
0 commit comments