summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh4
-rwxr-xr-xscripts/build_showcase.sh4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 637c334..62822a3 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -1,7 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2 2
3handle () { 3handle () {
4 scour -i "$1" -o "output${1#src}" \ 4 scour -i "$1" -o "output${1#"src/icons"}" \
5 --enable-viewboxing \ 5 --enable-viewboxing \
6 --enable-id-stripping \ 6 --enable-id-stripping \
7 --enable-comment-stripping \ 7 --enable-comment-stripping \
@@ -13,7 +13,7 @@ export -f handle
13 13
14mkdir -p output 14mkdir -p output
15 15
16find "src" \ 16find "src/icons" \
17 -type f \ 17 -type f \
18 -name "*.svg" \ 18 -name "*.svg" \
19 -print0 | parallel -0 handle {} 19 -print0 | parallel -0 handle {}
diff --git a/scripts/build_showcase.sh b/scripts/build_showcase.sh
index 8d57b68..402c5e4 100755
--- a/scripts/build_showcase.sh
+++ b/scripts/build_showcase.sh
@@ -28,11 +28,11 @@ icons=$(echo "$icons" | jq "sort_by(.title)")
28 28
29echo "{ icons: $icons }" > "$meta_file" 29echo "{ icons: $icons }" > "$meta_file"
30 30
31pandoc showcase.md \ 31pandoc "src/showcase/index.md" \
32 -f markdown \ 32 -f markdown \
33 -t html5 \ 33 -t html5 \
34 --no-highlight \ 34 --no-highlight \
35 --template "showcase_tpl.html" \ 35 --template "src/showcase/index.html" \
36 -o "showcase/index.html" \ 36 -o "showcase/index.html" \
37 --metadata-file "$meta_file" 37 --metadata-file "$meta_file"
38 38