New yaml character format (#337 from TheTerrasque/feature/yaml-characters)
This doesn't break backward compatibility with JSON characters.
This commit is contained in:
parent
7ce608d101
commit
2157bb4319
6 changed files with 71 additions and 28 deletions
|
@ -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>"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue