mirror of https://github.com/vuejs/vitepress
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
752 B
40 lines
752 B
// types shared between server and client
|
|
|
|
export interface LocaleConfig {
|
|
lang: string
|
|
title?: string
|
|
description?: string
|
|
head?: HeadConfig[]
|
|
label?: string
|
|
selectText?: string
|
|
}
|
|
|
|
export interface SiteData<ThemeConfig = any> {
|
|
base: string
|
|
lang: string
|
|
title: string
|
|
description: string
|
|
head: HeadConfig[]
|
|
themeConfig: ThemeConfig
|
|
locales: Record<string, LocaleConfig>
|
|
}
|
|
|
|
export type HeadConfig =
|
|
| [string, Record<string, string>]
|
|
| [string, Record<string, string>, string]
|
|
|
|
export interface PageData {
|
|
relativePath: string
|
|
title: string
|
|
description: string
|
|
headers: Header[]
|
|
frontmatter: Record<string, any>
|
|
lastUpdated: number
|
|
}
|
|
|
|
export interface Header {
|
|
level: number
|
|
title: string
|
|
slug: string
|
|
}
|