diff --git a/.gitignore b/.gitignore
index eef98e69a..e9bb29422 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@ package-lock.json
*.uuid
bin/scripts/name_parser/__pycache__/*
bin/scripts/name_parser/log
+# This is just needed for the cheat sheet and not go into the repo:
+css/nerd-fonts-generated-removed.min.css
diff --git a/bin/scripts/data/cheatsheet-foot.txt b/bin/scripts/data/cheatsheet-foot.txt
index 8e4c1d0ff..4d2212436 100644
--- a/bin/scripts/data/cheatsheet-foot.txt
+++ b/bin/scripts/data/cheatsheet-foot.txt
@@ -1,4 +1,9 @@
+
"
printf "\\n"
if [[ "$glyph_name" = mdi-* ]]; then
- printf "
obsolete\\n"
+ printf "
removed\\n"
+ printf "
" "$glyph_name"
+ else
+ printf "
" "$glyph_name"
fi
- printf "
" "$glyph_name"
printf "\\n"
printf "
nf-%s
%s
" "$glyph_name" "$glyph_code"
printf "\\n"
@@ -106,14 +125,14 @@ for var in "${!i@}"; do
printf "\\n"
} >> "$output_cheat_sheet_file"
- # generate json entry
- {
- printf ",\"%s\":{\"char\":\"%s\",\"code\":\"%s\"}" "$glyph_name" "$glyph_char" "$glyph_code"
- } >> "$output_json_file"
-
done
cat "$cheat_sheet_foot_file" >> "$output_cheat_sheet_file"
printf "}\n" >> "$output_json_file"
printf "Generated CSS, json, and Cheat Sheet HTML\\n"
+printf "$output_css_file\n"
+printf "$output_css_min_file [needs to also go into gh-pages:_includes/css/]\n"
+printf "$output_css_min_rem_file [needs to only go into gh-pages:_includes/css/]\n"
+printf "$output_cheat_sheet_file [needs to only go into gh-pages:_posts/]\n"
+printf "$output_json_file\n"
diff --git a/bin/scripts/lib/i_all.sh b/bin/scripts/lib/i_all.sh
index 81e480dc2..857c12aed 100644
--- a/bin/scripts/lib/i_all.sh
+++ b/bin/scripts/lib/i_all.sh
@@ -1,9 +1,20 @@
#!/usr/bin/env bash
# Nerd Fonts Version: 3.0.0
-# Script Version 1.1.0
+# Script Version 1.2.0
-for i in $(dirname "${BASH_SOURCE[0]:-$0}")/i_{cod,dev,fae,fa,iec,logos,oct,ple,pom,seti,material,weather,md}.sh; do
- # shellcheck source=/dev/null
+# Usually this is called without argument. If the first argument
+# is 'include-old-material' the old material design icons will be
+# included. This is needed for the cheat sheet.
+
+sets=('cod' 'dev' 'fae' 'fa' 'iec' 'logos' 'oct' 'ple' 'pom' 'seti' 'weather' 'md')
+base=$(dirname "${BASH_SOURCE[0]:-$0}")
+
+if [ "$1" = "include-old-material" ]; then
+ sets=(${sets[@]} 'material')
+fi
+
+for set in ${sets[@]}; do
+ i="${base}/i_${set}.sh"
test -f "$i" -a -r "$i" && source "$i"
done
unset i