Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Docs

on:
push:
branches:
- main
- 39-read-the-docs
pull_request:
branches:
- main
workflow_dispatch:

jobs:
sphinx:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: doc/requirements.txt

- name: Install Pandoc
run: |
sudo apt-get update
sudo apt-get install -y pandoc

- name: Install documentation dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r doc/requirements.txt

- name: Build documentation
run: |
python -m sphinx -W -b html doc/source doc/build/html
13 changes: 5 additions & 8 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
python: "3.11"
python: "3.12"
apt_packages:
- pandoc

# Build documentation in the "doc/" directory with Sphinx
sphinx:
Expand All @@ -22,10 +24,5 @@ formats:
# Python requirements for building documentation
python:
install:
# Install the package itself
- method: pip
path: .
extra_requirements:
- docs
# Install additional requirements for building docs
- requirements: doc/requirements.txt
- requirements: doc/requirements.txt
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# PyFVCOM2

[![Documentation Status](https://readthedocs.org/projects/pyfvcom2/badge/?version=latest)](https://pyfvcom2.readthedocs.io/en/latest/?badge=latest)

A Python package for processing FVCOM (Finite Volume Community Ocean Model) data.

## Description
Expand Down
5 changes: 3 additions & 2 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
# Core Sphinx packages
sphinx>=3.0
sphinx_rtd_theme>=0.5
myst-parser

# Sphinx extensions used in conf.py
sphinx-autodoc2
sphinx-copybutton
nbsphinx
sphinxext-opengraph

# Scientific documentation extensions
numpydoc
Expand All @@ -26,4 +27,4 @@ netcdf4>=1.5.0
xarray>=0.16.0

# For any plots or examples in documentation
matplotlib>=3.3.0
matplotlib>=3.3.0
11 changes: 4 additions & 7 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
.. _api:

API
===

For PyLag's API documentation, please refer to the following sections:
API Reference
=============

.. toctree::
:maxdepth: 1
:caption: API Reference
:maxdepth: 4

apidocs/index
api/modules
7 changes: 7 additions & 0 deletions doc/source/api/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
API Reference
=============

.. toctree::
:maxdepth: 4

pyfvcom2
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.bathy_smoother.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.bathy\_smoother module
===============================

.. automodule:: pyfvcom2.bathy_smoother
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.cmems_reader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.cmems\_reader module
=============================

.. automodule:: pyfvcom2.cmems_reader
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.coordinates.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.coordinates module
===========================

.. automodule:: pyfvcom2.coordinates
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.date_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.date\_utils module
===========================

.. automodule:: pyfvcom2.date_utils
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.exceptions module
==========================

.. automodule:: pyfvcom2.exceptions
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.file_utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.file\_utils module
===========================

.. automodule:: pyfvcom2.file_utils
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.fvcom_reader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.fvcom\_reader module
=============================

.. automodule:: pyfvcom2.fvcom_reader
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.fvcom_writer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.fvcom\_writer module
=============================

.. automodule:: pyfvcom2.fvcom_writer
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.grid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.grid module
====================

.. automodule:: pyfvcom2.grid
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.grid_builder.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.grid\_builder module
=============================

.. automodule:: pyfvcom2.grid_builder
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.interpolation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.interpolation module
=============================

.. automodule:: pyfvcom2.interpolation
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.interpolation_coordinates.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.interpolation\_coordinates module
==========================================

.. automodule:: pyfvcom2.interpolation_coordinates
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.lanczos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.lanczos module
=======================

.. automodule:: pyfvcom2.lanczos
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.mesh_reader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.mesh\_reader module
============================

.. automodule:: pyfvcom2.mesh_reader
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.namelist.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.namelist module
========================

.. automodule:: pyfvcom2.namelist
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.nest.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.nest module
====================

.. automodule:: pyfvcom2.nest
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.obc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.obc module
===================

.. automodule:: pyfvcom2.obc
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.ocean.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.ocean module
=====================

.. automodule:: pyfvcom2.ocean
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.plotting.plot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.plotting.plot module
=============================

.. automodule:: pyfvcom2.plotting.plot
:members:
:show-inheritance:
:undoc-members:
18 changes: 18 additions & 0 deletions doc/source/api/pyfvcom2.plotting.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pyfvcom2.plotting package
=========================

Submodules
----------

.. toctree::
:maxdepth: 4

pyfvcom2.plotting.plot

Module contents
---------------

.. automodule:: pyfvcom2.plotting
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.restart.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.restart module
=======================

.. automodule:: pyfvcom2.restart
:members:
:show-inheritance:
:undoc-members:
49 changes: 49 additions & 0 deletions doc/source/api/pyfvcom2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
pyfvcom2 package
================

Subpackages
-----------

.. toctree::
:maxdepth: 4

pyfvcom2.plotting

Submodules
----------

.. toctree::
:maxdepth: 4

pyfvcom2.bathy_smoother
pyfvcom2.cmems_reader
pyfvcom2.coordinates
pyfvcom2.date_utils
pyfvcom2.exceptions
pyfvcom2.file_utils
pyfvcom2.fvcom_reader
pyfvcom2.fvcom_writer
pyfvcom2.grid
pyfvcom2.grid_builder
pyfvcom2.interpolation
pyfvcom2.interpolation_coordinates
pyfvcom2.lanczos
pyfvcom2.mesh_reader
pyfvcom2.namelist
pyfvcom2.nest
pyfvcom2.obc
pyfvcom2.ocean
pyfvcom2.restart
pyfvcom2.sigma
pyfvcom2.tide
pyfvcom2.tide_reader
pyfvcom2.weights_calculator

Module contents
---------------

.. automodule:: pyfvcom2
:members:
:show-inheritance:
:undoc-members:
:no-index:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.sigma.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.sigma module
=====================

.. automodule:: pyfvcom2.sigma
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.tide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.tide module
====================

.. automodule:: pyfvcom2.tide
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.tide_reader.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.tide\_reader module
============================

.. automodule:: pyfvcom2.tide_reader
:members:
:show-inheritance:
:undoc-members:
7 changes: 7 additions & 0 deletions doc/source/api/pyfvcom2.weights_calculator.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyfvcom2.weights\_calculator module
===================================

.. automodule:: pyfvcom2.weights_calculator
:members:
:show-inheritance:
:undoc-members:
Loading
Loading