Skip to content

Commit 72f6351

Browse files
committed
Regenerate API Documentation
1 parent af71ab9 commit 72f6351

24 files changed

+380
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*Tweaks to the Pydata default CSS */
2+
3+
/*No yellow background highlight when targeted by summary tables */
4+
/*dt:target { background-color: #f8f8f8; border: 1px solid black, }*/
5+
dt:target { background: transparent;}
6+
/*More space between H1s and signatures in API reference*/
7+
h1 { margin-bottom: 40px; }
8+
9+
/*No line underneath summary table headings (clashes with line above first member)*/
10+
p.rubric { border-bottom: 0px; }
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/* Override nav bar color */
2+
/*.wy-side-nav-search {
3+
background-color: #fbfbb6;
4+
}
5+
.wy-side-nav-search > a {
6+
color: #b2355c
7+
}*/
8+
9+
/* Override text bar color */
10+
/*.caption-text {
11+
color: #b2355c;
12+
}*/
13+
14+
/* Override code signature colour */
15+
/*.rst-content dl:not(.docutils) dt {
16+
background: #fbfbb6;
17+
color: #b2355c;
18+
border-top: solid 3px #b2355c;
19+
}*/
20+
21+
/* Override hyperlink colour */
22+
/* a {
23+
color: #b2355c;
24+
}*/
25+
26+
/* Make content width wider*/
27+
.wy-nav-content {
28+
max-width: 75% !important;
29+
}
30+
31+
/* Word-wrap tables */
32+
.wy-table-responsive table td,
33+
.wy-table-responsive table th {
34+
white-space: normal;
35+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. autoclass:: {{ objname }}
6+
:members:
7+
:show-inheritance:
8+
:special-members: __call__, __add__, __mul__
9+
10+
{% block methods %}
11+
{% if methods %}
12+
.. rubric:: {{ _('Methods') }}
13+
14+
.. autosummary::
15+
{% for item in methods %}
16+
{%- if not item.startswith('_') %}
17+
{%- if item not in inherited_members %}
18+
~{{ name }}.{{ item }}
19+
{%- endif -%}
20+
{%- endif -%}
21+
{%- endfor %}
22+
{% endif %}
23+
{% endblock %}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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+
{% for item in attributes %}
12+
{{ item }}
13+
{%- endfor %}
14+
{% endif %}
15+
{% endblock %}
16+
17+
{% block functions %}
18+
19+
{% if functions %}
20+
.. rubric:: {{ _('Functions') }}
21+
22+
.. autosummary::
23+
:toctree:
24+
{% for item in functions %}
25+
{%- if not item.startswith('_') %}
26+
{{ item }}
27+
{% endif %}
28+
{%- endfor %}
29+
{% endif %}
30+
{% endblock %}
31+
32+
{% block classes %}
33+
{% if classes %}
34+
.. rubric:: {{ _('Classes') }}
35+
36+
.. autosummary::
37+
:toctree:
38+
:template: custom-class-template.rst
39+
{% for item in classes %}
40+
{{ item }}
41+
{%- endfor %}
42+
{% endif %}
43+
{% endblock %}
44+
45+
{% block exceptions %}
46+
{% if exceptions %}
47+
.. rubric:: {{ _('Exceptions') }}
48+
49+
.. autosummary::
50+
:toctree:
51+
{% for item in exceptions %}
52+
{{ item }}
53+
{%- endfor %}
54+
{% endif %}
55+
{% endblock %}
56+
57+
{% block modules %}
58+
{% if modules %}
59+
.. autosummary::
60+
:toctree:
61+
:template: custom-module-template.rst
62+
:recursive:
63+
{% for item in modules %}
64+
{{ item }}
65+
{%- endfor %}
66+
{% endif %}
67+
{% endblock %}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
modelspec.base\_types.Base
2+
==========================
3+
4+
.. currentmodule:: modelspec.base_types
5+
6+
.. autoclass:: Base
7+
:members:
8+
:show-inheritance:
9+
:special-members: __call__, __add__, __mul__
10+
11+
12+
13+
.. rubric:: Methods
14+
15+
.. autosummary::
16+
17+
~Base.from_bson
18+
~Base.from_bson_file
19+
~Base.from_dict
20+
~Base.from_file
21+
~Base.from_json
22+
~Base.from_json_file
23+
~Base.from_xml
24+
~Base.from_xml_file
25+
~Base.from_yaml_file
26+
~Base.generate_documentation
27+
~Base.get_child
28+
~Base.to_bson
29+
~Base.to_bson_file
30+
~Base.to_dict
31+
~Base.to_json
32+
~Base.to_json_file
33+
~Base.to_xml
34+
~Base.to_xml_file
35+
~Base.to_yaml
36+
~Base.to_yaml_file
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
modelspec.base\_types.EvaluableExpression
2+
=========================================
3+
4+
.. currentmodule:: modelspec.base_types
5+
6+
.. autoclass:: EvaluableExpression
7+
:members:
8+
:show-inheritance:
9+
:special-members: __call__, __add__, __mul__
10+
11+
12+
13+
.. rubric:: Methods
14+
15+
.. autosummary::
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
modelspec.base\_types.print\_
2+
=============================
3+
4+
.. currentmodule:: modelspec.base_types
5+
6+
.. autofunction:: print_
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
modelspec.base\_types.print\_v
2+
==============================
3+
4+
.. currentmodule:: modelspec.base_types
5+
6+
.. autofunction:: print_v
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
modelspec.base\_types
2+
=====================
3+
4+
.. automodule:: modelspec.base_types
5+
6+
7+
8+
9+
10+
11+
12+
13+
.. rubric:: Functions
14+
15+
.. autosummary::
16+
:toctree:
17+
18+
print_
19+
20+
print_v
21+
22+
23+
24+
25+
26+
27+
.. rubric:: Classes
28+
29+
.. autosummary::
30+
:toctree:
31+
:template: custom-class-template.rst
32+
33+
Base
34+
EvaluableExpression
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
modelspec
2+
=========
3+
4+
.. automodule:: modelspec
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
.. autosummary::
26+
:toctree:
27+
:template: custom-module-template.rst
28+
:recursive:
29+
30+
modelspec.base_types
31+
modelspec.utils

0 commit comments

Comments
 (0)