mkdocstrings-matlab 0.6.0__py3-none-any.whl → 0.8.0__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (22) hide show
  1. mkdocstrings_handlers/matlab/collect.py +84 -32
  2. mkdocstrings_handlers/matlab/handler.py +31 -10
  3. mkdocstrings_handlers/matlab/models.py +60 -28
  4. mkdocstrings_handlers/matlab/templates/material/children.html.jinja +172 -0
  5. mkdocstrings_handlers/matlab/templates/material/docstring/namespaces.html.jinja +86 -0
  6. mkdocstrings_handlers/matlab/templates/material/docstring/properties.html.jinja +109 -0
  7. mkdocstrings_handlers/matlab/templates/material/folder.html.jinja +121 -0
  8. mkdocstrings_handlers/matlab/templates/material/namespace.html.jinja +121 -0
  9. mkdocstrings_handlers/matlab/templates/material/property.html.jinja +120 -0
  10. mkdocstrings_handlers/matlab/templates/material/style.css +26 -0
  11. mkdocstrings_handlers/matlab/templates/material/summary/namespaces.html.jinja +21 -0
  12. mkdocstrings_handlers/matlab/templates/material/summary/properties.html.jinja +21 -0
  13. mkdocstrings_handlers/matlab/templates/material/summary.html.jinja +26 -0
  14. {mkdocstrings_matlab-0.6.0.dist-info → mkdocstrings_matlab-0.8.0.dist-info}/METADATA +9 -9
  15. mkdocstrings_matlab-0.8.0.dist-info/RECORD +21 -0
  16. mkdocs_material_matlab/__init__.py +0 -4
  17. mkdocs_material_matlab/css/style.css +0 -7
  18. mkdocs_material_matlab/mkdocs_material_matlab.py +0 -20
  19. mkdocstrings_matlab-0.6.0.dist-info/RECORD +0 -15
  20. mkdocstrings_matlab-0.6.0.dist-info/entry_points.txt +0 -2
  21. {mkdocstrings_matlab-0.6.0.dist-info → mkdocstrings_matlab-0.8.0.dist-info}/WHEEL +0 -0
  22. {mkdocstrings_matlab-0.6.0.dist-info → mkdocstrings_matlab-0.8.0.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,86 @@
1
+ {#- Template for "Namespaces" sections in docstrings.
2
+
3
+ This template renders a list of documented namespaces in the format
4
+ specified with the [`docstring_section_style`][] configuration option.
5
+
6
+ Context:
7
+ section (griffe.DocstringSectionAttributes): The section to render.
8
+ -#}
9
+
10
+ {% block logs scoped %}
11
+ {#- Logging block.
12
+
13
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
14
+ -#}
15
+ {{ log.debug("Rendering namespaces section") }}
16
+ {% endblock logs %}
17
+
18
+ {% import "language"|get_template as lang with context %}
19
+ {#- Language module providing the `t` translation method. -#}
20
+
21
+ {% if config.docstring_section_style == "table" %}
22
+ {% block table_style scoped %}
23
+ {#- Block for the `table` section style. -#}
24
+ <p><span class="doc-section-title">{{ section.title or "Namespaces:" }}</span></p>
25
+ <table>
26
+ <thead>
27
+ <tr>
28
+ <th>{{ lang.t("Name") }}</th>
29
+ <th>{{ lang.t("Description") }}</th>
30
+ </tr>
31
+ </thead>
32
+ <tbody>
33
+ {% for module in section.value %}
34
+ <tr class="doc-section-item">
35
+ <td><code><autoref identifier="{{ obj.path }}.{{ module.name }}" optional hover>{{ module.name }}</autoref></code></td>
36
+ <td>
37
+ <div class="doc-md-description">
38
+ {{ module.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
39
+ </div>
40
+ </td>
41
+ </tr>
42
+ {% endfor %}
43
+ </tbody>
44
+ </table>
45
+ {% endblock table_style %}
46
+ {% elif config.docstring_section_style == "list" %}
47
+ {% block list_style scoped %}
48
+ {#- Block for the `list` section style. -#}
49
+ <p><span class="doc-section-title">{{ section.title or "Namespaces:" }}</span></p>
50
+ <ul>
51
+ {% for module in section.value %}
52
+ <li class="doc-section-item field-body">
53
+ <b><code><autoref identifier="{{ obj.path }}.{{ module.name }}" optional hover>{{ module.name }}</autoref></code></b>
54
+
55
+ <div class="doc-md-description">
56
+ {{ module.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
57
+ </div>
58
+ </li>
59
+ {% endfor %}
60
+ </ul>
61
+ {% endblock list_style %}
62
+ {% elif config.docstring_section_style == "spacy" %}
63
+ {% block spacy_style scoped %}
64
+ {#- Block for the `spacy` section style. -#}
65
+ <table>
66
+ <thead>
67
+ <tr>
68
+ <th><span class="doc-section-title">{{ (section.title or "NAMESPACE:").rstrip(":").upper() }}</span></th>
69
+ <th><span>{{ lang.t("DESCRIPTION") }}</span></th>
70
+ </tr>
71
+ </thead>
72
+ <tbody>
73
+ {% for module in section.value %}
74
+ <tr class="doc-section-item">
75
+ <td><code><autoref identifier="{{ obj.path }}.{{ module.name }}" optional hover>{{ module.name }}</autoref></code></td>
76
+ <td class="doc-module-details">
77
+ <div class="doc-md-description">
78
+ {{ module.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
79
+ </div>
80
+ </td>
81
+ </tr>
82
+ {% endfor %}
83
+ </tbody>
84
+ </table>
85
+ {% endblock spacy_style %}
86
+ {% endif %}
@@ -0,0 +1,109 @@
1
+ {#- Template for "Properties" sections in docstrings.
2
+
3
+ This template renders a list of documented properties in the format
4
+ specified with the [`docstring_section_style`][] configuration option.
5
+
6
+ Context:
7
+ section (griffe.DocstringSectionAttributes): The section to render.
8
+ -#}
9
+
10
+ {% block logs scoped %}
11
+ {#- Logging block.
12
+
13
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
14
+ -#}
15
+ {{ log.debug("Rendering properties section") }}
16
+ {% endblock logs %}
17
+
18
+ {% import "language"|get_template as lang with context %}
19
+ {#- Language module providing the `t` translation method. -#}
20
+
21
+ {% if config.docstring_section_style == "table" %}
22
+ {% block table_style scoped %}
23
+ {#- Block for the `table` section style. -#}
24
+ <p><span class="doc-section-title">{{ section.title or "Properties:" }}</span></p>
25
+ <table>
26
+ <thead>
27
+ <tr>
28
+ <th>{{ lang.t("Name") }}</th>
29
+ <th>{{ lang.t("Type") }}</th>
30
+ <th>{{ lang.t("Description") }}</th>
31
+ </tr>
32
+ </thead>
33
+ <tbody>
34
+ {% for attribute in section.value %}
35
+ <tr class="doc-section-item">
36
+ <td><code><autoref identifier="{{ obj.path }}.{{ attribute.name }}" optional hover>{{ attribute.name }}</autoref></code></td>
37
+ <td>
38
+ {% if attribute.annotation %}
39
+ {% with expression = attribute.annotation %}
40
+ <code>{% include "expression"|get_template with context %}</code>
41
+ {% endwith %}
42
+ {% endif %}
43
+ </td>
44
+ <td>
45
+ <div class="doc-md-description">
46
+ {{ attribute.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
47
+ </div>
48
+ </td>
49
+ </tr>
50
+ {% endfor %}
51
+ </tbody>
52
+ </table>
53
+ {% endblock table_style %}
54
+ {% elif config.docstring_section_style == "list" %}
55
+ {% block list_style scoped %}
56
+ {#- Block for the `list` section style. -#}
57
+ <p><span class="doc-section-title">{{ section.title or "Properties:" }}</span></p>
58
+ <ul>
59
+ {% for attribute in section.value %}
60
+ <li class="doc-section-item field-body">
61
+ <b><code><autoref identifier="{{ obj.path }}.{{ attribute.name }}" optional hover>{{ attribute.name }}</autoref></code></b>
62
+ {% if attribute.annotation %}
63
+ {% with expression = attribute.annotation %}
64
+ (<code>{% include "expression"|get_template with context %}</code>)
65
+ {% endwith %}
66
+ {% endif %}
67
+
68
+ <div class="doc-md-description">
69
+ {{ attribute.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
70
+ </div>
71
+ </li>
72
+ {% endfor %}
73
+ </ul>
74
+ {% endblock list_style %}
75
+ {% elif config.docstring_section_style == "spacy" %}
76
+ {% block spacy_style scoped %}
77
+ {#- Block for the `spacy` section style. -#}
78
+ <table>
79
+ <thead>
80
+ <tr>
81
+ <th><span class="doc-section-title">{{ (section.title or "PROPERTY:").rstrip(":").upper() }}</span></th>
82
+ <th><span>{{ lang.t("DESCRIPTION") }}</span></th>
83
+ </tr>
84
+ </thead>
85
+ <tbody>
86
+ {% for attribute in section.value %}
87
+ <tr class="doc-section-item">
88
+ <td><code><autoref identifier="{{ obj.path }}.{{ attribute.name }}" optional hover>{{ attribute.name }}</autoref></code></td>
89
+ <td class="doc-attribute-details">
90
+ <div class="doc-md-description">
91
+ {{ attribute.description|convert_markdown(heading_level, html_id, autoref_hook=autoref_hook) }}
92
+ </div>
93
+ <p>
94
+ {% if attribute.annotation %}
95
+ <span class="doc-attribute-annotation">
96
+ <b>TYPE:</b>
97
+ {% with expression = attribute.annotation %}
98
+ <code>{% include "expression"|get_template with context %}</code>
99
+ {% endwith %}
100
+ </span>
101
+ {% endif %}
102
+ </p>
103
+ </td>
104
+ </tr>
105
+ {% endfor %}
106
+ </tbody>
107
+ </table>
108
+ {% endblock spacy_style %}
109
+ {% endif %}
@@ -0,0 +1,121 @@
1
+ {#- Template for Python modules.
2
+
3
+ This template renders a Python module.
4
+
5
+ Context:
6
+ module (griffe.Module): The module to render.
7
+ root (bool): Whether this is the root object, injected with `:::` in a Markdown page.
8
+ heading_level (int): The HTML heading level to use.
9
+ config (dict): The configuration options.
10
+ -#}
11
+
12
+ {% block logs scoped %}
13
+ {#- Logging block.
14
+
15
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
16
+ -#}
17
+ {{ log.debug("Rendering " + module.path) }}
18
+ {% endblock logs %}
19
+
20
+ <div class="doc doc-object doc-module">
21
+ {% with obj = module, html_id = module.path %}
22
+
23
+ {% if root %}
24
+ {% set show_full_path = config.show_root_full_path %}
25
+ {% set root_members = True %}
26
+ {% elif root_members %}
27
+ {% set show_full_path = config.show_root_members_full_path or config.show_object_full_path %}
28
+ {% set root_members = False %}
29
+ {% else %}
30
+ {% set show_full_path = config.show_object_full_path %}
31
+ {% endif %}
32
+
33
+ {% set module_name = module.path if show_full_path else module.name %}
34
+
35
+ {% if not root or config.show_root_heading %}
36
+ {% filter heading(
37
+ heading_level,
38
+ role="module",
39
+ id=html_id,
40
+ class="doc doc-heading",
41
+ toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-folder"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + module.name,
42
+ ) %}
43
+
44
+ {% block heading scoped %}
45
+ {#- Heading block.
46
+
47
+ This block renders the heading for the module.
48
+ -#}
49
+ {% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-folder"></code>{% endif %}
50
+ {% if config.separate_signature %}
51
+ <span class="doc doc-object-name doc-module-name">{{ module_name }}</span>
52
+ {% else %}
53
+ <code>{{ module_name }}</code>
54
+ {% endif %}
55
+ {% endblock heading %}
56
+
57
+ {% block labels scoped %}
58
+ {#- Labels block.
59
+
60
+ This block renders the labels for the module.
61
+ -#}
62
+ {% with labels = module.labels %}
63
+ {% include "labels"|get_template with context %}
64
+ {% endwith %}
65
+ {% endblock labels %}
66
+
67
+ {% endfilter %}
68
+
69
+ {% else %}
70
+ {% if config.show_root_toc_entry %}
71
+ {% filter heading(heading_level,
72
+ role="module",
73
+ id=html_id,
74
+ toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-folder"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + module.name,
75
+ hidden=True,
76
+ ) %}
77
+ {% endfilter %}
78
+ {% endif %}
79
+ {% set heading_level = heading_level - 1 %}
80
+ {% endif %}
81
+
82
+ <div class="doc doc-contents {% if root %}first{% endif %}">
83
+ {% block contents scoped %}
84
+ {#- Contents block.
85
+
86
+ This block renders the contents of the module.
87
+ It contains other blocks that users can override.
88
+ Overriding the contents block allows to rearrange the order of the blocks.
89
+ -#}
90
+ {% block docstring scoped %}
91
+ {#- Docstring block.
92
+
93
+ This block renders the docstring for the module.
94
+ -#}
95
+ {% with docstring_sections = module.docstring.parsed %}
96
+ {% include "docstring"|get_template with context %}
97
+ {% endwith %}
98
+ {% endblock docstring %}
99
+
100
+ {% block summary scoped %}
101
+ {#- Summary block.
102
+
103
+ This block renders auto-summaries for classes, methods, and attributes.
104
+ -#}
105
+ {% include "summary"|get_template with context %}
106
+ {% endblock summary %}
107
+
108
+ {% block children scoped %}
109
+ {#- Children block.
110
+
111
+ This block renders the children (members) of the module.
112
+ -#}
113
+ {% set root = False %}
114
+ {% set heading_level = heading_level + 1 %}
115
+ {% include "children"|get_template with context %}
116
+ {% endblock children %}
117
+ {% endblock contents %}
118
+ </div>
119
+
120
+ {% endwith %}
121
+ </div>
@@ -0,0 +1,121 @@
1
+ {#- Template for Python modules.
2
+
3
+ This template renders a Python module.
4
+
5
+ Context:
6
+ module (griffe.Module): The module to render.
7
+ root (bool): Whether this is the root object, injected with `:::` in a Markdown page.
8
+ heading_level (int): The HTML heading level to use.
9
+ config (dict): The configuration options.
10
+ -#}
11
+
12
+ {% block logs scoped %}
13
+ {#- Logging block.
14
+
15
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
16
+ -#}
17
+ {{ log.debug("Rendering " + module.path) }}
18
+ {% endblock logs %}
19
+
20
+ <div class="doc doc-object doc-module">
21
+ {% with obj = module, html_id = module.path %}
22
+
23
+ {% if root %}
24
+ {% set show_full_path = config.show_root_full_path %}
25
+ {% set root_members = True %}
26
+ {% elif root_members %}
27
+ {% set show_full_path = config.show_root_members_full_path or config.show_object_full_path %}
28
+ {% set root_members = False %}
29
+ {% else %}
30
+ {% set show_full_path = config.show_object_full_path %}
31
+ {% endif %}
32
+
33
+ {% set module_name = module.path if show_full_path else module.name %}
34
+
35
+ {% if not root or config.show_root_heading %}
36
+ {% filter heading(
37
+ heading_level,
38
+ role="module",
39
+ id=html_id,
40
+ class="doc doc-heading",
41
+ toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-namespace"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + module.name,
42
+ ) %}
43
+
44
+ {% block heading scoped %}
45
+ {#- Heading block.
46
+
47
+ This block renders the heading for the module.
48
+ -#}
49
+ {% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-namespace"></code>{% endif %}
50
+ {% if config.separate_signature %}
51
+ <span class="doc doc-object-name doc-module-name">{{ module_name }}</span>
52
+ {% else %}
53
+ <code>{{ module_name }}</code>
54
+ {% endif %}
55
+ {% endblock heading %}
56
+
57
+ {% block labels scoped %}
58
+ {#- Labels block.
59
+
60
+ This block renders the labels for the module.
61
+ -#}
62
+ {% with labels = module.labels %}
63
+ {% include "labels"|get_template with context %}
64
+ {% endwith %}
65
+ {% endblock labels %}
66
+
67
+ {% endfilter %}
68
+
69
+ {% else %}
70
+ {% if config.show_root_toc_entry %}
71
+ {% filter heading(heading_level,
72
+ role="module",
73
+ id=html_id,
74
+ toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-namespace"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + module.name,
75
+ hidden=True,
76
+ ) %}
77
+ {% endfilter %}
78
+ {% endif %}
79
+ {% set heading_level = heading_level - 1 %}
80
+ {% endif %}
81
+
82
+ <div class="doc doc-contents {% if root %}first{% endif %}">
83
+ {% block contents scoped %}
84
+ {#- Contents block.
85
+
86
+ This block renders the contents of the module.
87
+ It contains other blocks that users can override.
88
+ Overriding the contents block allows to rearrange the order of the blocks.
89
+ -#}
90
+ {% block docstring scoped %}
91
+ {#- Docstring block.
92
+
93
+ This block renders the docstring for the module.
94
+ -#}
95
+ {% with docstring_sections = module.docstring.parsed %}
96
+ {% include "docstring"|get_template with context %}
97
+ {% endwith %}
98
+ {% endblock docstring %}
99
+
100
+ {% block summary scoped %}
101
+ {#- Summary block.
102
+
103
+ This block renders auto-summaries for classes, methods, and attributes.
104
+ -#}
105
+ {% include "summary"|get_template with context %}
106
+ {% endblock summary %}
107
+
108
+ {% block children scoped %}
109
+ {#- Children block.
110
+
111
+ This block renders the children (members) of the module.
112
+ -#}
113
+ {% set root = False %}
114
+ {% set heading_level = heading_level + 1 %}
115
+ {% include "children"|get_template with context %}
116
+ {% endblock children %}
117
+ {% endblock contents %}
118
+ </div>
119
+
120
+ {% endwith %}
121
+ </div>
@@ -0,0 +1,120 @@
1
+ {#- Template for Python attributes.
2
+
3
+ This template renders a Python attribute (or variable).
4
+ This can be a module attribute or a class attribute.
5
+
6
+ Context:
7
+ attribute (griffe.Attribute): The attribute to render.
8
+ root (bool): Whether this is the root object, injected with `:::` in a Markdown page.
9
+ heading_level (int): The HTML heading level to use.
10
+ config (dict): The configuration options.
11
+ -#}
12
+
13
+ {% block logs scoped %}
14
+ {#- Logging block.
15
+
16
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
17
+ -#}
18
+ {{ log.debug("Rendering " + attribute.path) }}
19
+ {% endblock logs %}
20
+
21
+ <div class="doc doc-object doc-attribute">
22
+ {% with obj = attribute, html_id = attribute.path %}
23
+
24
+ {% if root %}
25
+ {% set show_full_path = config.show_root_full_path %}
26
+ {% set root_members = True %}
27
+ {% elif root_members %}
28
+ {% set show_full_path = config.show_root_members_full_path or config.show_object_full_path %}
29
+ {% set root_members = False %}
30
+ {% else %}
31
+ {% set show_full_path = config.show_object_full_path %}
32
+ {% endif %}
33
+
34
+ {% set attribute_name = attribute.path if show_full_path else attribute.name %}
35
+
36
+ {% if not root or config.show_root_heading %}
37
+ {% filter heading(
38
+ heading_level,
39
+ role="data" if attribute.parent.kind.value == "module" else "attr",
40
+ id=html_id,
41
+ class="doc doc-heading",
42
+ toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-property"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + attribute.name,
43
+ ) %}
44
+
45
+ {% block heading scoped %}
46
+ {#- Heading block.
47
+
48
+ This block renders the heading for the attribute.
49
+ -#}
50
+ {% if config.show_symbol_type_heading %}<code class="doc-symbol doc-symbol-heading doc-symbol-property"></code>{% endif %}
51
+ {% if config.separate_signature %}
52
+ <span class="doc doc-object-name doc-attribute-name">{{ attribute_name }}</span>
53
+ {% else %}
54
+ {%+ filter highlight(language="python", inline=True) %}
55
+ {{ attribute_name }}{% if attribute.annotation and config.show_signature_annotations %}: {{ attribute.annotation }}{% endif %}
56
+ {% if attribute.value %} = {{ attribute.value }}{% endif %}
57
+ {% endfilter %}
58
+ {% endif %}
59
+ {% endblock heading %}
60
+
61
+ {% block labels scoped %}
62
+ {#- Labels block.
63
+
64
+ This block renders the labels for the attribute.
65
+ -#}
66
+ {% with labels = attribute.labels %}
67
+ {% include "labels"|get_template with context %}
68
+ {% endwith %}
69
+ {% endblock labels %}
70
+
71
+ {% endfilter %}
72
+
73
+ {% block signature scoped %}
74
+ {#- Signature block.
75
+
76
+ This block renders the signature for the attribute.
77
+ -#}
78
+ {% if config.separate_signature %}
79
+ {% filter format_attribute(attribute, config.line_length, crossrefs=config.signature_crossrefs) %}
80
+ {{ attribute.name }}
81
+ {% endfilter %}
82
+ {% endif %}
83
+ {% endblock signature %}
84
+
85
+ {% else %}
86
+
87
+ {% if config.show_root_toc_entry %}
88
+ {% filter heading(heading_level,
89
+ role="data" if attribute.parent.kind.value == "module" else "attr",
90
+ id=html_id,
91
+ toc_label=('<code class="doc-symbol doc-symbol-toc doc-symbol-property"></code>&nbsp;'|safe if config.show_symbol_type_toc else '') + attribute.name,
92
+ hidden=True,
93
+ ) %}
94
+ {% endfilter %}
95
+ {% endif %}
96
+ {% set heading_level = heading_level - 1 %}
97
+ {% endif %}
98
+
99
+ <div class="doc doc-contents {% if root %}first{% endif %}">
100
+ {% block contents scoped %}
101
+ {#- Contents block.
102
+
103
+ This block renders the contents of the attribute.
104
+ It contains other blocks that users can override.
105
+ Overriding the contents block allows to rearrange the order of the blocks.
106
+ -#}
107
+ {% block docstring scoped %}
108
+ {#- Docstring block.
109
+
110
+ This block renders the docstring for the attribute.
111
+ -#}
112
+ {% with docstring_sections = attribute.docstring.parsed %}
113
+ {% include "docstring"|get_template with context %}
114
+ {% endwith %}
115
+ {% endblock docstring %}
116
+ {% endblock contents %}
117
+ </div>
118
+
119
+ {% endwith %}
120
+ </div>
@@ -0,0 +1,26 @@
1
+ code.doc-symbol-namespace {
2
+ color: var(--doc-symbol-module-fg-color);
3
+ background-color: var(--doc-symbol-module-bg-color);
4
+ }
5
+
6
+ code.doc-symbol-namespace::after {
7
+ content: "name";
8
+ }
9
+
10
+ code.doc-symbol-folder {
11
+ color: var(--doc-symbol-module-fg-color);
12
+ background-color: var(--doc-symbol-module-bg-color);
13
+ }
14
+
15
+ code.doc-symbol-folder::after {
16
+ content: "dir";
17
+ }
18
+
19
+ code.doc-symbol-property {
20
+ color: var(--doc-symbol-attribute-fg-color);
21
+ background-color: var(--doc-symbol-attribute-bg-color);
22
+ }
23
+
24
+ code.doc-symbol-property::after {
25
+ content: "prop";
26
+ }
@@ -0,0 +1,21 @@
1
+ {#- Summary of namespaces. -#}
2
+
3
+ {% block logs scoped %}
4
+ {#- Logging block.
5
+
6
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
7
+ -#}
8
+ {% endblock logs %}
9
+
10
+ {% with section = obj.modules
11
+ |filter_objects(
12
+ filters=config.filters,
13
+ members_list=members_list,
14
+ inherited_members=config.inherited_members,
15
+ keep_no_docstrings=config.show_if_no_docstring,
16
+ )
17
+ |order_members(config.members_order.alphabetical, members_list)
18
+ |as_modules_section(check_public=not members_list)
19
+ %}
20
+ {% if section %}{% include "docstring/namespaces"|get_template with context %}{% endif %}
21
+ {% endwith %}
@@ -0,0 +1,21 @@
1
+ {#- Summary of properties. -#}
2
+
3
+ {% block logs scoped %}
4
+ {#- Logging block.
5
+
6
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
7
+ -#}
8
+ {% endblock logs %}
9
+
10
+ {% with section = obj.attributes
11
+ |filter_objects(
12
+ filters=config.filters,
13
+ members_list=members_list,
14
+ inherited_members=config.inherited_members,
15
+ keep_no_docstrings=config.show_if_no_docstring,
16
+ )
17
+ |order_members(config.members_order, members_list)
18
+ |as_attributes_section(check_public=not members_list)
19
+ %}
20
+ {% if section %}{% include "docstring/properties"|get_template with context %}{% endif %}
21
+ {% endwith %}
@@ -0,0 +1,26 @@
1
+ {#- Template for auto-summaries. -#}
2
+
3
+ {% block logs scoped %}
4
+ {#- Logging block.
5
+
6
+ This block can be used to log debug messages, deprecation messages, warnings, etc.
7
+ -#}
8
+ {% endblock logs %}
9
+
10
+ {% with members_list = config.members if root_members else None %}
11
+ {% if config.summary.modules %}
12
+ {% include "summary/namespaces"|get_template with context %}
13
+ {% endif %}
14
+
15
+ {% if config.summary.classes %}
16
+ {% include "summary/classes"|get_template with context %}
17
+ {% endif %}
18
+
19
+ {% if config.summary.functions %}
20
+ {% include "summary/functions"|get_template with context %}
21
+ {% endif %}
22
+
23
+ {% if config.summary.attributes %}
24
+ {% include "summary/properties"|get_template with context %}
25
+ {% endif %}
26
+ {% endwith %}