From: heister Date: Wed, 10 Apr 2013 04:20:39 +0000 (+0000) Subject: added first test for a script to generate an offline documentation X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66ea1fc78de31cb31187c58f5243426aa67d6a9;p=dealii-svn.git added first test for a script to generate an offline documentation git-svn-id: https://svn.dealii.org/trunk@29234 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/contrib/utilities/makeofflinedoc.sh b/deal.II/contrib/utilities/makeofflinedoc.sh new file mode 100755 index 0000000000..26a35931b8 --- /dev/null +++ b/deal.II/contrib/utilities/makeofflinedoc.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ ! -f index.html ] +then + echo "Please run this script in the doc output directory (install/doc)" + exit 1 +fi + +mkdir images >/dev/null + +echo "Downloading images (press ctrl-c to cancel) ..." +cd images +{ +trap "echo \"(skipping)\"" SIGINT +wget -q -nd -A png,gif -m -l 1 -np http://www.dealii.org/images/steps/developer/ +} +cd .. + +echo "Patching html files ..." +sed -i 's#"http://www.dealii.org/images/steps/developer/\(step-.*\)"#"images/\1"#g' step_*.html + +echo "all done!" \ No newline at end of file