| | |
| | |
| | |
| |
|
| | |
| | |
| | |
| | export interface Context { |
| | currentProduct?: string |
| | currentLanguage?: string |
| | currentVersion?: string |
| | pages?: any |
| | redirects?: any |
| | |
| | [key: string]: any |
| | } |
| |
|
| | |
| | |
| | |
| | export interface LinkOptions { |
| | title?: boolean |
| | intro?: boolean |
| | fullTitle?: boolean |
| | } |
| |
|
| | |
| | |
| | |
| | export interface ProcessedLink { |
| | href: string |
| | page: Page |
| | title?: string |
| | fullTitle?: string |
| | intro?: string |
| | } |
| |
|
| | |
| | |
| | |
| | export interface FeaturedLink { |
| | title: string |
| | href: string |
| | } |
| |
|
| | export interface PageFeaturedLinks { |
| | [key: string]: string[] | FeaturedLink[] |
| | } |
| |
|
| | |
| | |
| | |
| | export interface Page { |
| | renderTitle: (context: Context, opts: any) => Promise<string> |
| | renderProp: (prop: string, context: Context, opts: any) => Promise<string> |
| | } |
| |
|
| | |
| | |
| | |
| | export interface TrackGuide { |
| | href: string |
| | page: Page |
| | title: string |
| | intro?: string |
| | } |
| |
|
| | |
| | |
| | |
| | export interface LearningTrack { |
| | trackName: string |
| | trackProduct: string | null |
| | title: string |
| | description: string |
| | guides: TrackGuide[] |
| | } |
| |
|
| | |
| | |
| | |
| | export interface LearningTrackMetadata { |
| | title: string |
| | description: string |
| | guides: string[] |
| | versions?: any |
| | } |
| |
|
| | |
| | |
| | |
| | export interface LearningTracks { |
| | [productId: string]: { |
| | [trackName: string]: LearningTrackMetadata |
| | } |
| | } |
| |
|
| | |
| | |
| | |
| | export interface ProcessedLearningTracks { |
| | learningTracks: LearningTrack[] |
| | } |
| |
|
| | |
| | |
| | |
| | export interface CurrentLearningTrack { |
| | trackName: string |
| | trackProduct: string |
| | trackTitle: string |
| | numberOfGuides?: number |
| | currentGuideIndex?: number |
| | nextGuide?: { |
| | href: string |
| | title: string | undefined |
| | } |
| | prevGuide?: { |
| | href: string |
| | title: string | undefined |
| | } |
| | } |
| |
|