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
6d286b6a
Commit
6d286b6a
authored
Feb 23, 2014
by
Davis King
Browse files
Made madedocs add links between python example programs.
parent
c3a22445
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
docs/makedocs
docs/makedocs
+6
-3
No files found.
docs/makedocs
View file @
6d286b6a
...
@@ -37,9 +37,10 @@ build_python_interface ()
...
@@ -37,9 +37,10 @@ build_python_interface ()
add_links_between_example_programs()
add_links_between_example_programs()
{
{
EXT=$3
# Get the list of example program filenames
# Get the list of example program filenames
pushd $1 > /dev/null
pushd $1 > /dev/null
FILES=`ls *.
cpp
`
FILES=`ls *.
$EXT
`
popd > /dev/null
popd > /dev/null
# Now run sed on all the htmlified example programs to add the links between them.
# Now run sed on all the htmlified example programs to add the links between them.
...
@@ -49,7 +50,7 @@ add_links_between_example_programs()
...
@@ -49,7 +50,7 @@ add_links_between_example_programs()
escaped_name=`echo $f | sed -e 's/\./\\\./g'`
escaped_name=`echo $f | sed -e 's/\./\\\./g'`
pushd $1 > /dev/null
pushd $1 > /dev/null
# get a list of all the html example files that contain the name
# get a list of all the html example files that contain the name
matching_html_files=`grep -e "\b$escaped_name\b" -l *.
cpp
| sed -e "s/\.
cpp\b/.cpp
.html/g"`
matching_html_files=`grep -e "\b$escaped_name\b" -l *.
$EXT
| sed -e "s/\.
$EXT\b/.$EXT
.html/g"`
popd > /dev/null
popd > /dev/null
# now actually run sed to add the links
# now actually run sed to add the links
...
@@ -177,7 +178,7 @@ makedocs ()
...
@@ -177,7 +178,7 @@ makedocs ()
echo Creating HTML version of the source
echo Creating HTML version of the source
htmlify --title "dlib C++ Library - " -i docs/cache -o htmltemp.$$
htmlify --title "dlib C++ Library - " -i docs/cache -o htmltemp.$$
add_links_between_example_programs docs/cache/examples htmltemp.$$/examples
add_links_between_example_programs docs/cache/examples htmltemp.$$/examples
cpp
echo Copying files around...
echo Copying files around...
cp -r htmltemp.$$/dlib docs/web
cp -r htmltemp.$$/dlib docs/web
...
@@ -219,6 +220,8 @@ makedocs ()
...
@@ -219,6 +220,8 @@ makedocs ()
htmlify_python docs/chm/docs/
htmlify_python docs/chm/docs/
htmlify_python docs/web/
htmlify_python docs/web/
add_links_between_example_programs docs/cache/python_examples docs/chm/docs py
add_links_between_example_programs docs/cache/python_examples docs/web py
cp docs/*.gif docs/web
cp docs/*.gif docs/web
cp docs/*.gif docs/chm/docs
cp docs/*.gif docs/chm/docs
...
...
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