From b99a907ef9a9ed88d0330d406697cd4a3e6df397 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 28 Mar 2021 15:47:27 +0200 Subject: Improved file structure --- scripts/build.sh | 4 ++-- scripts/build_showcase.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') 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 @@ #!/bin/bash handle () { - scour -i "$1" -o "output${1#src}" \ + scour -i "$1" -o "output${1#"src/icons"}" \ --enable-viewboxing \ --enable-id-stripping \ --enable-comment-stripping \ @@ -13,7 +13,7 @@ export -f handle mkdir -p output -find "src" \ +find "src/icons" \ -type f \ -name "*.svg" \ -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)") echo "{ icons: $icons }" > "$meta_file" -pandoc showcase.md \ +pandoc "src/showcase/index.md" \ -f markdown \ -t html5 \ --no-highlight \ - --template "showcase_tpl.html" \ + --template "src/showcase/index.html" \ -o "showcase/index.html" \ --metadata-file "$meta_file" -- cgit v1.2.3-70-g09d2