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
21ce4f98
Commit
21ce4f98
authored
Jan 21, 2018
by
Davis King
Browse files
Updated makedocs to use setup.py to create the python docs
parent
3c161139
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
36 deletions
+8
-36
docs/makedocs
docs/makedocs
+8
-36
No files found.
docs/makedocs
View file @
21ce4f98
...
...
@@ -12,29 +12,6 @@ htmlify_python_file ()
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
# Check if we should run all the python examples to make sure they
# work without generating an error.
if [ $1 == "test-python" ]
then
cd ..
FILES=`ls *.py`
for f in $FILES
do
python $f > /dev/null
<
/
dev
/
null
||
report_failure
done
fi
popd
}
add_links_between_example_programs()
{
...
...
@@ -169,22 +146,17 @@ makedocs ()
cp -r htmltemp.$$/examples/* docs/chm/docs
rm -rf htmltemp.$$
# Create python docs. If we are making a release then stop immediately if
# the python docs can't be created (this happens if the .so file isn't compiled)
if [ "$1" = "makerel" ]
then
build_python_interface test-python
sphinx-build -b html docs/python sphinx.$$ || report_failure
else
# create python docs unless you say ./makedocs fast
if [ "$1" != "fast" ]
then
build_python_interface no-test-python
fi;
sphinx-build -b html docs/python sphinx.$$
cd ..
python setup.py build_sphinx -c docs/docs/python --build-dir docs/sphinx.$$ || report_failure
cd docs
cp -r sphinx.$$/html docs/web/python
mv sphinx.$$/html docs/chm/docs/python
rm -rf sphinx.$$
fi;
cp -r sphinx.$$ docs/web/python
mv sphinx.$$ docs/chm/docs/python
cp docs/cache/dlib/test/makefile docs/web/dlib/test
cp docs/cache/dlib/test/makefile docs/chm/docs/dlib/test
...
...
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