diff --git a/doc/conf.py b/doc/conf.py
index 4c1a316d41c76ea2bc587a80d9c62a35d3094e7a..a6c97e9a724dfb84560f81b42e393b344de7cf33 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -233,11 +233,11 @@ rst_epilog = """
 # Default processing flags for sphinx
 autoclass_content = "class"
 autodoc_member_order = "bysource"
-autodoc_default_flags = [
-    "members",
-    "undoc-members",
-    "show-inheritance",
-]
+autodoc_default_options = {
+  "members": True,
+  "undoc-members": True,
+  "show-inheritance": True,
+}
 
 
 sphinx_requirements = "extra-intersphinx.txt"
@@ -249,24 +249,3 @@ else:
     intersphinx_mapping = link_documentation()
 
 
-# We want to remove all private (i.e. _. or __.__) members
-# that are not in the list of accepted functions
-accepted_private_functions = ["__array__"]
-
-
-def member_function_test(app, what, name, obj, skip, options):
-    # test if we have a private function
-    if len(name) > 1 and name[0] == "_":
-        # test if this private function should be allowed
-        if name not in accepted_private_functions:
-            # omit privat functions that are not in the list of accepted private functions
-            return skip
-        else:
-            # test if the method is documented
-            if not hasattr(obj, "__doc__") or not obj.__doc__:
-                return skip
-    return False
-
-
-def setup(app):
-    app.connect("autodoc-skip-member", member_function_test)