1
0
forked from me/IronOS

Update gen_menu_docs.py

This commit is contained in:
Ben V. Brown
2022-01-18 23:09:51 +11:00
parent cf70c65a95
commit 415f9dfcf3

View File

@@ -19,6 +19,8 @@ ENGLISH_TRANSLATION_PATH = os.path.join(HERE, "translation_EN.json")
MENU_DOCS_FILE_PATH = os.path.join(HERE.parent, "Documentation/Settings.md")
# Loading a single JSON file
def load_json(filename: str, skip_first_line: bool) -> dict:
with open(filename) as f:
if skip_first_line:
@@ -66,6 +68,7 @@ def write_menu_entries(filep, defs, translation_data):
"""
Writes the menu entries section out
"""
menu_entries_pretense = """
## Settings