aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-06-04 09:30:54 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-06-04 09:30:54 -0700
commit891805763e5370a0bf8c9cc6776ce8c96573e008 (patch)
tree0c5549fbb264ee52f2f781707aee9250572454a5
parent4462ae5aee15d21c4dcaa04eac60288d485fe30e (diff)
downloadsubsurface-891805763e5370a0bf8c9cc6776ce8c96573e008.tar.gz
build-system: remove relative paths to icons
Asciidoc appears to insert './images' references when using the admonitionblock. Clean that up in the post processing of the user manual for HTML. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xscripts/prep-manual.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/prep-manual.sh b/scripts/prep-manual.sh
index 130d2d736..11760306e 100755
--- a/scripts/prep-manual.sh
+++ b/scripts/prep-manual.sh
@@ -3,5 +3,6 @@ cat $1 | \
sed -e '1,/title/d;/<\/head>/,/<body/d;/<\/body/,/<\/html/d' | \
sed -e '/^@media/,/^}/d' | \
sed -e 's/src="images/src="\/images/g' | \
+ sed -e 's/src="\.\/images/src="\/images/g' | \
sed -e 's/src="mobile-images/src="\/mobile-images/g' | \
html-minifier --collapse-whitespace --keep-closing-slash --minify-js --minify-css > $1.wp