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
2d50a515
Commit
2d50a515
authored
Mar 18, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated sphinx stuff so it outputs documentation for the new submodules.
parent
37f82c7f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
generate_dlib_listing.py
docs/docs/python/generate_dlib_listing.py
+19
-6
index.rst
docs/docs/python/index.rst
+10
-0
No files found.
docs/docs/python/generate_dlib_listing.py
View file @
2d50a515
...
...
@@ -2,6 +2,14 @@ from __future__ import print_function
import
dlib
import
inspect
def
print_element
(
name
,
fc
,
ff
):
isclass
=
inspect
.
isclass
(
eval
(
name
))
ismodule
=
inspect
.
ismodule
(
eval
(
name
))
if
(
isclass
):
print
(
"* :class:`{0}`"
.
format
(
name
),
file
=
fc
)
elif
(
not
ismodule
):
print
(
"* :func:`{0}`"
.
format
(
name
),
file
=
ff
)
def
make_listing_files
():
fc
=
open
(
'classes.txt'
,
'w'
)
...
...
@@ -10,10 +18,15 @@ def make_listing_files():
for
obj
in
dir
(
dlib
):
if
obj
[
0
]
==
'_'
:
continue
name
=
'dlib.'
+
obj
isclass
=
inspect
.
isclass
(
eval
(
name
))
if
(
isclass
):
print
(
"* :class:`{0}`"
.
format
(
name
),
file
=
fc
)
else
:
print
(
"* :func:`{0}`"
.
format
(
name
),
file
=
ff
)
print_element
(
'dlib.'
+
obj
,
fc
,
ff
)
for
obj
in
dir
(
dlib
.
cuda
):
if
obj
[
0
]
==
'_'
:
continue
print_element
(
'dlib.cuda.'
+
obj
,
fc
,
ff
)
for
obj
in
dir
(
dlib
.
image_dataset_metadata
):
if
obj
[
0
]
==
'_'
:
continue
print_element
(
'dlib.image_dataset_metadata.'
+
obj
,
fc
,
ff
)
docs/docs/python/index.rst
View file @
2d50a515
...
...
@@ -31,5 +31,15 @@ Detailed API Listing
:members:
:undoc-members:
.. automodule:: dlib.cuda
:members:
:undoc-members:
.. automodule:: dlib.image_dataset_metadata
:members:
:undoc-members:
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