@@ -57,6 +57,129 @@ plugins:
57
57
////
58
58
///
59
59
60
+ ## ` parameter_headings`
61
+
62
+ [:octicons-heart-fill-24:{ .pulse } Sponsors only](../../insiders/index.md){ .insiders } —
63
+ [:octicons-tag-24 : Insiders 1.6.0](../../insiders/changelog.md#1.6.0)
64
+
65
+ - **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
66
+ <!-- - **:octicons-project-template-24 : Template :material-null:** (N/A) -->
67
+
68
+ Whether to render headings for function/method parameters.
69
+
70
+ With this option enabled, each function/method parameter
71
+ (including parameters of `__init__` methods merged in their parent class
72
+ with the [`merge_init_into_class`][] option)
73
+ gets a permalink, an entry in the Table of Contents,
74
+ and an entry in the generated objects inventory.
75
+ The permalink and inventory entry allow cross-references
76
+ from internal and external pages.
77
+
78
+ The identifier used in the permalink and inventory is of the following form :
79
+ ` path.to.function(param_name)` . To manually cross-reference a parameter,
80
+ you can therefore use this Markdown syntax :
81
+
82
+ ` ` ` md
83
+ - Class parameter: [` param`][package.module.Class(param)]
84
+ - Method parameter : [`param`][package.module.Class.method(param)]
85
+ - Function parameter : [`param`][package.module.function(param)]
86
+ - Variadic positional parameters : [`*args`][package.module.function(*args)]
87
+ - Variadic keyword parameters : [`**kwargs`][package.module.function(**kwargs)]
88
+ ` ` `
89
+
90
+ Enabling this option along with [` signature_crossrefs`][] will automatically
91
+ render cross-references to parameters in class/function/method signatures
92
+ and attributes values.
93
+
94
+ ` ` ` yaml title="in mkdocs.yml (global configuration)"
95
+ plugins:
96
+ - mkdocstrings:
97
+ handlers:
98
+ python:
99
+ options:
100
+ parameter_headings: false
101
+ ` ` `
102
+
103
+ ` ` ` md title="or in docs/some_page.md (local configuration)"
104
+ ::: path.to.module
105
+ options:
106
+ parameter_headings: true
107
+ ` ` `
108
+
109
+ /// admonition | Preview : Cross-references
110
+ type : preview
111
+
112
+ ` ` ` md exec="on"
113
+ ::: package.get_version
114
+ options:
115
+ heading_level: 3
116
+ parameter_headings: true
117
+ docstring_section_style: list
118
+
119
+ ::: package.current_version
120
+ options:
121
+ heading_level: 3
122
+ line_length: 100
123
+ ` ` `
124
+
125
+ ///
126
+
127
+ /// admonition | Preview : Parameter sections
128
+ type : preview
129
+
130
+ //// tab | Table style
131
+ ` ` ` md exec="on"
132
+ ::: package.get_version
133
+ options:
134
+ heading_level: 3
135
+ show_root_heading: false
136
+ show_root_toc_entry: false
137
+ parameter_headings: true
138
+ docstring_section_style: table
139
+ show_docstring_returns: false
140
+ show_docstring_description: false
141
+ ` ` `
142
+ ////
143
+
144
+ //// tab | List style
145
+ ` ` ` md exec="on"
146
+ ::: package.get_version
147
+ options:
148
+ heading_level: 3
149
+ show_root_heading: false
150
+ show_root_toc_entry: false
151
+ parameter_headings: true
152
+ docstring_section_style: list
153
+ show_docstring_returns: false
154
+ show_docstring_description: false
155
+ ` ` `
156
+ ////
157
+
158
+ //// tab | Spacy style
159
+ ` ` ` md exec="on"
160
+ ::: package.get_version
161
+ options:
162
+ heading_level: 3
163
+ show_root_heading: false
164
+ show_root_toc_entry: false
165
+ parameter_headings: true
166
+ docstring_section_style: spacy
167
+ show_docstring_returns: false
168
+ show_docstring_description: false
169
+ ` ` `
170
+ ////
171
+ ///
172
+
173
+ /// admonition | Preview : Table of contents (with symbol types)
174
+ type : preview
175
+
176
+ <code class="doc-symbol doc-symbol-toc doc-symbol-function"></code> get_version<br>
177
+ <code class="doc-symbol doc-symbol-toc doc-symbol-parameter" style="margin-left : 16px;"></code> dist
178
+
179
+ To customize symbols, see [Customizing symbol types](../customization.md/#symbol-types).
180
+
181
+ ///
182
+
60
183
# # `show_root_heading`
61
184
62
185
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
0 commit comments