Skip to content

Commit

Permalink
Merge pull request #271 from GeoStat-Framework/minor_doc_fixes
Browse files Browse the repository at this point in the history
Minor doc fixes
  • Loading branch information
MuellerSeb authored Nov 3, 2022
2 parents 1ce039b + b09664b commit 7938ba6
Show file tree
Hide file tree
Showing 24 changed files with 41 additions and 129 deletions.
3 changes: 3 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dl.py.property {
display: block !important;
}
9 changes: 9 additions & 0 deletions docs/source/_templates/autosummary/module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{{ fullname | escape | underline}}

.. currentmodule:: {{ fullname }}

.. automodule:: {{ fullname }}

.. raw:: latex

\clearpage
4 changes: 2 additions & 2 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<br />
<br />
<ul>
<Li><a href="genindex.html">Index</a></Li>
<Li><a href="contents.html">Sitemap</a></Li>
<Li><a href="{{ pathto('genindex') }}">Index</a></Li>
<Li><a href="{{ pathto(master_doc) }}">Sitemap</a></Li>
</ul>
{% endblock %}
15 changes: 11 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def setup(app):
# Notes in boxes
napoleon_use_admonition_for_notes = True
# Attributes like parameters
# napoleon_use_ivar = True
napoleon_use_ivar = True
# keep "Other Parameters" section
# https://github.com/sphinx-doc/sphinx/issues/10330
napoleon_use_param = False
# this is a nice class-doc layout
numpydoc_show_class_members = True
# class members have no separate file, so they are not in a toctree
Expand Down Expand Up @@ -125,7 +128,7 @@ def setup(app):
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = "en"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -157,14 +160,18 @@ def setup(app):
# Toc options
"collapse_navigation": False,
"sticky_navigation": True,
"navigation_depth": 4,
"navigation_depth": 6,
"includehidden": True,
"titles_only": False,
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['_static']
html_static_path = ["_static"]

# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = ["custom.css"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down
11 changes: 0 additions & 11 deletions docs/source/covmodel.plot.rst

This file was deleted.

13 changes: 0 additions & 13 deletions docs/source/covmodel.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/source/field.generator.rst

This file was deleted.

14 changes: 0 additions & 14 deletions docs/source/field.rst

This file was deleted.

10 changes: 0 additions & 10 deletions docs/source/field.upscaling.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/krige.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/normalizer.rst

This file was deleted.

12 changes: 0 additions & 12 deletions docs/source/package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,3 @@ GSTools API
.. raw:: latex

\clearpage

.. toctree::
:hidden:

covmodel.rst
field.rst
variogram.rst
krige.rst
random.rst
tools.rst
transform.rst
normalizer.rst
8 changes: 0 additions & 8 deletions docs/source/random.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/tools.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/transform.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/variogram.rst

This file was deleted.

3 changes: 2 additions & 1 deletion src/gstools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
===========
.. autosummary::
:toctree: generated
covmodel
field
variogram
Expand Down Expand Up @@ -123,7 +125,6 @@
.. autosummary::
EARTH_RADIUS
"""
# Hooray!
from gstools import (
Expand Down
4 changes: 3 additions & 1 deletion src/gstools/covmodel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
^^^^^^^^^^^
.. autosummary::
plot
:toctree: generated
plot
Covariance Base-Class
^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion src/gstools/covmodel/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def plot(self, func="variogram", **kwargs): # pragma: no cover
**kwargs
Keyword arguments forwarded to the plotting function
`"plot_" + func` in :any:`gstools.covmodel.plot`.
`"plot_" + func` in :py:mod:`gstools.covmodel.plot`.
See Also
--------
Expand Down
2 changes: 2 additions & 0 deletions src/gstools/covmodel/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
The following classes and functions are provided
.. autosummary::
:toctree: generated
plot_variogram
plot_covariance
plot_correlation
Expand Down
2 changes: 2 additions & 0 deletions src/gstools/field/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
^^^^^^^^^^^
.. autosummary::
:toctree: generated
generator
upscaling
Expand Down
2 changes: 2 additions & 0 deletions src/gstools/field/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
The following classes are provided
.. autosummary::
:toctree: generated
Generator
RandMeth
IncomprRandMeth
Expand Down
2 changes: 2 additions & 0 deletions src/gstools/field/upscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
The following functions are provided
.. autosummary::
:toctree: generated
var_coarse_graining
var_no_scaling
"""
Expand Down
2 changes: 2 additions & 0 deletions src/gstools/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
EARTH_RADIUS
----
.. autodata:: EARTH_RADIUS
"""

from gstools.tools.export import (
Expand Down

0 comments on commit 7938ba6

Please sign in to comment.