mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:13:24 +00:00
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>
This commit is contained in:
parent
4462ae5aee
commit
891805763e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue