Skip to content

Commit

Permalink
docs(conf): Initial sphinx-autodoc2
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Dec 23, 2023
1 parent f29fd2e commit 33e06b5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@
exec(fp.read(), about)

extensions = [
"sphinx.ext.autodoc",
"autodoc2",
"sphinx.ext.intersphinx",
"sphinx_autodoc_typehints",
"sphinx.ext.autodoc",
# "sphinx_autodoc_typehints",
"sphinx.ext.todo",
"sphinx.ext.linkcode",
"sphinx.ext.napoleon",
Expand Down Expand Up @@ -109,6 +110,9 @@
autodoc_member_order = "bysource"
toc_object_entries_show_parents = "hide"

# autodoc2
autodoc2_hidden_objects = ["dunder", "private", "inherited"]

# sphinx-copybutton
copybutton_prompt_text = (
r">>> |\.\.\. |> |\$ |\# | In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
Expand Down

0 comments on commit 33e06b5

Please sign in to comment.