Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
940546f8
Commit
940546f8
authored
May 07, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make python docs include __call__ and __init__
parent
851d70a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
conf.py
docs/docs/python/conf.py
+11
-0
No files found.
docs/docs/python/conf.py
View file @
940546f8
...
...
@@ -244,3 +244,14 @@ texinfo_documents = [
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# Make sphinx document constructors and __call__
def
skip
(
app
,
what
,
name
,
obj
,
skip
,
options
):
if
name
==
"__init__"
or
name
==
"__call__"
:
return
False
return
skip
def
setup
(
app
):
app
.
connect
(
"autodoc-skip-member"
,
skip
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment