Skip to content

Commit

Permalink
Temp sphinx test. Combining what we've learned...
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Jul 23, 2024
1 parent 633bff1 commit b5e808a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
today = f"{datetime.now():%B %d, %Y}"
copyright = f"{datetime.now().year}, {author}"
release = __version__

extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
Expand All @@ -34,3 +33,16 @@
}
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
numpydoc_show_inherited_class_members = {"batgrl.figfont.FullLayout": False}


def skip_builtin_methods(app, what, name, obj, skip, options): # noqa: D103
try:
obj.__objclass__
except: # noqa: E722
return skip
else:
return True


def setup(sphinx): # noqa: D103
sphinx.connect("autodoc-skip-member", skip_builtin_methods)

0 comments on commit b5e808a

Please sign in to comment.