File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,9 @@ type Props = z.input<typeof props>;
77
88type DocsData = keyof CollectionEntry <" docs" >[" data" ];
99type VideosData = keyof CollectionEntry <" stream" >[" data" ];
10+ type LearningPathsData = keyof CollectionEntry <" learning-paths" >[" data" ];
1011
11- type ResourcesData = DocsData | VideosData ;
12+ type ResourcesData = DocsData | VideosData | LearningPathsData ;
1213
1314const props = z .object ({
1415 tags: z .string ().array ().optional (),
Original file line number Diff line number Diff line change @@ -11,11 +11,16 @@ import { setSearchParams } from "~/util/url";
1111
1212type DocsData = keyof CollectionEntry < "docs" > [ "data" ] ;
1313type VideosData = keyof CollectionEntry < "stream" > [ "data" ] ;
14+ type LearningPathsData = keyof CollectionEntry < "learning-paths" > [ "data" ] ;
1415
15- type ResourcesData = DocsData | VideosData ;
16+ type ResourcesData = DocsData | VideosData | LearningPathsData ;
1617
1718interface Props {
18- resources : Array < CollectionEntry < "docs" > | CollectionEntry < "stream" > > ;
19+ resources : Array <
20+ | CollectionEntry < "docs" >
21+ | CollectionEntry < "stream" >
22+ | CollectionEntry < "learning-paths" >
23+ > ;
1924 facets : Record < string , string [ ] > ;
2025 filters ?: ResourcesData [ ] ;
2126 columns : number ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const props = {
2626 " design-guide" ,
2727 " learning-path" ,
2828 ]}
29- filterables ={ [" pcx_content_type" , " tags " ]}
29+ filterables ={ [" pcx_content_type" , " products " ]}
3030 filterPlacement =" left"
3131 columns ={ 1 }
3232 />
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ const props = {
1515---
1616
1717<StarlightPage {... props }>
18- <ResourcesBySelector types ={ [" stream " ]} columns ={ 3 } />
18+ <ResourcesBySelector types ={ [" video " ]} columns ={ 3 } />
1919</StarlightPage >
You can’t perform that action at this time.
0 commit comments