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.
32 lines
744 B
32 lines
744 B
/// <reference types="vitepress/client" />
|
|
|
|
import { DefaultTheme } from 'vitepress'
|
|
|
|
declare module 'vitepress' {
|
|
export namespace DefaultTheme {
|
|
export interface Config {
|
|
/**
|
|
* 访客统计配置
|
|
*/
|
|
visitor?: {
|
|
/** 统计 id(单独页面的统计会作为前缀使用)*/
|
|
badgeId: string
|
|
}
|
|
|
|
/**
|
|
* giscus 评论配置
|
|
* 请根据 https://giscus.app/zh-CN 生成内容填写
|
|
*/
|
|
comment?: {
|
|
/** github 仓库地址 */
|
|
repo: `${string}/${string}`
|
|
/** giscus 仓库 ID */
|
|
repoId: string
|
|
/** Discussion 分类 */
|
|
category: string
|
|
/** giscus 分类 ID */
|
|
categoryId: string
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|