diff --git a/docs/conf.py b/docs/conf.py index 4b21aa7..f046ca1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -72,8 +72,18 @@ # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -# Exclude .ipynb files since we use jupytext-paired .md files as the source -exclude_patterns = ["_build", "**/*.ipynb"] +# Exclude .ipynb files that have a paired jupytext .md file +# (the .md is the source of truth for those). Notebooks without +# a paired .md (e.g. cfinterval.ipynb) are kept as-is. +from pathlib import Path + +_ipynb_excludes = [ + str(p.relative_to(Path(__file__).parent)) + for p in Path(__file__).parent.rglob("*.ipynb") + if p.with_suffix(".md").exists() + and "_build" not in p.parts +] +exclude_patterns = ["_build"] + _ipynb_excludes # The name of the Pygments (syntax highlighting) style to use. pygments_style = "igor" diff --git a/pyproject.toml b/pyproject.toml index 1e93684..ab33fc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,6 +6,7 @@ readme = "README.md" requires-python = ">=3.11" license = "Apache-2.0" dependencies = [ + "pandas<3", "pooch", "netCDF4", "matplotlib", diff --git a/requirements.txt b/requirements.txt index 3dd8211..b1a3071 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +pandas<3 pooch netCDF4 matplotlib