@@ -387,3 +387,131 @@ plugins:
387
387
<p>Docstring of the method.</p>
388
388
////
389
389
///
390
+
391
+ # # `show_symbol_type_heading`
392
+
393
+ [:octicons-tag-24 : Insiders 1.1.0](../../insiders/changelog.md#1.1.0)
394
+
395
+ - **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
396
+ <!-- - **:octicons-project-template-24 : Template :material-null:** (N/A) -->
397
+
398
+ Show the symbol type in headings.
399
+
400
+ This option will prefix headings with
401
+ <code class="doc-symbol doc-symbol-attribute"></code>,
402
+ <code class="doc-symbol doc-symbol-function"></code>,
403
+ <code class="doc-symbol doc-symbol-method"></code>,
404
+ <code class="doc-symbol doc-symbol-class"></code> or
405
+ <code class="doc-symbol doc-symbol-module"></code> types.
406
+ See also [`show_symbol_type_toc`][show_symbol_type_toc].
407
+
408
+ To customize symbols, see [Customizing symbol types](../customization.md/#symbol-types).
409
+
410
+ ` ` ` yaml title="in mkdocs.yml (global configuration)"
411
+ plugins:
412
+ - mkdocstrings:
413
+ handlers:
414
+ python:
415
+ options:
416
+ show_symbol_type_heading: true
417
+ ` ` `
418
+
419
+ ` ` ` md title="or in docs/some_page.md (local configuration)"
420
+ ::: package.module
421
+ options:
422
+ show_symbol_type_heading: false
423
+ ` ` `
424
+
425
+ /// admonition | Preview
426
+ type : preview
427
+
428
+ //// tab | With symbol type in headings
429
+ <h1><code class="doc-symbol doc-symbol-module"></code> <code>module</code></h1>
430
+ <p>Docstring of the module.</p>
431
+ <h2><code class="doc-symbol doc-symbol-attribute"></code> <code>attribute</code></h2>
432
+ <p>Docstring of the module attribute.</p>
433
+ <h2><code class="doc-symbol doc-symbol-function"></code> <code>function</code></h2>
434
+ <p>Docstring of the function.</p>
435
+ <h2><code class="doc-symbol doc-symbol-class"></code> <code>Class</code></h2>
436
+ <p>Docstring of the class.</p>
437
+ <h3><code class="doc-symbol doc-symbol-method"></code> <code>method</code></h3>
438
+ <p>Docstring of the method.</p>
439
+ ////
440
+
441
+ //// tab | Without symbol type in headings
442
+ <h1><code>module</code></h1>
443
+ <p>Docstring of the module.</p>
444
+ <h2><code>attribute</code></h2>
445
+ <p>Docstring of the module attribute.</p>
446
+ <h2><code>function</code></h2>
447
+ <p>Docstring of the function.</p>
448
+ <h2><code>Class</code></h2>
449
+ <p>Docstring of the class.</p>
450
+ <h3><code>method</code></h3>
451
+ <p>Docstring of the method.</p>
452
+ ////
453
+ ///
454
+
455
+ # # `show_symbol_type_toc`
456
+
457
+ [:octicons-tag-24 : Insiders 1.1.0](../../insiders/changelog.md#1.1.0)
458
+
459
+ - **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
460
+ <!-- - **:octicons-project-template-24 : Template :material-null:** (N/A) -->
461
+
462
+ Show the symbol type in the Table of Contents.
463
+
464
+ This option will prefix items in the ToC with
465
+ <code class="doc-symbol doc-symbol-attribute"></code>,
466
+ <code class="doc-symbol doc-symbol-function"></code>,
467
+ <code class="doc-symbol doc-symbol-method"></code>,
468
+ <code class="doc-symbol doc-symbol-class"></code> or
469
+ <code class="doc-symbol doc-symbol-module"></code> types.
470
+ See also [`show_symbol_type_heading`][show_symbol_type_heading].
471
+
472
+ To customize symbols, see [Customizing symbol types](../customization.md/#symbol-types).
473
+
474
+ ` ` ` yaml title="in mkdocs.yml (global configuration)"
475
+ plugins:
476
+ - mkdocstrings:
477
+ handlers:
478
+ python:
479
+ options:
480
+ show_symbol_type_toc: true
481
+ ` ` `
482
+
483
+ ` ` ` md title="or in docs/some_page.md (local configuration)"
484
+ ::: package.module
485
+ options:
486
+ show_symbol_type_toc: false
487
+ ` ` `
488
+
489
+ /// admonition | Preview
490
+ type : preview
491
+
492
+ //// tab | With symbol type in ToC
493
+ <ul style="list-style : none;">
494
+ <li><code class="doc-symbol doc-symbol-module"></code> module</li>
495
+ <li><code class="doc-symbol doc-symbol-attribute"></code> attribute</li>
496
+ <li><code class="doc-symbol doc-symbol-function"></code> function</li>
497
+ <li><code class="doc-symbol doc-symbol-class"></code> Class
498
+ <ul style="list-style : none;">
499
+ <li><code class="doc-symbol doc-symbol-method"></code> method</li>
500
+ </ul>
501
+ </li>
502
+ </ul>
503
+ ////
504
+
505
+ //// tab | Without symbol type in ToC
506
+ <ul style="list-style : none;">
507
+ <li>module</li>
508
+ <li>attribute</li>
509
+ <li>function</li>
510
+ <li>Class
511
+ <ul style="list-style : none;">
512
+ <li>method</li>
513
+ </ul>
514
+ </li>
515
+ </ul>
516
+ ////
517
+ ///
0 commit comments