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 for f in *.py; do
12     python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html > /dev/null 2>&1
13 done
14
15 cd $TMP_ROBOT_DIR/
16 echo "<html><body><ul>" > $ROBOT_DIR/index.html
17 for f in *.html; do
18     sed 's/black/orange/; s/white/black/; s/^<body>/<body><img src="..\/..\/odl.png">/' $f > $ROBOT_DIR/$f
19     echo "<li><a href=\"$f\">$f</a></li>" >> $ROBOT_DIR/index.html
20 done
21 echo "</ul></body></html>" >> $ROBOT_DIR/index.html