Skip to content

Commit 5568e7d

Browse files
committed
Merge branch 'pydata_documentation_theme' into dev_documentation_revamp
2 parents 6b8e537 + 8e01602 commit 5568e7d

File tree

7 files changed

+72
-193
lines changed

7 files changed

+72
-193
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ examples/climate-processes-tobac_example_data-b3e69ee
1111
.ipynb_checkpoints
1212
.DS_Store
1313
*.egg-info
14+
doc/api/generated/*
1415

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{ fullname | escape | underline }}
2+
3+
.. rubric:: Description
4+
5+
.. automodule:: {{ fullname }}
6+
7+
.. currentmodule:: {{ fullname }}
8+
9+
{% if classes %}
10+
.. rubric:: Classes
11+
12+
.. autosummary::
13+
:toctree: .
14+
{% for class in classes %}
15+
{{ class }}
16+
{% endfor %}
17+
18+
{% endif %}
19+
20+
{% if functions %}
21+
.. rubric:: Functions
22+
23+
.. autosummary::
24+
:toctree: .
25+
{% for function in functions %}
26+
{{ function }}
27+
{% endfor %}
28+
29+
{% endif %}

doc/api/index.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.. _API-Reference:
2+
3+
API Reference
4+
=============
5+
6+
:Release: |version|
7+
:Date: |today|
8+
9+
This guide provides documentation for all modules, function, methods,
10+
and classes within *tobac* for those in the public API.
11+
12+
Documentation is broken down by directory and module.
13+
14+
.. currentmodule:: tobac
15+
16+
.. autosummary::
17+
:toctree: generated/
18+
19+
feature_detection
20+
tracking
21+
segmentation
22+
merge_split
23+
utils.bulk_statistics
24+
utils.general
25+
plotting

doc/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# What Sphinx extensions do we need
1212
extensions = [
1313
"sphinx.ext.autodoc",
14+
"sphinx.ext.autosummary",
1415
"sphinx.ext.doctest",
1516
"sphinx.ext.todo",
1617
"sphinx.ext.coverage",
@@ -34,6 +35,20 @@
3435
source_suffix = {".rst": "restructuredtext", ".md": "restructuredtext"}
3536
myst_enable_extensions = ["colon_fence"]
3637

38+
html_context = {
39+
"api_dir": "api/generated",
40+
}
41+
42+
43+
# Generate the api documentation when building
44+
autoclass_content = "both"
45+
46+
autosummary_generate = True
47+
autosummary_imported_members = True
48+
autodoc_typehints = "description"
49+
50+
templates_path = ["_templates"]
51+
3752

3853
html_theme_options = {
3954
"logo": {

doc/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
html_theme.sidebar_secondary.remove:
33
sd_hide_title: true
44
---
5-
5+
<!-- sphinx-autobuild ./doc/ /Users/seanfreeman/Documents/Research/tobac_dev/tobac_docs_refresh/dev_docs/ -->
66
<!-- CSS overrides on the homepage only -->
77
<style>
88
.bd-main .bd-content .bd-article-container {
@@ -243,5 +243,5 @@ Getting Started<getting_started/index>
243243
Example Gallery<examples/index>
244244
User Guide<userguide/index>
245245
Developer Guide<developer_guide/index>
246-
API <tobac>
246+
API <api/index>
247247
:::

doc/index_old.rst

Lines changed: 0 additions & 43 deletions
This file was deleted.

doc/tobac.rst

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)