From 2c283949500a7a3f245aa39684713cf40f2cdc43 Mon Sep 17 00:00:00 2001 From: David Ratunuman Date: Wed, 4 Dec 2024 10:40:38 -0800 Subject: [PATCH] Moved docs_definition.py and updated files --- {opendbc/car => docs/lib}/docs_definitions.py | 0 opendbc/car/__init__.py | 2 +- opendbc/car/body/values.py | 2 +- opendbc/car/chrysler/values.py | 2 +- opendbc/car/docs.py | 2 +- opendbc/car/extra_cars.py | 2 +- opendbc/car/ford/values.py | 2 +- opendbc/car/gm/values.py | 2 +- opendbc/car/honda/values.py | 2 +- opendbc/car/hyundai/values.py | 2 +- opendbc/car/mazda/values.py | 2 +- opendbc/car/nissan/values.py | 2 +- opendbc/car/subaru/values.py | 2 +- opendbc/car/tesla/values.py | 2 +- opendbc/car/tests/test_docs.py | 2 +- opendbc/car/toyota/values.py | 2 +- opendbc/car/volkswagen/values.py | 2 +- 17 files changed, 16 insertions(+), 16 deletions(-) rename {opendbc/car => docs/lib}/docs_definitions.py (100%) diff --git a/opendbc/car/docs_definitions.py b/docs/lib/docs_definitions.py similarity index 100% rename from opendbc/car/docs_definitions.py rename to docs/lib/docs_definitions.py diff --git a/opendbc/car/__init__.py b/opendbc/car/__init__.py index 53a5d830dd..7da1bcca97 100644 --- a/opendbc/car/__init__.py +++ b/opendbc/car/__init__.py @@ -8,7 +8,7 @@ from panda import uds from opendbc.car import structs from opendbc.car.can_definitions import CanData -from opendbc.car.docs_definitions import CarDocs, ExtraCarDocs +from docs.lib.docs_definitions import CarDocs, ExtraCarDocs from opendbc.car.common.numpy_fast import clip, interp # set up logging diff --git a/opendbc/car/body/values.py b/opendbc/car/body/values.py index ca47e09f02..2eb03f0236 100644 --- a/opendbc/car/body/values.py +++ b/opendbc/car/body/values.py @@ -1,6 +1,6 @@ from opendbc.car import Bus, CarSpecs, PlatformConfig, Platforms from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarDocs +from docs.lib.docs_definitions import CarDocs from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries Ecu = CarParams.Ecu diff --git a/opendbc/car/chrysler/values.py b/opendbc/car/chrysler/values.py index 7ed77fb1a5..3e33beac9a 100644 --- a/opendbc/car/chrysler/values.py +++ b/opendbc/car/chrysler/values.py @@ -4,7 +4,7 @@ from panda import uds from opendbc.car import Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarHarness, CarDocs, CarParts +from docs.lib.docs_definitions import CarHarness, CarDocs, CarParts from opendbc.car.fw_query_definitions import FwQueryConfig, Request, p16 Ecu = CarParams.Ecu diff --git a/opendbc/car/docs.py b/opendbc/car/docs.py index 00428f5c81..1bbb5b0af9 100755 --- a/opendbc/car/docs.py +++ b/opendbc/car/docs.py @@ -11,7 +11,7 @@ from opendbc.car.common.basedir import BASEDIR from opendbc.car import gen_empty_fingerprint from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarDocs, Device, ExtraCarDocs, Column, ExtraCarsColumn, CommonFootnote, PartType +from docs.lib.docs_definitions import CarDocs, Device, ExtraCarDocs, Column, ExtraCarsColumn, CommonFootnote, PartType from opendbc.car.car_helpers import interfaces, get_interface_attr from opendbc.car.values import Platform, PLATFORMS from opendbc.car.mock.values import CAR as MOCK diff --git a/opendbc/car/extra_cars.py b/opendbc/car/extra_cars.py index 87e1f13819..2088bed474 100644 --- a/opendbc/car/extra_cars.py +++ b/opendbc/car/extra_cars.py @@ -1,7 +1,7 @@ from dataclasses import dataclass from opendbc.car import structs, Platforms, ExtraPlatformConfig -from opendbc.car.docs_definitions import ExtraCarDocs, SupportType +from docs.lib.docs_definitions import ExtraCarDocs, SupportType @dataclass diff --git a/opendbc/car/ford/values.py b/opendbc/car/ford/values.py index 772f0b8ecc..0239739ba9 100644 --- a/opendbc/car/ford/values.py +++ b/opendbc/car/ford/values.py @@ -6,7 +6,7 @@ from panda import uds from opendbc.car import AngleRateLimit, Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column, \ +from docs.lib.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column, \ Device, SupportType from opendbc.car.fw_query_definitions import FwQueryConfig, LiveFwVersions, OfflineFwVersions, Request, StdQueries, p16 diff --git a/opendbc/car/gm/values.py b/opendbc/car/gm/values.py index 4d58a27125..49be3c188a 100644 --- a/opendbc/car/gm/values.py +++ b/opendbc/car/gm/values.py @@ -2,7 +2,7 @@ from opendbc.car import Bus, PlatformConfig, DbcDict, Platforms, CarSpecs from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarHarness, CarDocs, CarParts +from docs.lib.docs_definitions import CarHarness, CarDocs, CarParts from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries Ecu = CarParams.Ecu diff --git a/opendbc/car/honda/values.py b/opendbc/car/honda/values.py index bce1b73a60..2b4956b365 100644 --- a/opendbc/car/honda/values.py +++ b/opendbc/car/honda/values.py @@ -4,7 +4,7 @@ from panda import uds from opendbc.car import Bus, CarSpecs, PlatformConfig, Platforms, structs from opendbc.car.common.conversions import Conversions as CV -from opendbc.car.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column +from docs.lib.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries, p16 Ecu = structs.CarParams.Ecu diff --git a/opendbc/car/hyundai/values.py b/opendbc/car/hyundai/values.py index 223eb97a3d..d431483c87 100644 --- a/opendbc/car/hyundai/values.py +++ b/opendbc/car/hyundai/values.py @@ -6,7 +6,7 @@ from opendbc.car import Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.common.conversions import Conversions as CV from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column +from docs.lib.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column from opendbc.car.fw_query_definitions import FwQueryConfig, Request, p16 Ecu = CarParams.Ecu diff --git a/opendbc/car/mazda/values.py b/opendbc/car/mazda/values.py index 876557ab50..6f2c560a72 100644 --- a/opendbc/car/mazda/values.py +++ b/opendbc/car/mazda/values.py @@ -4,7 +4,7 @@ from opendbc.car import Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.common.conversions import Conversions as CV from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarHarness, CarDocs, CarParts +from docs.lib.docs_definitions import CarHarness, CarDocs, CarParts from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries Ecu = CarParams.Ecu diff --git a/opendbc/car/nissan/values.py b/opendbc/car/nissan/values.py index b4c2ff3b07..b77e16f06f 100644 --- a/opendbc/car/nissan/values.py +++ b/opendbc/car/nissan/values.py @@ -3,7 +3,7 @@ from panda import uds from opendbc.car import AngleRateLimit, Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarDocs, CarHarness, CarParts +from docs.lib.docs_definitions import CarDocs, CarHarness, CarParts from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries Ecu = CarParams.Ecu diff --git a/opendbc/car/subaru/values.py b/opendbc/car/subaru/values.py index 8dd9e7d5a9..fc938544fb 100644 --- a/opendbc/car/subaru/values.py +++ b/opendbc/car/subaru/values.py @@ -4,7 +4,7 @@ from panda import uds from opendbc.car import Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Tool, Column +from docs.lib.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Tool, Column from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries, p16 Ecu = CarParams.Ecu diff --git a/opendbc/car/tesla/values.py b/opendbc/car/tesla/values.py index db9880a177..6937502e93 100644 --- a/opendbc/car/tesla/values.py +++ b/opendbc/car/tesla/values.py @@ -2,7 +2,7 @@ from opendbc.car.structs import CarParams from opendbc.car import Bus, structs from opendbc.car import AngleRateLimit, CarSpecs, PlatformConfig, Platforms -from opendbc.car.docs_definitions import CarDocs +from docs.lib.docs_definitions import CarDocs from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries Ecu = CarParams.Ecu diff --git a/opendbc/car/tests/test_docs.py b/opendbc/car/tests/test_docs.py index 9e6e7b632d..6bb81f7808 100644 --- a/opendbc/car/tests/test_docs.py +++ b/opendbc/car/tests/test_docs.py @@ -4,7 +4,7 @@ from opendbc.car.car_helpers import interfaces from opendbc.car.docs import get_all_car_docs -from opendbc.car.docs_definitions import Cable, Column, PartType, Star +from docs.lib.docs_definitions import Cable, Column, PartType, Star from opendbc.car.honda.values import CAR as HONDA from opendbc.car.values import PLATFORMS diff --git a/opendbc/car/toyota/values.py b/opendbc/car/toyota/values.py index bc4e182aa7..9915be0902 100644 --- a/opendbc/car/toyota/values.py +++ b/opendbc/car/toyota/values.py @@ -6,7 +6,7 @@ from opendbc.car import Bus, CarSpecs, PlatformConfig, Platforms, AngleRateLimit from opendbc.car.common.conversions import Conversions as CV from opendbc.car.structs import CarParams -from opendbc.car.docs_definitions import CarFootnote, CarDocs, Column, CarParts, CarHarness +from docs.lib.docs_definitions import CarFootnote, CarDocs, Column, CarParts, CarHarness from opendbc.car.fw_query_definitions import FwQueryConfig, Request, StdQueries Ecu = CarParams.Ecu diff --git a/opendbc/car/volkswagen/values.py b/opendbc/car/volkswagen/values.py index f1f617dc82..b4179de51c 100644 --- a/opendbc/car/volkswagen/values.py +++ b/opendbc/car/volkswagen/values.py @@ -7,7 +7,7 @@ from opendbc.car import Bus, CarSpecs, DbcDict, PlatformConfig, Platforms from opendbc.car.common.conversions import Conversions as CV from opendbc.car import structs -from opendbc.car.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column, \ +from docs.lib.docs_definitions import CarFootnote, CarHarness, CarDocs, CarParts, Column, \ Device from opendbc.car.fw_query_definitions import EcuAddrSubAddr, FwQueryConfig, Request, p16