Skip to content

Commit 68aa24d

Browse files
committed
simplify docs
1 parent 53c8b49 commit 68aa24d

Some content is hidden

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

41 files changed

+183
-228
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ src/ogs5py/_version.py
116116

117117
# generated docs
118118
docs/source/examples/
119-
docs/source/generated/
119+
docs/source/api/
120120

121121
# other settings
122122
.vscode/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 Sebastian Mueller
3+
Copyright (c) 2023 Sebastian Mueller
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ You can contact us via <[email protected]>.
178178

179179
## License
180180

181-
[MIT][gpl_link] © 2018-2022 (inspired by Falk Hesse and Miao Jing)
181+
[MIT][gpl_link] © 2018-2023 (inspired by Falk Hesse and Miao Jing)
182182

183183
This project is based on [OGSPY][ogspy_link].
184184

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: 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<br />
2222
<br />
2323
<ul>
24-
<Li><a href="genindex.html">Index</a></Li>
25-
<Li><a href="contents.html">Sitemap</a></Li>
24+
<Li><a href="{{ pathto('genindex') }}">Index</a></Li>
25+
<Li><a href="{{ pathto(master_doc) }}">Sitemap</a></Li>
2626
</ul>
2727
{% endblock %}

docs/source/package.rst renamed to docs/source/api.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,3 @@ ogs5py API
77
.. raw:: latex
88

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

docs/source/conf.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def setup(app):
4949
"sphinx.ext.doctest",
5050
"sphinx.ext.intersphinx",
5151
"sphinx.ext.coverage",
52-
"sphinx.ext.imgmath",
52+
"sphinx.ext.mathjax",
5353
"sphinx.ext.ifconfig",
5454
"sphinx.ext.viewcode",
5555
"sphinx.ext.autosummary",
@@ -69,7 +69,10 @@ def setup(app):
6969
# Notes in boxes
7070
napoleon_use_admonition_for_notes = True
7171
# Attributes like parameters
72-
# napoleon_use_ivar = True
72+
napoleon_use_ivar = True
73+
# keep "Other Parameters" section
74+
# https://github.com/sphinx-doc/sphinx/issues/10330
75+
napoleon_use_param = False
7376
# this is a nice class-doc layout
7477
numpydoc_show_class_members = True
7578
# class members have no separate file, so they are not in a toctree
@@ -111,7 +114,7 @@ def setup(app):
111114
#
112115
# This is also used if you do content translation via gettext catalogs.
113116
# Usually you set "language" from the command line for these cases.
114-
language = None
117+
language = "en"
115118

116119
# List of patterns, relative to source directory, that match files and
117120
# directories to ignore when looking for source files.
@@ -143,14 +146,18 @@ def setup(app):
143146
# Toc options
144147
"collapse_navigation": False,
145148
"sticky_navigation": True,
146-
"navigation_depth": 4,
149+
"navigation_depth": 6,
147150
"includehidden": True,
148151
"titles_only": False,
149152
}
150153
# Add any paths that contain custom static files (such as style sheets) here,
151154
# relative to this directory. They are copied after the builtin static files,
152155
# so a file named "default.css" will overwrite the builtin "default.css".
153-
# html_static_path = ['_static']
156+
html_static_path = ["_static"]
157+
158+
# These paths are either relative to html_static_path
159+
# or fully qualified paths (eg. https://...)
160+
html_css_files = ["custom.css"]
154161

155162
# Custom sidebar templates, must be a dictionary that maps document names
156163
# to template names.
@@ -236,11 +243,8 @@ def setup(app):
236243

237244
# Example configuration for intersphinx: refer to the Python standard library.
238245
intersphinx_mapping = {
239-
"Python 3.6": ("https://docs.python.org/3.6", None),
240246
"Python": ("https://docs.python.org/", None),
241247
"NumPy": ("http://docs.scipy.org/doc/numpy/", None),
242248
"matplotlib": ("http://matplotlib.org", None),
243249
"Sphinx": ("http://www.sphinx-doc.org/en/stable/", None),
244-
# "hankel": ("https://hankel.readthedocs.io/en/latest/", None),
245-
# "emcee": ("http://dfm.io/emcee/current/", None),
246250
}

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
tutorials
11-
package
11+
api
1212
changelog

docs/source/fileclasses.base.rst

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

0 commit comments

Comments
 (0)