Skip to content

Commit 141e39b

Browse files
committed
add css and template;
1 parent 7ab9111 commit 141e39b

File tree

3 files changed

+112
-0
lines changed

3 files changed

+112
-0
lines changed

docs/_static/css/custom.css

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.math {
2+
text-align: left;
3+
}
4+
.eqno {
5+
float: right;
6+
}
7+
8+
/* .wy-nav-content {
9+
max-width: 100%;
10+
} */
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. autoclass:: {{ objname }}
6+
:members:
7+
:show-inheritance:
8+
:inherited-members:
9+
10+
{% block methods %}
11+
.. automethod:: __init__
12+
13+
{% if methods %}
14+
.. rubric:: {{ _('Methods') }}
15+
16+
.. autosummary::
17+
{% for item in methods %}
18+
~{{ name }}.{{ item }}
19+
{%- endfor %}
20+
{% endif %}
21+
{% endblock %}
22+
23+
{% block attributes %}
24+
{% if attributes %}
25+
.. rubric:: {{ _('Attributes') }}
26+
27+
.. autosummary::
28+
{% for item in attributes %}
29+
~{{ name }}.{{ item }}
30+
{%- endfor %}
31+
{% endif %}
32+
{% endblock %}
+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. automodule:: {{ fullname }}
4+
5+
{% block attributes %}
6+
{% if attributes %}
7+
.. rubric:: Module Attributes
8+
9+
.. autosummary::
10+
:toctree:
11+
:nosignatures:
12+
{% for item in attributes %}
13+
{{ item }}
14+
{%- endfor %}
15+
{% endif %}
16+
{% endblock %}
17+
18+
{% block functions %}
19+
{% if functions %}
20+
.. rubric:: {{ _('Functions') }}
21+
22+
.. autosummary::
23+
:toctree:
24+
:nosignatures:
25+
{% for item in functions %}
26+
{{ item }}
27+
{%- endfor %}
28+
{% endif %}
29+
{% endblock %}
30+
31+
{% block classes %}
32+
{% if classes %}
33+
.. rubric:: {{ _('Classes') }}
34+
35+
.. autosummary::
36+
:toctree:
37+
:template: custom-class-template.rst
38+
{% for item in classes %}
39+
{{ item }}
40+
{%- endfor %}
41+
{% endif %}
42+
{% endblock %}
43+
44+
{% block exceptions %}
45+
{% if exceptions %}
46+
.. rubric:: {{ _('Exceptions') }}
47+
48+
.. autosummary::
49+
:toctree:
50+
:nosignatures:
51+
{% for item in exceptions %}
52+
{{ item }}
53+
{%- endfor %}
54+
{% endif %}
55+
{% endblock %}
56+
57+
{% block modules %}
58+
{% if modules %}
59+
.. rubric:: Modules
60+
61+
.. autosummary::
62+
:toctree:
63+
:template: custom-module-template.rst
64+
:nosignatures:
65+
:recursive:
66+
{% for item in modules %}
67+
{{ item }}
68+
{%- endfor %}
69+
{% endif %}
70+
{% endblock %}

0 commit comments

Comments
 (0)