From 2cfb2fd07eb4fa4422810ec273583b47770e3784 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 10 Apr 2013 04:20:39 +0000 Subject: [PATCH] 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 --- deal.II/contrib/utilities/makeofflinedoc.sh | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 deal.II/contrib/utilities/makeofflinedoc.sh 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 -- 2.39.5