Switch docs to use a bootstrap theme
[docs.git] / docs / build-integration-robot-libdoc.sh
index 1e2c9764dea5c6eb97440fa0e634772fc781def7..414a81217aca3c2ae02dc329a7c5308ed0acbc7e 100755 (executable)
@@ -1,10 +1,11 @@
 #!/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
-cd $ROBOT_DIR/
-for f in *.html; do sed -i 's/black/orange/; s/white/black/; s/^<body>/<body><img src="..\/..\/odl.png">/' $f; done
+for f in *.robot; do python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html; done
+for f in *.py; do python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html > /dev/null 2>&1; done
+cd $TMP_ROBOT_DIR/
+for f in *.html; do sed 's/black/orange/; s/white/black/; s/^<body>/<body><img src="..\/..\/odl.png">/' $f > $ROBOT_DIR/$f; done