From 9fa14cb7891ffcd1746044e74107941d62f51882 Mon Sep 17 00:00:00 2001 From: "lielin.hyl" Date: Mon, 16 Oct 2023 21:45:20 +0800 Subject: [PATCH] * refine docs --- docs/sphinx_doc/source/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/sphinx_doc/source/conf.py b/docs/sphinx_doc/source/conf.py index 37aee1f02..2d91a83b0 100644 --- a/docs/sphinx_doc/source/conf.py +++ b/docs/sphinx_doc/source/conf.py @@ -40,3 +40,11 @@ # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +def skip(app, what, name, obj, would_skip, options): + if name == "__init__": + return False + return would_skip + +def setup(app): + app.connect("autodoc-skip-member", skip)