Skip to content

Commit

Permalink
try autodoc-skip-member
Browse files Browse the repository at this point in the history
  • Loading branch information
mmann1123 committed Jul 25, 2024
1 parent 459ba5c commit 8ae343d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@
# autodoc_mock_imports = ["xr_fresh", "numpy", "geowombat", "gdal"]
autodoc_mock_imports = ["rle"]


# Skip specific members
def skip_member(app, what, name, obj, skip, options):
# Skip the 'rle' module or any member containing 'rle'
if name == "rle" or "rle" in name:
return True
return skip


def setup(app):
app.connect("autodoc-skip-member", skip_member)


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down

0 comments on commit 8ae343d

Please sign in to comment.