path: root/build-website
diff options
authoranonym <>2017-11-14 04:45:47 +0100
committeranonym <>2017-11-14 04:45:47 +0100
commita02aafefe1c3850461d28a44befd2378fe527741 (patch)
tree92b2c487d733c8b40745ad89fcd88c76265bea97 /build-website
parent15d43a07224c8dd39ca3edf01e4a8826e2703a46 (diff)
Prevent Ikiwiki from formatting the Unsafe Browser warning pages.
This is a follow-up on 08259afa449f3dcd916fe03db5775f3652f5a7e8. Due to #14962 we really only want the simple text-only HTML page without all the Ikiwiki formatting added. I'm very ignorant of Ikiwiki, so this hack is the best I could come up with so I can quickly rebuild Tails 3.3. I'm also sloppy: I verified my assumption that those .html pages would be left unprocessed... Refs: #14962
Diffstat (limited to 'build-website')
1 files changed, 10 insertions, 1 deletions
diff --git a/build-website b/build-website
index f5001d0..b7d0928 100755
--- a/build-website
+++ b/build-website
@@ -25,4 +25,13 @@ if ! "${git_dir}/bin/sanity-check-website" ; then
-ikiwiki -setup ikiwiki.setup -refresh "$@"
+# If I knew Ikiwiki better I'd probably figure out how to just make it
+# keep the misc/*.html files as-is instead of this hack.
+fixup_14962_workaround() {
+ mkdir -p config/chroot_local-includes/usr/share/doc/tails/website/misc
+ rm -f config/chroot_local-includes/usr/share/doc/tails/website/misc/*
+ cp wiki/src/misc/*.html \
+ config/chroot_local-includes/usr/share/doc/tails/website/misc
+ikiwiki -setup ikiwiki.setup -refresh "$@" && fixup_14962_workaround