File tree Expand file tree Collapse file tree 11 files changed +33
-33
lines changed
src/mkdocstrings_handlers/python/templates/material/_base/docstring Expand file tree Collapse file tree 11 files changed +33
-33
lines changed Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Attributes:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
35
35
</ table >
36
36
{% endblock table_style %}
37
37
{% elif config.docstring_section_style == "list" %}
38
- {% block list_style %}
38
+ {% block list_style scoped %}
39
39
< p > {{ section.title or lang.t("Attributes:") }}</ p >
40
40
< ul >
41
41
{% for attribute in section.value %}
55
55
</ ul >
56
56
{% endblock list_style %}
57
57
{% elif config.docstring_section_style == "spacy" %}
58
- {% block spacy_style %}
58
+ {% block spacy_style scoped %}
59
59
< table >
60
60
< thead >
61
61
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Classes:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
27
27
</ table >
28
28
{% endblock table_style %}
29
29
{% elif config.docstring_section_style == "list" %}
30
- {% block list_style %}
30
+ {% block list_style scoped %}
31
31
< p > {{ section.title or lang.t("Classes:") }}</ p >
32
32
< ul >
33
33
{% for class in section.value %}
42
42
</ ul >
43
43
{% endblock list_style %}
44
44
{% elif config.docstring_section_style == "spacy" %}
45
- {% block spacy_style %}
45
+ {% block spacy_style scoped %}
46
46
< table >
47
47
< thead >
48
48
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Methods:") if obj.is_class else lang.t("Functions:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
29
29
</ table >
30
30
{% endblock table_style %}
31
31
{% elif config.docstring_section_style == "list" %}
32
- {% block list_style %}
32
+ {% block list_style scoped %}
33
33
< p > {{ section.title or lang.t("Methods:") if obj.is_class else lang.t("Functions:") }}</ p >
34
34
< ul >
35
35
{% for function in section.value %}
46
46
</ ul >
47
47
{% endblock list_style %}
48
48
{% elif config.docstring_section_style == "spacy" %}
49
- {% block spacy_style %}
49
+ {% block spacy_style scoped %}
50
50
< table >
51
51
< thead >
52
52
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Modules:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
27
27
</ table >
28
28
{% endblock table_style %}
29
29
{% elif config.docstring_section_style == "list" %}
30
- {% block list_style %}
30
+ {% block list_style scoped %}
31
31
< p > {{ section.title or lang.t("Modules:") }}</ p >
32
32
< ul >
33
33
{% for module in section.value %}
42
42
</ ul >
43
43
{% endblock list_style %}
44
44
{% elif config.docstring_section_style == "spacy" %}
45
- {% block spacy_style %}
45
+ {% block spacy_style scoped %}
46
46
< table >
47
47
< thead >
48
48
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Other Parameters:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
35
35
</ table >
36
36
{% endblock table_style %}
37
37
{% elif config.docstring_section_style == "list" %}
38
- {% block list_style %}
38
+ {% block list_style scoped %}
39
39
< p > {{ section.title or lang.t("Other Parameters:") }}</ p >
40
40
< ul >
41
41
{% for parameter in section.value %}
55
55
</ ul >
56
56
{% endblock list_style %}
57
57
{% elif config.docstring_section_style == "spacy" %}
58
- {% block spacy_style %}
58
+ {% block spacy_style scoped %}
59
59
< table >
60
60
< thead >
61
61
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Parameters:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
45
45
</ table >
46
46
{% endblock table_style %}
47
47
{% elif config.docstring_section_style == "list" %}
48
- {% block list_style %}
48
+ {% block list_style scoped %}
49
49
< p > {{ section.title or lang.t("Parameters:") }}</ p >
50
50
< ul >
51
51
{% for parameter in section.value %}
70
70
</ ul >
71
71
{% endblock list_style %}
72
72
{% elif config.docstring_section_style == "spacy" %}
73
- {% block spacy_style %}
73
+ {% block spacy_style scoped %}
74
74
< table >
75
75
< thead >
76
76
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Raises:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
33
33
</ table >
34
34
{% endblock table_style %}
35
35
{% elif config.docstring_section_style == "list" %}
36
- {% block list_style %}
36
+ {% block list_style scoped %}
37
37
< p > {{ lang.t(section.title) or lang.t("Raises:") }}</ p >
38
38
< ul >
39
39
{% for raises in section.value %}
52
52
</ ul >
53
53
{% endblock list_style %}
54
54
{% elif config.docstring_section_style == "spacy" %}
55
- {% block spacy_style %}
55
+ {% block spacy_style scoped %}
56
56
< table >
57
57
< thead >
58
58
< tr >
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@
<
10000
/code>
3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
{% set name_column = section.value|selectattr("name")|any %}
8
8
< p > < strong > {{ section.title or lang.t("Receives:") }}</ strong > </ p >
9
9
< table >
36
36
</ table >
37
37
{% endblock table_style %}
38
38
{% elif config.docstring_section_style == "list" %}
39
- {% block list_style %}
39
+ {% block list_style scoped %}
40
40
< p > {{ section.title or lang.t("Receives:") }}</ p >
41
41
< ul >
42
42
{% for receives in section.value %}
58
58
</ ul >
59
59
{% endblock list_style %}
60
60
{% elif config.docstring_section_style == "spacy" %}
61
- {% block spacy_style %}
61
+ {% block spacy_style scoped %}
62
62
< table >
63
63
< thead >
64
64
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
{% set name_column = section.value|selectattr("name")|any %}
8
8
< p > < strong > {{ section.title or lang.t("Returns:") }}</ strong > </ p >
9
9
< table >
36
36
</ table >
37
37
{% endblock table_style %}
38
38
{% elif config.docstring_section_style == "list" %}
39
- {% block list_style %}
39
+ {% block list_style scoped %}
40
40
< p > {{ section.title or lang.t("Returns:") }}</ p >
41
41
< ul >
42
42
{% for returns in section.value %}
58
58
</ ul >
59
59
{% endblock list_style %}
60
60
{% elif config.docstring_section_style == "spacy" %}
61
- {% block spacy_style %}
61
+ {% block spacy_style scoped %}
62
62
< table >
63
63
< thead >
64
64
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
< p > < strong > {{ section.title or lang.t("Warns:") }}</ strong > </ p >
8
8
< table >
9
9
< thead >
33
33
</ table >
34
34
{% endblock table_style %}
35
35
{% elif config.docstring_section_style == "list" %}
36
- {% block list_style %}
36
+ {% block list_style scoped %}
37
37
< p > {{ section.title or lang.t("Warns:") }}</ p >
38
38
< ul >
39
39
{% for warns in section.value %}
52
52
</ ul >
53
53
{% endblock list_style %}
54
54
{% elif config.docstring_section_style == "spacy" %}
55
- {% block spacy_style %}
55
+ {% block spacy_style scoped %}
56
56
< table >
57
57
< thead >
58
58
< tr >
Original file line number Diff line number Diff line change 3
3
{% import "language.html" as lang with context %}
4
4
5
5
{% if config.docstring_section_style == "table" %}
6
- {% block table_style %}
6
+ {% block table_style scoped %}
7
7
{% set name_column = section.value|selectattr("name")|any %}
8
8
< p > < strong > {{ section.title or lang.t("Yields:") }}</ strong > </ p >
9
9
< table >
36
36
</ table >
37
37
{% endblock table_style %}
38
38
{% elif config.docstring_section_style == "list" %}
39
- {% block list_style %}
39
+ {% block list_style scoped %}
40
40
< p > {{ section.title or lang.t("Yields:") }}</ p >
41
41
< ul >
42
42
{% for yields in section.value %}
58
58
</ ul >
59
59
{% endblock list_style %}
60
60
{% elif config.docstring_section_style == "spacy" %}
61
- {% block spacy_style %}
61
+ {% block spacy_style scoped %}
62
62
< table >
63
63
< thead >
64
64
< tr >
You can’t perform that action at this time.
0 commit comments