-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing meta field for specifying "self" reference in documentat…
…ion for special methods
- Loading branch information
1 parent
ef973ef
commit 5f42ba5
Showing
8 changed files
with
603 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import sys | ||
import os | ||
|
||
|
||
doc_module_path = os.path.dirname(__file__) | ||
if doc_module_path not in sys.path: | ||
sys.path.append(doc_module_path) | ||
|
||
|
||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinxcontrib.prettyspecialmethods', | ||
] | ||
|
||
|
||
# The suffix of source filenames. | ||
source_suffix = '.rst' | ||
|
||
|
||
autodoc_default_options = { | ||
'member-order': 'bysource', | ||
'exclude-members': '__weakref__,__dict__,__module__', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.. automodule:: test_autodoc_self_param_module | ||
:members: | ||
:special-members: | ||
:undoc-members: |
Oops, something went wrong.