Skip to content

Commit

Permalink
simplify docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Apr 15, 2023
1 parent 53c8b49 commit 68aa24d
Show file tree
Hide file tree
Showing 41 changed files with 183 additions and 228 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ src/ogs5py/_version.py

# generated docs
docs/source/examples/
docs/source/generated/
docs/source/api/

# other settings
.vscode/
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Sebastian Mueller
Copyright (c) 2023 Sebastian Mueller

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ You can contact us via <[email protected]>.

## License

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

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

Expand Down
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 %}
7 changes: 0 additions & 7 deletions docs/source/package.rst → docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@ ogs5py API
.. raw:: latex

\clearpage

.. toctree::
:hidden:

fileclasses.rst
reader.rst
tools.rst
20 changes: 12 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def setup(app):
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.coverage",
"sphinx.ext.imgmath",
"sphinx.ext.mathjax",
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
"sphinx.ext.autosummary",
Expand All @@ -69,7 +69,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 @@ -111,7 +114,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 @@ -143,14 +146,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 Expand Up @@ -236,11 +243,8 @@ def setup(app):

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"Python 3.6": ("https://docs.python.org/3.6", None),
"Python": ("https://docs.python.org/", None),
"NumPy": ("http://docs.scipy.org/doc/numpy/", None),
"matplotlib": ("http://matplotlib.org", None),
"Sphinx": ("http://www.sphinx-doc.org/en/stable/", None),
# "hankel": ("https://hankel.readthedocs.io/en/latest/", None),
# "emcee": ("http://dfm.io/emcee/current/", None),
}
4 changes: 2 additions & 2 deletions docs/source/contents.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Contents

.. toctree::
:includehidden:
:maxdepth: 3
:maxdepth: 5

index
tutorials
package
api
changelog
8 changes: 0 additions & 8 deletions docs/source/fileclasses.base.rst

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/fileclasses.gli.generator.rst

This file was deleted.

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

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/fileclasses.msh.generator.rst

This file was deleted.

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

This file was deleted.

15 changes: 0 additions & 15 deletions docs/source/fileclasses.rst

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

10 changes: 6 additions & 4 deletions src/ogs5py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
===========
.. autosummary::
fileclasses
reader
tools
:toctree: api
fileclasses
reader
tools
Classes
=======
Expand All @@ -23,7 +25,7 @@
Class to setup an ogs model
.. autosummary::
:toctree: generated
:toctree: api
OGS
Expand Down
4 changes: 3 additions & 1 deletion src/ogs5py/fileclasses/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
^^^^^^^^^^^
.. autosummary::
:toctree:
base
gli
msh
Expand All @@ -17,7 +19,7 @@
Classes for all OGS5 Files
.. autosummary::
:toctree: generated
:toctree:
ASC
BC
Expand Down
Loading

0 comments on commit 68aa24d

Please sign in to comment.