New yaml character format (#337 from TheTerrasque/feature/yaml-characters)

This doesn't break backward compatibility with JSON characters.
This commit is contained in:
TheTerrasque 2023-04-03 01:34:25 +02:00 committed by GitHub
parent 7ce608d101
commit 2157bb4319
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 28 deletions

View file

@ -62,8 +62,8 @@ def generate_html():
cards = []
# Iterate through files in image folder
for file in sorted(Path("characters").glob("*")):
if file.name.endswith(".json"):
character = file.name.replace(".json", "")
if file.suffix in [".json", ".yml", ".yaml"]:
character = file.stem
container_html = f'<div class="character-container">'
image_html = "<div class='placeholder'></div>"