diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 4 | ||||
-rwxr-xr-x | scripts/build_showcase.sh | 4 |
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 | ||
3 | handle () { | 3 | handle () { |
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 | ||
14 | mkdir -p output | 14 | mkdir -p output |
15 | 15 | ||
16 | find "src" \ | 16 | find "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 | ||
29 | echo "{ icons: $icons }" > "$meta_file" | 29 | echo "{ icons: $icons }" > "$meta_file" |
30 | 30 | ||
31 | pandoc showcase.md \ | 31 | pandoc "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 | ||