mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
.github: shorten board name on size table comment
counter part of https://github.com/ArduPilot/ardupilot/pull/34469
This commit is contained in:
committed by
Peter Barker
parent
05d7002393
commit
4965c4e84a
@@ -148,6 +148,9 @@ jobs:
|
|||||||
# table for the run's own page
|
# table for the run's own page
|
||||||
COLUMNS = ["AP_Periph", "antennatracker", "blimp", "bootloader", "copter",
|
COLUMNS = ["AP_Periph", "antennatracker", "blimp", "bootloader", "copter",
|
||||||
"heli", "iofirmware", "plane", "rover", "sub"]
|
"heli", "iofirmware", "plane", "rover", "sub"]
|
||||||
|
# header only; the json is keyed by the names above
|
||||||
|
COLUMN_TITLES = {"AP_Periph": "Periph", "antennatracker": "tracker",
|
||||||
|
"iofirmware": "iofw"}
|
||||||
# no dot, colon, bracket, angle or at, so a name cannot render as a
|
# no dot, colon, bracket, angle or at, so a name cannot render as a
|
||||||
# link, an image or a mention
|
# link, an image or a mention
|
||||||
BOARD_RE = re.compile(r"[A-Za-z0-9][A-Za-z0-9_+-]{0,39}")
|
BOARD_RE = re.compile(r"[A-Za-z0-9][A-Za-z0-9_+-]{0,39}")
|
||||||
@@ -258,7 +261,8 @@ jobs:
|
|||||||
elif head:
|
elif head:
|
||||||
lines += ["Built from %s" % head, ""]
|
lines += ["Built from %s" % head, ""]
|
||||||
if rows:
|
if rows:
|
||||||
lines += ["| " + " | ".join(["Board"] + COLUMNS) + " |",
|
titles = [COLUMN_TITLES.get(column, column) for column in COLUMNS]
|
||||||
|
lines += ["| " + " | ".join(["Board"] + titles) + " |",
|
||||||
"| " + " | ".join([":---"] + [":---:"] * len(COLUMNS)) + " |"]
|
"| " + " | ".join([":---"] + [":---:"] * len(COLUMNS)) + " |"]
|
||||||
for row in rows:
|
for row in rows:
|
||||||
lines.append("| " + " | ".join(row) + " |")
|
lines.append("| " + " | ".join(row) + " |")
|
||||||
|
|||||||
Reference in New Issue
Block a user