Skip to content

Commit c9a129b

Browse files
committed
simplify docs; run black+isort
1 parent 6c94d18 commit c9a129b

42 files changed

Lines changed: 164 additions & 204 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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 & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,24 @@
44
{{ super() }}
55
<br />
66
<p class="link caption"><span class="link caption-text">AnaFlow Links</span></p>
7-
<a href="https://github.com/GeoStat-Framework/AnaFlow">AnaFlow GitHub</a>
8-
<a href="https://doi.org/10.5281/zenodo.1135723">AnaFlow Zenodo DOI</a>
9-
<a href="https://pypi.org/project/anaflow/">AnaFlow PyPI</a>
7+
<ul>
8+
<Li><a href="https://github.com/GeoStat-Framework/AnaFlow">AnaFlow GitHub</a></Li>
9+
<a href="https://doi.org/10.5281/zenodo.1135723">AnaFlow Zenodo DOI</a></Li>
10+
<a href="https://pypi.org/project/AnaFlow/">AnaFlow 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://geostat-framework.readthedocs.io">GeoStat ReadTheDocs</a>
15-
<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>
1621
<br />
1722
<br />
18-
<a href="genindex.html">Index</a>
19-
<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>
2027
{% endblock %}
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,3 @@ AnaFlow API
77
.. raw:: latex
88

99
\clearpage
10-
11-
.. toctree::
12-
:hidden:
13-
14-
flow.rst
15-
tools.rst

docs/source/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. mdinclude:: ../../CHANGELOG.md

docs/source/conf.py

Lines changed: 14 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
# anaflow documentation build configuration file, created by
54
# sphinx-quickstart on Fri Jan 5 14:20:43 2018.
@@ -21,6 +20,7 @@
2120
# pip install sphinx_rtd_theme
2221
# is needed in order to build the documentation
2322
import datetime
23+
2424
from anaflow import __version__ as ver
2525

2626

@@ -48,13 +48,14 @@ def setup(app):
4848
"sphinx.ext.doctest",
4949
"sphinx.ext.intersphinx",
5050
"sphinx.ext.coverage",
51-
"sphinx.ext.imgmath",
51+
"sphinx.ext.mathjax",
5252
"sphinx.ext.ifconfig",
5353
"sphinx.ext.viewcode",
5454
"sphinx.ext.autosummary",
5555
"sphinx.ext.napoleon", # parameters look better than with numpydoc only
5656
"numpydoc",
5757
"sphinx_gallery.gen_gallery",
58+
"m2r2",
5859
]
5960

6061
# autosummaries from source-files
@@ -71,7 +72,10 @@ def setup(app):
7172
# Notes in boxes
7273
napoleon_use_admonition_for_notes = True
7374
# Attributes like parameters
74-
# napoleon_use_ivar = True
75+
napoleon_use_ivar = True
76+
# keep "Other Parameters" section
77+
# https://github.com/sphinx-doc/sphinx/issues/10330
78+
napoleon_use_param = False
7579
# this is a nice class-doc layout
7680
numpydoc_show_class_members = True
7781
# class members have no separate file, so they are not in a toctree
@@ -112,7 +116,7 @@ def setup(app):
112116
#
113117
# This is also used if you do content translation via gettext catalogs.
114118
# Usually you set "language" from the command line for these cases.
115-
language = None
119+
language = "en"
116120

117121
# List of patterns, relative to source directory, that match files and
118122
# directories to ignore when looking for source files.
@@ -144,14 +148,18 @@ def setup(app):
144148
# Toc options
145149
"collapse_navigation": False,
146150
"sticky_navigation": True,
147-
"navigation_depth": 4,
151+
"navigation_depth": 6,
148152
"includehidden": True,
149153
"titles_only": False,
150154
}
151155
# Add any paths that contain custom static files (such as style sheets) here,
152156
# relative to this directory. They are copied after the builtin static files,
153157
# so a file named "default.css" will overwrite the builtin "default.css".
154-
# html_static_path = ['_static']
158+
html_static_path = ["_static"]
159+
160+
# These paths are either relative to html_static_path
161+
# or fully qualified paths (eg. https://...)
162+
html_css_files = ["custom.css"]
155163

156164
# Custom sidebar templates, must be a dictionary that maps document names
157165
# to template names.
@@ -238,7 +246,6 @@ def setup(app):
238246

239247
# Example configuration for intersphinx: refer to the Python standard library.
240248
intersphinx_mapping = {
241-
"Python 3.6": ("https://docs.python.org/3.6", None),
242249
"Python": ("https://docs.python.org/", None),
243250
"NumPy": ("http://docs.scipy.org/doc/numpy/", None),
244251
"SciPy": ("http://docs.scipy.org/doc/scipy/reference", None),

docs/source/contents.rst

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

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

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

docs/source/flow.laplace.rst

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

docs/source/flow.rst

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

0 commit comments

Comments
 (0)