summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-22 15:36:37 +0700
committerhathach <[email protected]>2026-06-22 15:36:37 +0700
commit706e4a5daaf8bbb55f0a7d00b69d4bc3c4cd70eb (patch)
tree4b9d46e8b6397ba050d7fba159a67efc0d511eca /tools
parent8abaf22bb6f2b63910cf35fb70cd223d0e4b30cd (diff)
parent299c0a55629691f6bbded895a4be377633e815ab (diff)
Merge remote-tracking branch 'origin/master' into add-ch58x-usbfs
Diffstat (limited to 'tools')
-rw-r--r--tools/metrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/metrics.py b/tools/metrics.py
index d716cb2a5..0e29fc1ab 100644
--- a/tools/metrics.py
+++ b/tools/metrics.py
@@ -384,9 +384,9 @@ def render_combine_table(json_data, sort_order='name+'):
def write_combine_markdown(json_data, path, sort_order='name+', title="TinyUSB Average Code Size Metrics"):
"""Write averaged size data to a markdown file."""
- md_lines = [f"## {title}", ""]
+ md_lines = [f"## {title}", "", "<details><summary>Size table</summary>", ""]
md_lines.extend(render_combine_table(json_data, sort_order))
- md_lines.append("")
+ md_lines.extend(["", "</details>", ""])
if json_data.get("file_list"):
md_lines.extend(["<details>", "<summary>Input files</summary>", ""])