Skip to content

Commit

Permalink
Sorts output table by Source->Name, Right align Definition colum
Browse files Browse the repository at this point in the history
  • Loading branch information
catusf authored Feb 3, 2025
1 parent 9addd02 commit 12b97ef
Show file tree
Hide file tree
Showing 3 changed files with 1,091 additions and 311 deletions.
8 changes: 4 additions & 4 deletions bin/dict_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,18 +237,18 @@ def generate_markdown_table(data, files_status, files_status_details, extensions
seperator += " --- |"

if "definition" in columns:
header += "Definitions |"
seperator += " --- |"
header += "# Definitions |"
seperator += " ---: |" # Right align number of definitions

header += " | ".join(types) + " |"
seperator += " --- |" * len(extensions)

markdown = [header, seperator]

for entry in data:
for num, entry in enumerate(data, start=1):
download_links = " | ".join([f"[Download]({entry['Download'][ext]})" for ext in extensions])

line = f"| {entry['Number']} | {entry['Name']} | "
line = f"| {num} | {entry['Name']} | "

if "desc" in columns:
line += f"{entry['Description']} |"
Expand Down
Loading

0 comments on commit 12b97ef

Please sign in to comment.