Skip to content

Commit

Permalink
Mark old MDI as obsolete on cheat sheet
Browse files Browse the repository at this point in the history
[why]
The (old) Material Design Icons are to be removed.
We should communicate that on the Cheat Sheet.

[how]
See commit
  4452cee  Add possibility to add "obsolete" to glyphs

that implements the CSS stuff to display an 'obsolete' marker.

Change the cheat-sheet generatot to actually insert the markers for the
appropriate codepoints. That is, the codepoints are not checked but the
ID.

Fixes: #1096

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Feb 1, 2023
1 parent 72b9ec6 commit 660aa80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/scripts/generate-css.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ for var in "${!i@}"; do
{
printf " <div class=\"column\">"
printf "\\n"
if [[ "$glyph_name" = mdi-* ]]; then
printf " <span class=\"corner-red\"></span><span class=\"corner-text\">obsolete</span>\\n"
fi
printf " <div class=\"nf nf-%s center\"></div>" "$glyph_name"
printf "\\n"
printf " <div class=\"class-name\">nf-%s</div><div title=\"Copy Hex Code to Clipboard\" class=\"codepoint\">%s</div>" "$glyph_name" "$glyph_code"
Expand Down

0 comments on commit 660aa80

Please sign in to comment.