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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
uses: codecov/codecov-action@v5
with:
flags: unittests
file: ./coverage.xml
files: ./coverage.xml
env_vars: OS,PYTHON_VERSION,UNSTABLE

- name: Coveralls Parallel
Expand All @@ -139,7 +139,7 @@ jobs:
uses: codecov/codecov-action@v5
with:
flags: behaviourtests
file: ./coverage.xml
files: ./coverage.xml
env_vars: OS,PYTHON_VERSION,UNSTABLE

coveralls:
Expand Down
1 change: 0 additions & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ help:

clean:
-rm -rf $(BUILDDIR)/*
-rm -rf source/api/*.rst

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
Expand Down
3 changes: 1 addition & 2 deletions doc/rtd_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ dependencies:
- rioxarray
- setuptools
- setuptools_scm
- sphinx
- sphinx>=8.2.0
- sphinx_rtd_theme
- sphinxcontrib-apidoc
- trollsift
- xarray
- zarr
Expand Down
34 changes: 22 additions & 12 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ def __getattr__(cls, name):

# -- General configuration -----------------------------------------------------

# sphinxcontrib.apidoc was added to sphinx in 8.2.0 as sphinx.etx.apidoc
needs_sphinx = "8.2.0"

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.todo", "sphinx.ext.coverage",
"sphinx.ext.doctest", "sphinx.ext.napoleon", "sphinx.ext.autosummary", "sphinx.ext.autosectionlabel",
"doi_role", "sphinx.ext.viewcode", "sphinxcontrib.apidoc",
"doi_role", "sphinx.ext.viewcode", "sphinx.ext.apidoc",
"sphinx.ext.mathjax"]

# Autosectionlabel
Expand All @@ -95,18 +98,25 @@ def __getattr__(cls, name):
autosectionlabel_maxdepth = 3

# API docs
apidoc_module_dir = "../../satpy"
apidoc_output_dir = "api"
apidoc_excluded_paths = [
"readers/caliop_l2_cloud.py",
"readers/ghrsst_l3c_sst.py",
"readers/li_l2.py",
"readers/scatsat1_l2b.py",
apidoc_modules = [
{
"path": "../../satpy",
"destination": "api/",
"exclude_patterns": [
"../../satpy/readers/caliop_l2_cloud.py",
"../../satpy/readers/ghrsst_l3c_sst.py",
"../../satpy/readers/scatsat1_l2b.py",
# Prefer to not document test modules. Most users will look at
# source code if needed and we want to avoid documentation builds
# suffering from import-time test data creation. We want to keep
# things contributors might be interested in like satpy.tests.utils.
"../../satpy/tests/test_*.py",
"../../satpy/tests/**/test_*.py",
],
},
]
apidoc_separate_modules = True
apidoc_extra_args = [
"--private",
]
apidoc_include_private = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand Down Expand Up @@ -297,7 +307,7 @@ def __getattr__(cls, name):
"scipy": ("https://scipy.github.io/devdocs", None),
"trollimage": ("https://trollimage.readthedocs.io/en/stable", None),
"trollsift": ("https://trollsift.readthedocs.io/en/stable", None),
"xarray": ("https://xarray.pydata.org/en/stable", None),
"xarray": ("https://docs.xarray.dev/en/stable", None),
"rasterio": ("https://rasterio.readthedocs.io/en/latest", None),
"donfig": ("https://donfig.readthedocs.io/en/latest", None),
"pooch": ("https://www.fatiando.org/pooch/latest/", None),
Expand Down
Loading