Skip to content

Commit

Permalink
build-system: remove relative paths to icons
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dirkhh committed Jun 4, 2021
1 parent 4462ae5 commit 8918057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/prep-manual.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8918057

Please sign in to comment.