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
e16a3a3f
Commit
e16a3a3f
authored
Aug 14, 2013
by
Davis King
Browse files
improved makedocs script
parent
6a5a3431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
docs/makedocs
docs/makedocs
+15
-6
No files found.
docs/makedocs
View file @
e16a3a3f
...
@@ -11,6 +11,16 @@ htmlify_python_file ()
...
@@ -11,6 +11,16 @@ htmlify_python_file ()
pygmentize -f html -O full,style=vs $1 > $1.html
pygmentize -f html -O full,style=vs $1 > $1.html
}
}
build_python_interface ()
{
pushd ../python_examples
mkdir build
cd build || report_failure
cmake ../../tools/python || report_failure
make -j4 install || report_failure
popd
}
htmlify_cmake ()
htmlify_cmake ()
{
{
echo "
<html><head><title>
" > $1.html;
echo "
<html><head><title>
" > $1.html;
...
@@ -137,14 +147,13 @@ makedocs ()
...
@@ -137,14 +147,13 @@ makedocs ()
# the python docs can't be created (this happens if the .so file isn't compiled)
# the python docs can't be created (this happens if the .so file isn't compiled)
if [ "$1" = "makerel" ]
if [ "$1" = "makerel" ]
then
then
pushd ../python_examples
build_python_interface
./compile_dlib_python_module.bat || report_failure
popd
sphinx-build -b html docs/python sphinx.$$ || report_failure
sphinx-build -b html docs/python sphinx.$$ || report_failure
else
else
pushd ../python_examples
if [ "$1" != "fast" ]
./compile_dlib_python_module.bat
then
popd
build_python_interface
fi;
sphinx-build -b html docs/python sphinx.$$
sphinx-build -b html docs/python sphinx.$$
fi;
fi;
...
...
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