@@ -3,74 +3,86 @@ import { type DefaultTheme } from 'vitepress'
33type SidebarItem = DefaultTheme . SidebarItem
44
55const vpicEndpointLinks = [
6- { text : 'DecodeVin' , link : '/api/endpoints/decode-vin' } ,
7- { text : 'DecodeVinExtended' , link : '/api/endpoints/decode-vin-extended' } ,
8- { text : 'DecodeVinValues' , link : '/api/endpoints/decode-vin-values' } ,
6+ { text : 'DecodeVin' , link : '/guide/vpic/endpoints/decode-vin' } ,
7+ {
8+ text : 'DecodeVinExtended' ,
9+ link : '/guide/vpic/endpoints/decode-vin-extended' ,
10+ } ,
11+ { text : 'DecodeVinValues' , link : '/guide/vpic/endpoints/decode-vin-values' } ,
912 {
1013 text : 'DecodeVinValuesBatch' ,
11- link : '/api /endpoints/decode-vin-values-batch' ,
14+ link : '/guide/vpic /endpoints/decode-vin-values-batch' ,
1215 } ,
1316 {
1417 text : 'DecodeVinValuesExtended' ,
15- link : '/api/endpoints/decode-vin-values-extended' ,
18+ link : '/guide/vpic/endpoints/decode-vin-values-extended' ,
19+ } ,
20+ { text : 'DecodeWMI' , link : '/guide/vpic/endpoints/decode-wmi' } ,
21+ { text : 'GetAllMakes' , link : '/guide/vpic/endpoints/get-all-makes' } ,
22+ {
23+ text : 'GetAllManufacturers' ,
24+ link : '/guide/vpic/endpoints/get-all-manufacturers' ,
1625 } ,
17- { text : 'DecodeWMI' , link : '/api/endpoints/decode-wmi' } ,
18- { text : 'GetAllMakes' , link : '/api/endpoints/get-all-makes' } ,
19- { text : 'GetAllManufacturers' , link : '/api/endpoints/get-all-manufacturers' } ,
2026 {
2127 text : 'GetCanadianVehicleSpecifications' ,
22- link : '/api /endpoints/get-canadian-vehicle-specifications' ,
28+ link : '/guide/vpic /endpoints/get-canadian-vehicle-specifications' ,
2329 } ,
2430 {
2531 text : 'GetEquipmentPlantCodes' ,
26- link : '/api /endpoints/get-equipment-plant-codes' ,
32+ link : '/guide/vpic /endpoints/get-equipment-plant-codes' ,
2733 } ,
2834 {
2935 text : 'GetMakeForManufacturer' ,
30- link : '/api /endpoints/get-make-for-manufacturer' ,
36+ link : '/guide/vpic /endpoints/get-make-for-manufacturer' ,
3137 } ,
3238 {
3339 text : 'GetMakesForManufacturerAndYear' ,
34- link : '/api /endpoints/get-makes-for-manufacturer-and-year' ,
40+ link : '/guide/vpic /endpoints/get-makes-for-manufacturer-and-year' ,
3541 } ,
3642 {
3743 text : 'GetMakesForVehicleType' ,
38- link : '/api /endpoints/get-makes-for-vehicle-type' ,
44+ link : '/guide/vpic /endpoints/get-makes-for-vehicle-type' ,
3945 } ,
4046 {
4147 text : 'GetManufacturerDetails' ,
42- link : '/api/endpoints/get-manufacturer-details' ,
48+ link : '/guide/vpic/endpoints/get-manufacturer-details' ,
49+ } ,
50+ {
51+ text : 'GetModelsForMake' ,
52+ link : '/guide/vpic/endpoints/get-models-for-make' ,
53+ } ,
54+ {
55+ text : 'GetModelsForMakeId' ,
56+ link : '/guide/vpic/endpoints/get-models-for-make-id' ,
4357 } ,
44- { text : 'GetModelsForMake' , link : '/api/endpoints/get-models-for-make' } ,
45- { text : 'GetModelsForMakeId' , link : '/api/endpoints/get-models-for-make-id' } ,
4658 {
4759 text : 'GetModelsForMakeIdYear' ,
48- link : '/api /endpoints/get-models-for-make-id-year' ,
60+ link : '/guide/vpic /endpoints/get-models-for-make-id-year' ,
4961 } ,
5062 {
5163 text : 'GetModelsForMakeYear' ,
52- link : '/api /endpoints/get-models-for-make-year' ,
64+ link : '/guide/vpic /endpoints/get-models-for-make-year' ,
5365 } ,
54- { text : 'GetParts' , link : '/api /endpoints/get-parts' } ,
66+ { text : 'GetParts' , link : '/guide/vpic /endpoints/get-parts' } ,
5567 {
5668 text : 'GetVehicleTypesForMake' ,
57- link : '/api /endpoints/get-vehicle-types-for-make' ,
69+ link : '/guide/vpic /endpoints/get-vehicle-types-for-make' ,
5870 } ,
5971 {
6072 text : 'GetVehicleTypesForMakeId' ,
61- link : '/api /endpoints/get-vehicle-types-for-make-id' ,
73+ link : '/guide/vpic /endpoints/get-vehicle-types-for-make-id' ,
6274 } ,
6375 {
6476 text : 'GetVehicleVariableList' ,
65- link : '/api /endpoints/get-vehicle-variable-list' ,
77+ link : '/guide/vpic /endpoints/get-vehicle-variable-list' ,
6678 } ,
6779 {
6880 text : 'GetVehicleVariableValuesList' ,
69- link : '/api /endpoints/get-vehicle-variable-values-list' ,
81+ link : '/guide/vpic /endpoints/get-vehicle-variable-values-list' ,
7082 } ,
7183 {
7284 text : 'GetWMIsForManufacturer' ,
73- link : '/api /endpoints/get-wmis-for-manufacturer' ,
85+ link : '/guide/vpic /endpoints/get-wmis-for-manufacturer' ,
7486 } ,
7587]
7688
@@ -217,12 +229,12 @@ const typedocLinks = [
217229 ] ,
218230 } ,
219231 {
220- text : 'Types Index ' ,
232+ text : 'Types' ,
221233 link : '/typedoc/types' ,
222234 } ,
223235]
224236
225- export type LinkGroup = 'guide' | 'api' | ' typedocs'
237+ export type LinkGroup = 'guide' | 'typedocs'
226238
227239const groupLinks : Record < LinkGroup , SidebarItem [ ] > = {
228240 guide : [
@@ -231,12 +243,19 @@ const groupLinks: Record<LinkGroup, SidebarItem[]> = {
231243 { text : 'Getting Started' , link : '/guide/getting-started' } ,
232244 { text : 'Typescript' , link : '/guide/typescript' } ,
233245 {
234- text : 'Bring Your Own Fetch (BYOF)' ,
235- link : '/guide/bring-your-own-fetch' ,
236- } ,
237- {
238- text : 'Support for Node Versions < 18' ,
239- link : '/guide/native-fetch' ,
246+ text : 'VPIC' ,
247+ items : [
248+ { text : 'Overview' , link : '/guide/vpic/' } ,
249+ {
250+ text : 'VPIC Response' ,
251+ link : '/guide/vpic/vpic-api-response' ,
252+ } ,
253+ {
254+ text : 'VPIC Functions' ,
255+ items : vpicEndpointLinks ,
256+ collapsed : true ,
257+ } ,
258+ ] ,
240259 } ,
241260 {
242261 text : 'Examples' ,
@@ -256,17 +275,18 @@ const groupLinks: Record<LinkGroup, SidebarItem[]> = {
256275 { text : 'useNHTSA' , link : '/utils/use-nhtsa' } ,
257276 ] ,
258277 } ,
259- ] ,
260- api : [
261- { text : 'Overview' , link : '/api/' } ,
262278 {
263- text : 'VPIC Response' ,
264- link : '/api/vpic-api-response' ,
265- } ,
266- {
267- text : 'VPIC Functions' ,
268- items : vpicEndpointLinks ,
269- collapsed : false ,
279+ text : 'Misc' ,
280+ items : [
281+ {
282+ text : 'Bring Your Own Fetch (BYOF)' ,
283+ link : '/guide/bring-your-own-fetch' ,
284+ } ,
285+ {
286+ text : 'Support for Node Versions < 18' ,
287+ link : '/guide/native-fetch' ,
288+ } ,
289+ ] ,
270290 } ,
271291 ] ,
272292 typedocs : [ { text : 'Index' , link : '/typedoc/' } , ...typedocLinks ] ,
@@ -277,10 +297,6 @@ const linkGroups: Record<LinkGroup, SidebarItem> = {
277297 text : 'Guide' ,
278298 items : groupLinks . guide ,
279299 } ,
280- api : {
281- text : 'API' ,
282- items : groupLinks . api ,
283- } ,
284300 typedocs : {
285301 text : 'Typedocs' ,
286302 items : groupLinks . typedocs ,
0 commit comments