diff --git a/output_html.py b/output_html.py index 8e17f60..e01e993 100644 --- a/output_html.py +++ b/output_html.py @@ -1,6 +1,5 @@ import json -from anytree import LevelOrderIter, LevelOrderGroupIter from anytree.importer import DictImporter from sys import argv @@ -56,8 +55,22 @@ recipe_desc = recipe.get("description") importer = DictImporter() sub_recipes = [importer.import_(data) for data in recipe["sub_recipes"]] +print("") +print("") +print(f"{recipe_name}") +print("") +print("") +print("") + +print("
") print(f"

{recipe_name}

") +print("
") + +print("
") print(f"

{recipe_desc}

") +print("
") + +print("
") print("

Needs

") print("") +print("
") -print("

Steps

") +print("
") +print("

Preparation

") print("
    ") for sub_recipe in sub_recipes: @@ -76,9 +91,14 @@ for sub_recipe in sub_recipes: print(f"
  1. {task}
  2. ") print("
") +print("
") + +print("
") +print("

Tabular Layout

") for sub_recipe in sub_recipes: - print("") + print("

") + print("

") output_rows = [] @@ -94,3 +114,9 @@ for sub_recipe in sub_recipes: print("") print("
") + print("

") + +print("
") + +print("") +print("")