Skip to content

Commit 0322ba0

Browse files
committed
improve sphinx api documenting
1 parent a15b21d commit 0322ba0

15 files changed

Lines changed: 46 additions & 167 deletions

docs/conf.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"sphinx.ext.autosectionlabel",
3939
"nbsphinx",
4040
]
41-
41+
suppress_warnings = ["autosectionlabel.*"]
4242
# Add any paths that contain templates here, relative to this directory.
4343
templates_path = ["_templates"]
4444

@@ -53,7 +53,7 @@
5353

5454
# General information about the project.
5555
project = "yt_xarray"
56-
copyright = "2022, Chris Havlin"
56+
copyright = "2024, Chris Havlin"
5757
author = "Chris Havlin"
5858

5959
# The version info for the project you're documenting, acts as replacement
@@ -70,7 +70,9 @@
7070
#
7171
# This is also used if you do content translation via gettext catalogs.
7272
# Usually you set "language" from the command line for these cases.
73-
language = None
73+
language = "en"
74+
75+
toc_object_entries_show_parents = "hide"
7476

7577
# List of patterns, relative to source directory, that match files and
7678
# directories to ignore when looking for source files.

docs/index.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ If you come across any issues or have feature requests, please reach out at the
1818

1919
.. toctree::
2020
:hidden:
21-
:maxdepth: 2
2221

2322
installation
2423
supported_grids
2524
examples
2625
faq
27-
API <modules>
26+
API <source/modules>
2827
contributing
2928

docs/modules.rst

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

docs/source/modules.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ yt_xarray
22
=========
33

44
.. toctree::
5-
:maxdepth: 4
65

7-
yt_xarray
6+
yt_xarray.open_dataset
7+
yt_xarray.YtAccessor
8+
yt_xarray.transformations
9+
yt_xarray.sample_data
10+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
yt\_xarray.YtAccessor
2+
=====================
3+
4+
.. autoclass:: yt_xarray.YtAccessor
5+
:members:
6+
:show-inheritance:

docs/source/yt_xarray.accessor.rst

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
yt\_xarray.open_dataset
2+
=======================
3+
4+
.. autofunction:: yt_xarray.open_dataset

docs/source/yt_xarray.rst

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
yt\_xarray.sample_data
2+
======================
3+
4+
.. automodule:: yt_xarray.sample_data
5+
:members:
6+
:show-inheritance:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
yt\_xarray.transformations
2+
==========================
3+
4+
.. automodule:: yt_xarray.transformations
5+
:members:
6+
:show-inheritance:

0 commit comments

Comments
 (0)