Skip to content

Commit 6ca8c53

Browse files
committed
simplify docs
1 parent 3d4b64b commit 6ca8c53

35 files changed

Lines changed: 151 additions & 355 deletions

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,10 @@ celerybeat-schedule
8888
venv/
8989
ENV/
9090

91-
# Spyder project settings
91+
# IDE project settings
9292
.spyderproject
9393
.spyproject
94+
.vscode
9495

9596
# Rope project settings
9697
.ropeproject
@@ -114,7 +115,7 @@ info/
114115

115116
# generated docs
116117
docs/source/examples/
117-
docs/source/generated/
118+
docs/source/api/
118119
Cmp_UFZ-campaign.cmp
119120

120121
# generated version file

docs/source/_static/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dl.py.property {
2+
display: block !important;
3+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. autoclass:: {{ objname }}
6+
:members:
7+
:undoc-members:
8+
:inherited-members:
9+
:show-inheritance:
10+
11+
.. raw:: latex
12+
13+
\clearpage
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. currentmodule:: {{ fullname }}
4+
5+
.. automodule:: {{ fullname }}
6+
7+
.. raw:: latex
8+
9+
\clearpage

docs/source/_templates/layout.html

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@
44
{{ super() }}
55
<br />
66
<p class="link caption"><span class="link caption-text">welltestpy Links</span></p>
7-
<a href="https://github.com/GeoStat-Framework/welltestpy">welltestpy GitHub</a>
8-
<a href="https://doi.org/10.5281/zenodo.1229051">welltestpy Zenodo DOI</a>
9-
<a href="https://pypi.org/project/welltestpy/">welltestpy PyPI</a>
7+
<ul>
8+
<Li><a href="https://github.com/GeoStat-Framework/welltestpy">welltestpy GitHub</a></Li>
9+
<Li><a href="https://doi.org/10.5281/zenodo.1229051">welltestpy Zenodo DOI</a></Li>
10+
<Li><a href="https://pypi.org/project/welltestpy">welltestpy PyPI</a></Li>
11+
</ul>
1012
<br />
1113
<p class="link caption"><span class="link caption-text">GeoStat Framework</span></p>
12-
<a href="https://geostat-framework.org">GeoStat Website</a>
13-
<a href="https://github.com/GeoStat-Framework">GeoStat Github</a>
14-
<a href="https://github.com/GeoStat-Examples">GeoStat Examples</a>
15-
<a href="https://geostat-framework.readthedocs.io">GeoStat ReadTheDocs</a>
16-
<a href="https://pypi.org/user/geostatframework/">GeoStat PyPI</a>
14+
<ul>
15+
<Li><a href="https://geostat-framework.org">GeoStat Website</a></Li>
16+
<Li><a href="https://github.com/GeoStat-Framework">GeoStat Github</a></Li>
17+
<Li><a href="https://github.com/GeoStat-Examples">GeoStat Examples</a></Li>
18+
<Li><a href="https://geostat-framework.readthedocs.io">GeoStat ReadTheDocs</a></Li>
19+
<Li><a href="https://pypi.org/user/geostatframework/">GeoStat PyPI</a></Li>
20+
</ul>
1721
<br />
1822
<br />
19-
<a href="genindex.html">Index</a>
20-
<a href="contents.html">Sitemap</a>
23+
<ul>
24+
<Li><a href="{{ pathto('genindex') }}">Index</a></Li>
25+
<Li><a href="{{ pathto(master_doc) }}">Sitemap</a></Li>
26+
</ul>
2127
{% endblock %}
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,3 @@ welltestpy API
77
.. raw:: latex
88

99
\clearpage
10-
11-
.. toctree::
12-
:hidden:
13-
14-
data.rst
15-
estimate.rst
16-
process.rst
17-
tools.rst

docs/source/conf.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
32
#
43
# welltestpy documentation build configuration file, created by
54
# sphinx-quickstart on Fri Jan 5 14:20:43 2018.
@@ -56,7 +55,7 @@ def setup(app):
5655
"sphinx.ext.doctest",
5756
"sphinx.ext.intersphinx",
5857
"sphinx.ext.coverage",
59-
"sphinx.ext.imgmath",
58+
"sphinx.ext.mathjax",
6059
"sphinx.ext.ifconfig",
6160
"sphinx.ext.viewcode",
6261
"sphinx.ext.autosummary",
@@ -80,7 +79,10 @@ def setup(app):
8079
# Notes in boxes
8180
napoleon_use_admonition_for_notes = True
8281
# Attributes like parameters
83-
# napoleon_use_ivar = True
82+
napoleon_use_ivar = True
83+
# keep "Other Parameters" section
84+
# https://github.com/sphinx-doc/sphinx/issues/10330
85+
napoleon_use_param = False
8486
# this is a nice class-doc layout
8587
numpydoc_show_class_members = True
8688
# class members have no separate file, so they are not in a toctree
@@ -121,7 +123,7 @@ def setup(app):
121123
#
122124
# This is also used if you do content translation via gettext catalogs.
123125
# Usually you set "language" from the command line for these cases.
124-
language = None
126+
language = "en"
125127

126128
# List of patterns, relative to source directory, that match files and
127129
# directories to ignore when looking for source files.
@@ -153,14 +155,18 @@ def setup(app):
153155
# Toc options
154156
"collapse_navigation": False,
155157
"sticky_navigation": True,
156-
"navigation_depth": 4,
158+
"navigation_depth": 6,
157159
"includehidden": True,
158160
"titles_only": False,
159161
}
160162
# Add any paths that contain custom static files (such as style sheets) here,
161163
# relative to this directory. They are copied after the builtin static files,
162164
# so a file named "default.css" will overwrite the builtin "default.css".
163-
# html_static_path = ['_static']
165+
html_static_path = ["_static"]
166+
167+
# These paths are either relative to html_static_path
168+
# or fully qualified paths (eg. https://...)
169+
html_css_files = ["custom.css"]
164170

165171
# Custom sidebar templates, must be a dictionary that maps document names
166172
# to template names.
@@ -249,7 +255,6 @@ def setup(app):
249255

250256
# Example configuration for intersphinx: refer to the Python standard library.
251257
intersphinx_mapping = {
252-
"Python 3.6": ("https://docs.python.org/3.6", None),
253258
"Python": ("https://docs.python.org/", None),
254259
"NumPy": ("http://docs.scipy.org/doc/numpy/", None),
255260
"SciPy": ("http://docs.scipy.org/doc/scipy/reference", None),

docs/source/contents.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Contents
44

55
.. toctree::
66
:includehidden:
7-
:maxdepth: 3
7+
:maxdepth: 5
88

99
index
1010
examples/index
11-
package
11+
api
1212
changelog

docs/source/data.campaignlib.rst

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

docs/source/data.data_io.rst

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

0 commit comments

Comments
 (0)