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
**`docstring_style`** | `"google" | "numpy" | "sphinx" | None` | The docstring style to use. | `"google"`
57
-
**`docstring_options`** | `dict[str, Any]` | The options for the docstring parser. | `{}`
58
-
"""
59
-
default_rendering_config: dict= {
49
+
default_config: dict= {
50
+
"docstring_style": "google",
51
+
"docstring_options": {},
60
52
"show_root_heading": False,
61
53
"show_root_toc_entry": True,
62
54
"show_root_full_path": True,
@@ -81,30 +73,40 @@ class PythonHandler(BaseHandler):
81
73
"annotations_path": "brief",
82
74
}
83
75
"""
84
-
Attributes: Default rendering options:
76
+
Attributes: Headings options:
77
+
heading_level (int): The initial heading level to use. Default: `2`.
85
78
show_root_heading (bool): Show the heading of the object at the root of the documentation tree. Default: `False`.
86
79
show_root_toc_entry (bool): If the root heading is not shown, at least add a ToC entry for it. Default: `True`.
87
80
show_root_full_path (bool): Show the full Python path for the root object heading. Default: `True`.
88
81
show_root_members_full_path (bool): Show the full Python path of every object. Default: `False`.
89
82
show_object_full_path (bool): Show the full Python path of objects that are children of the root object (for example, classes in a module). When False, `show_object_full_path` overrides. Default: `False`.
90
83
show_category_heading (bool): When grouped by categories, show a heading for each category. Default: `False`.
84
+
85
+
Attributes: Members options:
86
+
members (list[str] | False | None): An explicit list of members to render. Default: `None`.
87
+
filters (list[str] | None): A list of filters applied to filter objects based on their name.
88
+
A filter starting with `!` will exclude matching objects instead of including them. Default: `["!^_[^_]"]`.
89
+
group_by_category (bool): Group the object's children by categories: attributes, classes, functions, methods, and modules. Default: `True`.
90
+
show_submodules (bool): When rendering a module, show its submodules recursively. Default: `True`.
91
+
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. Default: `"alphabetical"`.
92
+
93
+
Attributes: Docstrings options:
94
+
docstring_style (str): The docstring style to use: `google`, `numpy`, `sphinx`, or `None`. Default: `"google"`.
95
+
docstring_options (dict): The options for the docstring parser. See parsers under [`griffe.docstrings`][].
96
+
docstring_section_style (str): The style used to render docstring sections. Options: `table`, `list`, `spacy`. Default: `"table"`.
97
+
line_length (int): Maximum line length when formatting code. Default: `60`.
98
+
merge_init_into_class (bool): Whether to merge the `__init__` method into the class' signature and docstring. Default: `False`.
91
99
show_if_no_docstring (bool): Show the object heading even if it has no docstring or children with docstrings. Default: `False`.
100
+
101
+
Attributes: Signature/annotations options:
92
102
annotations_path: The verbosity for annotations path: `brief` (recommended), or `source` (as written in the source). Default: `"brief"`.
93
103
show_signature (bool): Show method and function signatures. Default: `True`.
94
104
show_signature_annotations (bool): Show the type annotations in method and function signatures. Default: `False`.
95
105
separate_signature (bool): Whether to put the whole signature in a code block below the heading. Default: `False`.
96
-
line_length (int): Maximum line length when formatting code. Default: `60`.
97
-
merge_init_into_class (bool): Whether to merge the `__init__` method into the class' signature and docstring. Default: `False`.
98
-
show_source (bool): Show the source code of this object. Default: `True`.
106
+
107
+
Attributes: Additional options:
99
108
show_bases (bool): Show the base classes of a class. Default: `True`.
100
-
show_submodules (bool): When rendering a module, show its submodules recursively. Default: `True`.
101
-
group_by_category (bool): Group the object's children by categories: attributes, classes, functions, methods, and modules. Default: `True`.
102
-
heading_level (int): The initial heading level to use. Default: `2`.
103
-
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. Default: `alphabetical`.
104
-
docstring_section_style (str): The style used to render docstring sections. Options: `table`, `list`, `spacy`. Default: `table`.
105
-
members (list[str] | False | None): An explicit list of members to render. Default: `None`.
106
-
filters (list[str] | None): A list of filters applied to filter objects based on their name.
107
-
A filter starting with `!` will exclude matching objects instead of including them. Default: `["!^_[^_]"]`.
109
+
show_source (bool): Show the source code of this object. Default: `True`.
0 commit comments