Skip to content

Commit

Permalink
Ignore private attrs in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmc2005 committed Nov 13, 2023
1 parent 240b3ac commit 4d054d2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
]

autoapi_dirs = ["../src/diart"]
autoapi_ignore = ["*__init__"]
autoapi_options = [
"members",
"undoc-members",
"show-inheritance",
"show-module-summary",
"special-members",
"imported-members",
]

templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
Expand All @@ -48,12 +57,7 @@


def skip_submodules(app, what, name, obj, skip, options):
return (
name.startswith("_")
or name.endswith("__init__")
or name.startswith("diart.console")
or name.startswith("diart.argdoc")
)
return name.startswith("diart.console") or name.startswith("diart.argdoc")


def setup(sphinx):
Expand Down

0 comments on commit 4d054d2

Please sign in to comment.