small tweaks for Lichess icons generation

This commit is contained in:
Simek
2026-05-06 12:13:21 +02:00
parent 73be33a28d
commit d63576c628
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ def gen_sources(codes):
ts.write(f"export const {name} = '{chr(codes[name])}'; // {codes[name]:x}\n")
scss.write(f"$licon-{name}: '{chr(codes[name])}'; // {codes[name]:x}\n")
debug.write(f' <i title="{name}">&#x{codes[name]:x};</i>\n')
types.write(f"declare type LiconType = { ' | '.join([f"'{chr(codes[name])}'" for name in codes]) }\n")
types.write(f"declare type LiconType = { ' | '.join([f"'{chr(codes[name])}'" for name in codes]) };\n")
debug.write(' </body>\n</html>\n')
def gen_fonts():
+1 -1
View File
@@ -52,7 +52,7 @@
"metals": "tail -F .metals/metals.log",
"serverlog": "journalctl --user -fu lila -o cat & tail -F .metals/metals.log",
"i18n-file-gen": "pnpx tsx bin/i18n-file-gen.ts",
"icons-files-gen": "python3 bin/gen/licon.py",
"icon-files-gen": "python3 bin/gen/licon.py",
"multilog": "pnpm serverlog & ui/build -w",
"add-hooks": "git config get --all core.hooksPath | grep -Fxq bin/git-hooks || git config set --append core.hooksPath bin/git-hooks",
"remove-hooks": "git config unset --value=bin/git-hooks core.hooksPath || true"
+1 -1
View File
@@ -10,4 +10,4 @@
* licon.py) and then add it to your editor's font list.
*/
declare type LiconType = '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | ''
declare type LiconType = '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '';