|
|
@ -10,7 +10,7 @@ from typing import Dict, List |
|
|
|
from cereal import car |
|
|
|
from cereal import car |
|
|
|
from common.basedir import BASEDIR |
|
|
|
from common.basedir import BASEDIR |
|
|
|
from selfdrive.car import gen_empty_fingerprint |
|
|
|
from selfdrive.car import gen_empty_fingerprint |
|
|
|
from selfdrive.car.docs_definitions import CarInfo, Column, CommonFootnote |
|
|
|
from selfdrive.car.docs_definitions import CarInfo, CarPart, Column, CommonFootnote, PartType |
|
|
|
from selfdrive.car.car_helpers import interfaces, get_interface_attr |
|
|
|
from selfdrive.car.car_helpers import interfaces, get_interface_attr |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -61,7 +61,8 @@ def generate_cars_md(all_car_info: List[CarInfo], template_fn: str) -> str: |
|
|
|
template = jinja2.Template(f.read(), trim_blocks=True, lstrip_blocks=True) |
|
|
|
template = jinja2.Template(f.read(), trim_blocks=True, lstrip_blocks=True) |
|
|
|
|
|
|
|
|
|
|
|
footnotes = [fn.value.text for fn in get_all_footnotes()] |
|
|
|
footnotes = [fn.value.text for fn in get_all_footnotes()] |
|
|
|
cars_md: str = template.render(all_car_info=all_car_info, group_by_make=group_by_make, |
|
|
|
cars_md: str = template.render(all_car_info=all_car_info, car_parts=CarPart, |
|
|
|
|
|
|
|
part_types=PartType, group_by_make=group_by_make, |
|
|
|
footnotes=footnotes, Column=Column) |
|
|
|
footnotes=footnotes, Column=Column) |
|
|
|
return cars_md |
|
|
|
return cars_md |
|
|
|
|
|
|
|
|
|
|
|