Skip to content

Commit 59e0612

Browse files
committed
fix sphinx deprecation error
1 parent 8d64d66 commit 59e0612

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/source/conf.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,11 @@
9696
# -- sphinx.ext.autodoc --
9797

9898
# show base classes for autodoc
99-
autodoc_default_flags = ["show-inheritance", "inherited-members"]
99+
autodoc_default_options = {
100+
"show-inheritance": True,
101+
"inherited-members": True,
102+
"member-order": "bysource",
103+
}
100104
# order autodoc members by their order in the source
101105
autodoc_member_order = "bysource"
102106

requirements/docs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx ==2.2.0
1+
sphinx ==3.2.1
22
sphinx-autodoc-typehints ==1.7.0
33
furo ==2020.10.13b12
44
sphinx-panels ==0.5.0

0 commit comments

Comments
 (0)