|
| 1 | +# SPDX-FileCopyrightText: 2025 Helge Eichhorn <[email protected]> |
| 2 | +# |
| 3 | +# SPDX-License-Identifier: MPL-2.0 |
| 4 | + |
| 5 | +site_name: My Docs |
| 6 | +theme: |
| 7 | + name: material |
| 8 | + palette: |
| 9 | + scheme: slate |
| 10 | + primary: indigo |
| 11 | +plugins: |
| 12 | +- mkdocstrings: |
| 13 | + handlers: |
| 14 | + python: |
| 15 | + |
| 16 | + # Where to find your sources, see "Finding modules". |
| 17 | + # paths: [src] |
| 18 | + |
| 19 | + # Load object inventories to enable cross-references to other projects. |
| 20 | + inventories: |
| 21 | + - https://docs.python.org/3/objects.inv |
| 22 | + # Also load inventories of your dependencies, generally served at |
| 23 | + # https://docs-url-for-your-dependency/objects.inv. |
| 24 | + |
| 25 | + options: |
| 26 | + |
| 27 | + # DOCSTRINGS ------------------------------------------------------------- |
| 28 | + docstring_options: |
| 29 | + # Discard first line of `__init__` method docstrings, |
| 30 | + # useful when merging such docstrings into their parent class'. |
| 31 | + ignore_init_summary: true |
| 32 | + |
| 33 | + # Tables are generally too large, lists will fix this. |
| 34 | + docstring_section_style: list |
| 35 | + |
| 36 | + # CROSS-REFERENCES ------------------------------------------------------- |
| 37 | + # Enable relative crossrefs and scoped crossrefs, see Docstrings options. |
| 38 | + # relative_crossrefs: true # Sponsors only! |
| 39 | + # scoped_crossrefs: true # Sponsors only! |
| 40 | + |
| 41 | + # Enable cross-references in signatures. |
| 42 | + signature_crossrefs: true |
| 43 | + |
| 44 | + # Unwrap actual types from `Annotated` type annotations. |
| 45 | + unwrap_annotated: true |
| 46 | + |
| 47 | + # MEMBERS ---------------------------------------------------------------- |
| 48 | + # Only render pulic symbols. |
| 49 | + # filters: public # Sponsors only! |
| 50 | + # Comment the option otherwise to get the default filters. |
| 51 | + |
| 52 | + # Show class inherited members. |
| 53 | + inherited_members: true |
| 54 | + |
| 55 | + # Render auto-generated summaries of attributes, functions, etc. |
| 56 | + # at the start of each symbol's documentation. |
| 57 | + summary: true |
| 58 | + |
| 59 | + # HEADINGS --------------------------------------------------------------- |
| 60 | + # For auto-generated pages, one module per page, |
| 61 | + # make the module heading be the H1 heading of the page. |
| 62 | + heading_level: 1 |
| 63 | + |
| 64 | + # Render headings for parameters, making them linkable. |
| 65 | + parameter_headings: true |
| 66 | + |
| 67 | + # Render headings for type parameters too. |
| 68 | + type_parameter_headings: true |
| 69 | + |
| 70 | + # Always show the heading for the symbol you render with `::: id`. |
| 71 | + show_root_heading: true |
| 72 | + |
| 73 | + # Only show the name of the symbols you inject render `::: id`. |
| 74 | + show_root_full_path: false |
| 75 | + |
| 76 | + # Show the type of symbol (class, function, etc.) in the heading. |
| 77 | + show_symbol_type_heading: true |
| 78 | + |
| 79 | + # Show the type of symbol (class, function, etc.) in the table of contents. |
| 80 | + show_symbol_type_toc: true |
| 81 | + |
| 82 | + # SIGNATURES ------------------------------------------------------------- |
| 83 | + # Format code to 80 + 10% margin (Black and Ruff defaults) |
| 84 | + # in signatures and attribute value code blocks. |
| 85 | + # Needs Black/Ruff installed. |
| 86 | + line_length: 88 |
| 87 | + |
| 88 | + # Merge signature and docstring of `__init__` methods |
| 89 | + # into their parent class signature and docstring. |
| 90 | + merge_init_into_class: true |
| 91 | + |
| 92 | + # Render signatures and attribute values in a separate code block, |
| 93 | + # below the symbol heading. |
| 94 | + separate_signature: true |
| 95 | + |
| 96 | + # Show type annotations in signatures. |
| 97 | + show_signature_annotations: true |
| 98 | + |
| 99 | + # Show type parameters in signatures. |
| 100 | + show_signature_type_parameters: true |
| 101 | + |
| 102 | + # OTHER ------------------------------------------------------------------ |
| 103 | + # Show backlinks to other documentation sections within each symbol. |
| 104 | + # backlinks: tree # Sponsors only! |
| 105 | + |
| 106 | + # Show base classes OR inheritance diagram. |
| 107 | + show_bases: false |
| 108 | + # show_inheritance_diagram: true # Sponsors only! |
0 commit comments