Skip to content

Commit

Permalink
reorganize docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ioshchepkov committed Apr 15, 2021
1 parent c15b565 commit 86b2933
Show file tree
Hide file tree
Showing 25 changed files with 76 additions and 9 deletions.
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ To install ``pygeoid`` simply use ``pip`` as usual:
pip install pygeoid
Alternatively, you can use ``pip`` to install the latest version of the source code from GitHub:

.. code:: bash
pip install --upgrade git+https://github.com/ioshchepkov/pygeoid
Documentation
-------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
Reference Ellipsoid (`pygeoid.coordinates.ellipsoid.Ellipsoid`)
***************************************************************

.. autoclass:: pygeoid.coordinates.ellipsoid.Ellipsoid
.. automodule:: pygeoid.coordinates.ellipsoid
:members:
:inherited-members:
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Coordinate Transformations (`pygeoid.coordinates.transform`)

.. automodule:: pygeoid.coordinates.transform
:members:

16 changes: 16 additions & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

.. _api:

API Reference
=============

.. toctree::
:maxdepth: 2
:hidden:

coordinates/index
integrals/index
reduction/index
sharm/index
simple/index
tides/index
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions docs/api/simple/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

**************************************************************
Simpe Bodies (`pygeoid.simple`)
**************************************************************

.. toctree::
:maxdepth: 1

prism
8 changes: 8 additions & 0 deletions docs/api/simple/prism.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

*******************************************************************
Prism (`pygeoid.simple.prism`)
*******************************************************************

.. autoclass:: pygeoid.simple.prism.Prism
:members:
:inherited-members:
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.napoleon',
'sphinx.ext.doctest',
'sphinx.ext.todo',
Expand All @@ -58,7 +59,7 @@

# General information about the project.
project = 'pygeoid'
copyright = '2019, Ilya Oshchepkov'
copyright = '2019-2021, Ilya Oshchepkov'
author = 'Ilya Oshchepkov'

# The version info for the project you're documenting, acts as replacement for
Expand Down
15 changes: 8 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,23 @@ Welcome to pygeoid's documentation!
.. include:: ../README.rst

.. toctree::
:maxdepth: 1
:maxdepth: 2
:hidden:
:caption: Getting Started

install.rst

.. toctree::
:maxdepth: 1
:maxdepth: 2
:hidden:
:caption: User Guide

.. toctree::
:maxdepth: 2
:hidden:
:caption: Reference Guide

Coordinate Systems and Transformations <coordinates/index>
Gravity Reduction <reduction/index>
Geodetic Integrals <integrals/index>
Spherical Harmonics <sharm/index>
Tides <tides/index>
api/index.rst

.. toctree::
:maxdepth: 1
Expand Down
22 changes: 22 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _install
Installing
==========

Installing with pip
-------------------

You can install ``pygeoid`` using the `pip package manager
<https://pypi.org/project/pip/>`__::

pip install pygeoid


Installing the latest development version
-----------------------------------------

You can use ``pip`` to install the latest version of the source code from
GitHub::

python -m pip install --upgrade git+https://github.com/ioshchepkov/pygeoid

3 changes: 3 additions & 0 deletions pygeoid/constants/iers2010.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ def l2_shida_number(lat: _u.deg = None) -> _u.dimensionless_unscaled:
l2 : ~astropy.units.Quantity
Nominal degree 2 Shida number.
Notes
-----
References
----------
.. [1] IERS Conventions(2010), section 7.1.1, page 105.
Expand Down

0 comments on commit 86b2933

Please sign in to comment.