Skip to content

Commit 729c347

Browse files
committed
adding in auto documentation
1 parent 24ed229 commit 729c347

File tree

6 files changed

+128
-42
lines changed

6 files changed

+128
-42
lines changed
Lines changed: 32 additions & 0 deletions
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 %}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
{% if functions %}
19+
.. rubric:: {{ _('Functions') }}
20+
21+
.. autosummary::
22+
:toctree:
23+
{% for item in functions %}
24+
{{ item }}
25+
{%- endfor %}
26+
{% endif %}
27+
{% endblock %}
28+
29+
{% block classes %}
30+
{% if classes %}
31+
.. rubric:: {{ _('Classes') }}
32+
33+
.. autosummary::
34+
:toctree:
35+
:template: custom-class-template.rst
36+
{% for item in classes %}
37+
{{ item }}
38+
{%- endfor %}
39+
{% endif %}
40+
{% endblock %}
41+
42+
{% block exceptions %}
43+
{% if exceptions %}
44+
.. rubric:: {{ _('Exceptions') }}
45+
46+
.. autosummary::
47+
:toctree:
48+
{% for item in exceptions %}
49+
{{ item }}
50+
{%- endfor %}
51+
{% endif %}
52+
{% endblock %}
53+
54+
{% block modules %}
55+
{% if modules %}
56+
.. rubric:: Modules
57+
58+
.. autosummary::
59+
:toctree:
60+
:template: custom-module-template.rst
61+
:recursive:
62+
{% for item in modules %}
63+
{{ item }}
64+
{%- endfor %}
65+
{% endif %}
66+
{% endblock %}

docs/api.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ API
33

44
.. autosummary::
55
:toctree: generated
6+
:template: custom-module-template.rst
7+
:recursive:
68

7-
earth
8-
utils
9+
accessvis
10+
accessvis.earth
11+
accessvis.utils
912

1013

1114

docs/conf.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616

1717

1818
# -- Project information -----------------------------------------------------
19-
20-
project = "Basic Sphinx Example Project"
21-
copyright = "2022, Read the Docs core team"
22-
author = "Read the Docs core team"
23-
19+
project = 'ACCESS-Vis'
20+
copyright = '2024, Owen Kaluza'
21+
author = 'Owen Kaluza'
22+
release = 'v0.1'
2423

2524
# -- General configuration ---------------------------------------------------
2625
# -- General configuration
@@ -32,13 +31,7 @@
3231
"sphinx.ext.autosummary",
3332
"sphinx.ext.intersphinx",
3433
]
35-
36-
intersphinx_mapping = {
37-
"rtd": ("https://docs.readthedocs.io/en/stable/", None),
38-
"python": ("https://docs.python.org/3/", None),
39-
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
40-
}
41-
intersphinx_disabled_domains = ["std"]
34+
autosummary_generate = True
4235

4336
templates_path = ["_templates"]
4437

docs/index.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
.. include:: ../README.rst
1+
Welcome to the AccessVis documentation!
2+
=======================================
3+
4+
Visualisation examples and resources, including open-source 3D vis for ACCESS-NRI releases
5+
6+
This repository is intended as a resource for complex visualisation tasks using ACCESS models and other related data sources.
7+
8+
What this space for published source code for our released visualisations which will be added here as soon as tested and ready for public release.
9+
10+
Included the python module 'accessvis' which can be installed from here with `python -m pip install --editable .`
11+
12+
See also the included `install.sh` to set up the jupyter kernels for running in ARE on gadi.
213

3-
Welcome to Lumache's documentation!
4-
===================================
514

6-
**Lumache** (/lu'make/) is a Python library for cooks and food lovers
7-
that creates recipes mixing random ingredients.
8-
It pulls data from the `Open Food Facts database <https://world.openfoodfacts.org/>`_
9-
and offers a *simple* and *intuitive* API.
1015

1116
Check out the :doc:`usage` section for further information, including
1217
how to :ref:`installation` the project.
1318

14-
.. note::
15-
16-
This project is under active development.
1719

1820
Contents
1921
--------

docs/usage.rst

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,19 @@
11
Usage
22
=====
33

4+
Example usage
5+
6+
>>> import accessvis
7+
>>> accessvis.plot_earth()
8+
49
.. _installation:
510

611
Installation
712
------------
813

9-
To use Lumache, first install it using pip:
10-
11-
.. code-block:: console
12-
13-
(.venv) $ pip install lumache
14-
15-
Creating recipes
16-
----------------
14+
AccessVis is available on gadi using the latest `med-condaenv` environment.
1715

18-
To retrieve a list of random ingredients,
19-
you can use the ``accessvis.plot_earth()`` function:
2016

21-
.. autofunction:: accessvis.plot_earth
22-
23-
24-
25-
For example:
26-
27-
>>> import accessvis
28-
>>> accessvis.plot_earth()
17+
To install AccessVis locally, first install it using pip:
2918

19+
``python -m pip install --editable .``

0 commit comments

Comments
 (0)