Updated git submodules
[docs.git] / docs / build-integration-robot-libdoc.sh
index 1cd5f6f33bd29ff238fe58c44889cc0454536244..dd09dbc50e6023525b26d8ff9d4e43ff9f4ee63f 100755 (executable)
@@ -1,9 +1,23 @@
 #!/bin/bash
 
 ROBOT_DIR=`pwd`/_static/integration/robot
+TMP_ROBOT_DIR=`pwd`/_build/robot
 
-mkdir -p $ROBOT_DIR
+mkdir -p $ROBOT_DIR $TMP_ROBOT_DIR
 cd submodules/integration/test/csit/libraries
-for f in *.robot; do python -m robot.libdoc $f $ROBOT_DIR/$f.html; done
-for f in *.py; do python -m robot.libdoc $f $ROBOT_DIR/$f.html; done
+for f in *.robot; do
+    python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html &
+done
+wait
+for f in *.py; do
+    python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html > /dev/null 2>&1 &
+done
+wait
 
+cd $TMP_ROBOT_DIR/
+echo "<html><body><ul>" > $ROBOT_DIR/index.html
+for f in *.html; do
+    sed 's/black/orange/; s/white/black/; s/^<body>/<body><img src="..\/..\/odl.png">/' $f > $ROBOT_DIR/$f
+    echo "<li><a href=\"$f\">$f</a></li>" >> $ROBOT_DIR/index.html
+done
+echo "</ul></body></html>" >> $ROBOT_DIR/index.html