Car docs diff bot: auto-generate column header (#25622)

* Fix bot

* test

* Revert "test"

This reverts commit ba4a67cd8c.
pull/25606/head
Shane Smiskol 3 years ago committed by GitHub
parent b6e355a933
commit 61c30a95cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/debug/print_docs_diff.py

@ -10,7 +10,7 @@ from selfdrive.car.docs_definitions import Column
FOOTNOTE_TAG = "<sup>{}</sup>" FOOTNOTE_TAG = "<sup>{}</sup>"
STAR_ICON = '<a href="##"><img valign="top" src="https://raw.githubusercontent.com/commaai/openpilot/master/docs/assets/icon-star-{}.svg" width="22" /></a>' STAR_ICON = '<a href="##"><img valign="top" src="https://raw.githubusercontent.com/commaai/openpilot/master/docs/assets/icon-star-{}.svg" width="22" /></a>'
COLUMNS = "|" + "|".join([column.value for column in Column]) + "|" COLUMNS = "|" + "|".join([column.value for column in Column]) + "|"
COLUMN_HEADER = "|---|---|---|:---:|:---:|:---:|:---:|" COLUMN_HEADER = "|---|---|---|{}|".format("|".join([":---:"] * (len(Column) - 3)))
ARROW_SYMBOL = "" ARROW_SYMBOL = ""

Loading…
Cancel
Save