Updated git submodules
[docs.git] / docs / build-integration-robot-libdoc.sh
1 #!/bin/bash
2
3 ROBOT_DIR=`pwd`/_static/integration/robot
4 TMP_ROBOT_DIR=`pwd`/_build/robot
5
6 mkdir -p $ROBOT_DIR $TMP_ROBOT_DIR
7 cd submodules/integration/test/csit/libraries
8 for f in *.robot; do
9     python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html &
10 done
11 wait
12 for f in *.py; do
13     python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html > /dev/null 2>&1 &
14 done
15 wait
16
17 cd $TMP_ROBOT_DIR/
18 echo "<html><body><ul>" > $ROBOT_DIR/index.html
19 for f in *.html; do
20     sed 's/black/orange/; s/white/black/; s/^<body>/<body><img src="..\/..\/odl.png">/' $f > $ROBOT_DIR/$f
21     echo "<li><a href=\"$f\">$f</a></li>" >> $ROBOT_DIR/index.html
22 done
23 echo "</ul></body></html>" >> $ROBOT_DIR/index.html