Skip to content

Commit 7c5a6a0

Browse files
authored
Merge pull request #393 from dbhart/docs-theme
Docs theme
2 parents 733feed + 68136ed commit 7c5a6a0

File tree

116 files changed

+1521
-935
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

116 files changed

+1521
-935
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ temp*
2020
examples/*.inp
2121
wntr/tests/*.png
2222

23+
documentation/_local
24+
documentation/apidoc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1>
2-
<img src="https://raw.githubusercontent.com/usepa/wntr/main/documentation/figures/logo.jpg" width="375">
2+
<img src="https://raw.githubusercontent.com/usepa/wntr/main/documentation/_static/logo.jpg" width="375">
33
</h1><br>
44

55
[![build](https://github.com/USEPA/WNTR/workflows/build/badge.svg)](https://github.com/USEPA/WNTR/actions/workflows/build_tests.yml)

documentation/_static/epa_logo.png

29.2 KB
Loading
File renamed without changes.

documentation/_static/snl_logo.png

4.19 KB
Loading
Lines changed: 42 additions & 0 deletions
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% if objtype == 'property' %}
2+
:orphan:
3+
{% endif %}
4+
5+
{{ objname | escape | underline}}
6+
7+
.. rubric:: *module* :mod:`{{ module }}`
8+
9+
.. currentmodule:: {{ module }}
10+
11+
{% if objtype == 'property' %}
12+
property
13+
{% endif %}
14+
15+
.. auto{{ objtype }}:: {{ fullname | replace(module + ".", module + "::") }}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{{ objname | escape | underline}}
2+
3+
.. rubric:: *module* :mod:`{{ module }}`
4+
5+
.. currentmodule:: {{ module }}
6+
7+
.. autoclass:: {{ objname }}
8+
9+
{% block methods %}
10+
{% if methods %}
11+
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages.
12+
.. autosummary::
13+
14+
{% for item in all_methods %}
15+
{%- if not item.startswith('_') or item in ['__call__'] %}
16+
{{ name }}.{{ item }}
17+
{%- endif -%}
18+
{%- endfor %}
19+
{% endif %}
20+
{% endblock %}
21+
22+
{% block attributes %}
23+
{% if attributes %}
24+
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages.
25+
.. autosummary::
26+
27+
{% for item in all_attributes %}
28+
{%- if not item.startswith('_') %}
29+
{{ name }}.{{ item }}
30+
{%- endif -%}
31+
{%- endfor %}
32+
{% endif %}
33+
{% endblock %}
34+
35+
{% if methods or attributes %}
36+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
37+
{% endif %}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{{ objname | escape | underline}}
2+
3+
.. rubric:: *module* :mod:`{{ module }}`
4+
5+
.. currentmodule:: {{ module }}
6+
7+
.. autoexception:: {{ objname }}
8+
:no-inherited-members:
9+
10+
{% block methods %}
11+
{% if methods %}
12+
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages.
13+
.. autosummary::
14+
15+
{% for item in all_methods %}
16+
{%- if not item.startswith('_') or item in ['__call__'] %}
17+
{{ name }}.{{ item }}
18+
{%- endif -%}
19+
{%- endfor %}
20+
{% endif %}
21+
{% endblock %}
22+
23+
{% block attributes %}
24+
{% if attributes %}
25+
.. HACK -- the point here is that we don't want this to appear in the output, but the autosummary should still generate the pages.
26+
.. autosummary::
27+
28+
{% for item in all_attributes %}
29+
{%- if not item.startswith('_') %}
30+
{{ name }}.{{ item }}
31+
{%- endif -%}
32+
{%- endfor %}
33+
{% endif %}
34+
{% endblock %}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. automodule:: {{ fullname }}
4+
:exclude-members: {% for item in attributes %}{{ item }}, {% endfor %}{% for item in functions %}{{ item }}, {% endfor %}{% for item in classes %}{{ item }}, {% endfor %}{% for item in exceptions %}{{ item }}, {% endfor %}
5+
6+
{% block attributes %}
7+
{% if attributes %}
8+
.. rubric:: {{ _('Module Attributes') }}
9+
10+
.. autosummary::
11+
:toctree:
12+
:template: autosummary/base.rst
13+
{% for item in attributes %}
14+
{{ item }}
15+
{%- endfor %}
16+
{% endif %}
17+
{% endblock %}
18+
19+
{% block functions %}
20+
{% if functions %}
21+
.. rubric:: {{ _('Functions') }}
22+
23+
.. autosummary::
24+
:nosignatures:
25+
:toctree:
26+
:template: autosummary/base.rst
27+
{% for item in functions %}
28+
{{ item }}
29+
{%- endfor %}
30+
{% endif %}
31+
{% endblock %}
32+
33+
{% block classes %}
34+
{% if classes %}
35+
.. rubric:: {{ _('Classes') }}
36+
37+
.. autosummary::
38+
:nosignatures:
39+
:toctree:
40+
:template: autosummary/class.rst
41+
{% for item in classes %}
42+
{{ item }}
43+
{%- endfor %}
44+
{% endif %}
45+
{% endblock %}
46+
47+
{% block exceptions %}
48+
{% if exceptions %}
49+
.. rubric:: {{ _('Exceptions') }}
50+
51+
.. autosummary::
52+
:nosignatures:
53+
:toctree:
54+
:template: autosummary/exception.rst
55+
{% for item in exceptions %}
56+
{{ item }}
57+
{%- endfor %}
58+
{% endif %}
59+
{% endblock %}
60+
61+
{% block modules %}
62+
{% if modules %}
63+
.. rubric:: Modules
64+
65+
.. autosummary::
66+
:toctree:
67+
:recursive:
68+
:template: autosummary/module.rst
69+
{% for item in modules %}
70+
{{ item }}
71+
{%- endfor %}
72+
{% endif %}
73+
{% endblock %}

0 commit comments

Comments
 (0)