diff options
author | Joe Gordon <jogo@users.noreply.github.com> | 2023-02-03 09:13:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 09:13:39 -0800 |
commit | b657f27f98bd14850a3736c62a244751c7b4c780 (patch) | |
tree | 26b603f308abae7c131920dd5a711349a5ea6bd7 | |
parent | 2ea9a9e027f19f21e658cacc286b39ec1e59e887 (diff) | |
parent | e7161f5fbea1ba8c5a8069bb28558da4e9623e87 (diff) | |
download | pymemcache-b657f27f98bd14850a3736c62a244751c7b4c780.tar.gz |
Merge pull request #477 from jogo/__init__
Make sure __init__ functions are displayed in docs
-rw-r--r-- | docs/conf.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py index c78990a..4b2f3d4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,8 +17,8 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # import os -import sys import subprocess +import sys sys.path.insert(0, os.path.abspath("..")) @@ -355,6 +355,12 @@ texinfo_documents = [ intersphinx_mapping = {"https://docs.python.org/": None} +# autodoc include __init__ +autodoc_default_options = { + "special-members": "__init__", +} + + # Automate building apidoc when building with readthedocs apidoc_module_dir = os.path.join("..", "pymemcache") apidoc_output_dir = "apidoc" |