Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
2d50a515
Commit
2d50a515
authored
Mar 18, 2018
by
Davis King
Browse files
Updated sphinx stuff so it outputs documentation for the new submodules.
parent
37f82c7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
6 deletions
+29
-6
docs/docs/python/generate_dlib_listing.py
docs/docs/python/generate_dlib_listing.py
+19
-6
docs/docs/python/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