summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile13
-rwxr-xr-xscripts/build.sh7
-rwxr-xr-xscripts/build_showcase.sh39
-rw-r--r--showcase.md0
-rw-r--r--showcase_tpl.html42
-rw-r--r--src/building.svg84
-rw-r--r--src/list-ordered.svg8
8 files changed, 138 insertions, 56 deletions
diff --git a/.gitignore b/.gitignore
index 53752db..acf9b50 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
1output 1output
2showcase
diff --git a/Makefile b/Makefile
index 627f045..4e7d6d4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,17 @@
1all: build 1all: build
2 2
3clean: 3clean_output:
4 @mkdir -p output 4 @mkdir -p output
5 @rm -rf output/* 5 @rm -rf output/*
6 6
7build: clean 7clean_showcase:
8 @mkdir -p showcase
9 @rm -rf showcase/*
10
11build: clean_output
8 @scripts/build.sh 12 @scripts/build.sh
9 13
10.PHONY: all clean build 14showcase: clean_showcase
15 @scripts/build_showcase.sh
16
17.PHONY: all clean build showcase
diff --git a/scripts/build.sh b/scripts/build.sh
index 2f5fd79..637c334 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -6,15 +6,14 @@ handle () {
6 --enable-id-stripping \ 6 --enable-id-stripping \
7 --enable-comment-stripping \ 7 --enable-comment-stripping \
8 --remove-descriptive-elements \ 8 --remove-descriptive-elements \
9 --strip-xml-prolog \
9 --shorten-ids 10 --shorten-ids
10} 11}
12export -f handle
11 13
12mkdir -p output 14mkdir -p output
13 15
14find "src" \ 16find "src" \
15 -type f \ 17 -type f \
16 -name "*.svg" \ 18 -name "*.svg" \
17 | while read file_in 19 -print0 | parallel -0 handle {}
18 do
19 handle "$file_in"
20 done
diff --git a/scripts/build_showcase.sh b/scripts/build_showcase.sh
new file mode 100755
index 0000000..8d57b68
--- /dev/null
+++ b/scripts/build_showcase.sh
@@ -0,0 +1,39 @@
1#!/bin/bash
2
3mkdir -p showcase
4
5mapfile -d $'\0' icon_files < <(find "output" \
6 -type f \
7 -name "*.svg" \
8 -print0)
9
10icons="[]"
11
12for icon in "${icon_files[@]}"; do
13 title=$icon
14 title=${title#output/}
15 title=${title%.svg}
16
17 content=$(cat "$icon" | sed -z 's/\\/\\\\/g;s/\n/\\n/g;s/"/\\"/g')
18
19 icons=$(echo "$icons" | jq ". += [ { \
20 content: \"$content\", \
21 title: \"$title\", \
22 } ]")
23done
24
25meta_file=$(mktemp)
26
27icons=$(echo "$icons" | jq "sort_by(.title)")
28
29echo "{ icons: $icons }" > "$meta_file"
30
31pandoc showcase.md \
32 -f markdown \
33 -t html5 \
34 --no-highlight \
35 --template "showcase_tpl.html" \
36 -o "showcase/index.html" \
37 --metadata-file "$meta_file"
38
39rm "$meta_file"
diff --git a/showcase.md b/showcase.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/showcase.md
diff --git a/showcase_tpl.html b/showcase_tpl.html
new file mode 100644
index 0000000..d20596b
--- /dev/null
+++ b/showcase_tpl.html
@@ -0,0 +1,42 @@
1<!DOCTYPE html>
2<html lang="en">
3
4<head>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1" />
7 <meta name="robots" content="noindex" />
8
9 <link rel="canonical" href="$url.full$">
10 <link rel="shortcut icon" href="/favicon.ico" />
11
12 <style>
13 body {
14 display: flex;
15 flex-flow: row wrap;
16 max-width: 600px;
17 margin: 0 auto;
18 padding: 2rem;
19 }
20
21 .icon {
22 width: 16px;
23 height: 16px;
24 margin: .2rem;
25 padding: .4rem;
26 border: 1px solid #ddd;
27 border-radius: 3px;
28 }
29 </style>
30
31 <title>iro icons showcase</title>
32</head>
33
34<body>
35 $for(icons)$
36 <div class="icon" title="$it.title$">
37 $it.content$
38 </div>
39 $endfor$
40</body>
41
42</html>
diff --git a/src/building.svg b/src/building.svg
index bec43d9..c609da3 100644
--- a/src/building.svg
+++ b/src/building.svg
@@ -13,7 +13,7 @@
13 version="1.1" 13 version="1.1"
14 id="svg10" 14 id="svg10"
15 sodipodi:docname="building.svg" 15 sodipodi:docname="building.svg"
16 inkscape:version="0.92.4 5da689c313, 2019-01-14" 16 inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
17 inkscape:export-xdpi="192" 17 inkscape:export-xdpi="192"
18 inkscape:export-ydpi="192" 18 inkscape:export-ydpi="192"
19 style="fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round"> 19 style="fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round">
@@ -40,60 +40,54 @@
40 guidetolerance="10" 40 guidetolerance="10"
41 inkscape:pageopacity="0" 41 inkscape:pageopacity="0"
42 inkscape:pageshadow="2" 42 inkscape:pageshadow="2"
43 inkscape:window-width="3840" 43 inkscape:window-width="1920"
44 inkscape:window-height="1983" 44 inkscape:window-height="992"
45 id="namedview12" 45 id="namedview12"
46 showgrid="true" 46 showgrid="true"
47 inkscape:zoom="64" 47 inkscape:zoom="32"
48 inkscape:cx="5.2592609" 48 inkscape:cx="7.3141016"
49 inkscape:cy="9.5758391" 49 inkscape:cy="7.2610707"
50 inkscape:window-x="0" 50 inkscape:window-x="1536"
51 inkscape:window-y="0" 51 inkscape:window-y="0"
52 inkscape:window-maximized="1" 52 inkscape:window-maximized="1"
53 inkscape:current-layer="svg10" 53 inkscape:current-layer="svg10"
54 showguides="true"> 54 showguides="false"
55 inkscape:document-rotation="0">
55 <inkscape:grid 56 <inkscape:grid
56 type="xygrid" 57 type="xygrid"
57 id="grid823" /> 58 id="grid823" />
58 </sodipodi:namedview> 59 </sodipodi:namedview>
59 <path 60 <rect
60 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal" 61 style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
61 d="m 5.75,3.7500005 h 0.5 z" 62 id="rect825"
62 id="rect4" 63 width="0.5"
63 inkscape:connector-curvature="0" 64 height="0.5"
64 sodipodi:nodetypes="ccc" /> 65 x="5.75"
65 <path 66 y="4.7500005" />
66 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal"
67 d="M 9.7494681,3.7500005 H 10.249468 Z"
68 id="rect10"
69 inkscape:connector-curvature="0"
70 sodipodi:nodetypes="ccc" />
71 <path
72 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal"
73 d="m 5.75,6.75 h 0.5 z"
74 id="rect12"
75 inkscape:connector-curvature="0"
76 sodipodi:nodetypes="ccc" />
77 <path
78 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal"
79 d="M 9.7494681,6.75 H 10.249468 Z"
80 id="rect14"
81 inkscape:connector-curvature="0"
82 sodipodi:nodetypes="ccc" />
83 <path 67 <path
84 id="rect16" 68 id="rect16"
85 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal" 69 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal"
86 d="m 7.75,12.75 h 0.5 v 2 h -0.5 z m 6.499682,1.999925 H 1.75 M 4,1.25 h 8 c 0.4155,0 0.75,0.3345 0.75,0.75 v 12 c 0,0.4155 -0.3345,0.75 -0.75,0.75 H 4 C 3.5845,14.75 3.25,14.4155 3.25,14 V 2 C 3.25,1.5845 3.5845,1.25 4,1.25 Z" /> 70 d="m 7.75,12.25 h 0.5 v 2.5 h -0.5 z m 6.999841,2.499925 H 1.25 M 3.5,1.75 h 9.000159 c 0.4155,0 0.75,0.3345 0.75,0.75 V 14 c 0,0.4155 -0.3345,0.75 -0.75,0.75 H 3.5 C 3.0845,14.75 2.75,14.4155 2.75,14 V 2.5 C 2.75,2.0845 3.0845,1.75 3.5,1.75 Z"
87 <path 71 sodipodi:nodetypes="cccccccsssssssss" />
88 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal" 72 <rect
89 d="m 5.75,9.75 h 0.5 z" 73 style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
90 id="rect848" 74 id="rect825-3"
91 inkscape:connector-curvature="0" 75 width="0.5"
92 sodipodi:nodetypes="ccc" /> 76 height="0.5"
93 <path 77 x="9.75"
94 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;paint-order:normal" 78 y="4.75" />
95 d="M 9.7494681,9.75 H 10.249468 Z" 79 <rect
96 id="rect850" 80 style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
97 inkscape:connector-curvature="0" 81 id="rect855"
98 sodipodi:nodetypes="ccc" /> 82 width="0.5"
83 height="0.5"
84 x="5.75"
85 y="8.75" />
86 <rect
87 style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
88 id="rect857"
89 width="0.5"
90 height="0.5"
91 x="9.75"
92 y="8.75" />
99</svg> 93</svg>
diff --git a/src/list-ordered.svg b/src/list-ordered.svg
index 8e9a83f..22def41 100644
--- a/src/list-ordered.svg
+++ b/src/list-ordered.svg
@@ -44,9 +44,9 @@
44 inkscape:window-height="992" 44 inkscape:window-height="992"
45 id="namedview12" 45 id="namedview12"
46 showgrid="true" 46 showgrid="true"
47 inkscape:zoom="8" 47 inkscape:zoom="32"
48 inkscape:cx="-16.587334" 48 inkscape:cx="-2.7301153"
49 inkscape:cy="9.4358757" 49 inkscape:cy="3.9523496"
50 inkscape:window-x="1536" 50 inkscape:window-x="1536"
51 inkscape:window-y="0" 51 inkscape:window-y="0"
52 inkscape:window-maximized="1" 52 inkscape:window-maximized="1"
@@ -71,7 +71,7 @@
71 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 71 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
72 <path 72 <path
73 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 73 style="fill:none;stroke:#000000;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
74 d="M 2.7500938,6.2503181 V 2.25 l -2.0001876,1" 74 d="M 2.25,6.2503181 V 2.25 l -1.5000938,0.5"
75 id="path887" 75 id="path887"
76 inkscape:connector-curvature="0" 76 inkscape:connector-curvature="0"
77 sodipodi:nodetypes="ccc" /> 77 sodipodi:nodetypes="ccc" />