-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.ts
55 lines (49 loc) · 1.35 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import type { FeaturesProps, FooterProps, HeroProps, LogoProps } from '@lobehub/ui';
import { FooterColumn } from 'rc-footer/es/column';
import type { SiteCustomToken } from '@/styles/customToken';
import type { HeroConfig } from './hero';
export interface ApiHeaderConfig {
docUrl?: string | false;
match?: string[];
pkg?: string;
sourceUrl?: string | false;
type?: 'component' | 'doc';
}
export interface FooterConfig {
bottom?: FooterProps['bottom'];
columns?: FooterProps['columns'];
moreProducts?: FooterColumn;
resources?: FooterColumn;
}
export interface SiteThemeConfig {
actions: HeroProps['actions'];
apiHeader?: ApiHeaderConfig | false;
description?: string;
docStyle?: 'block' | 'pure';
features: FeaturesProps['items'];
footer?: string | false;
footerConfig?: FooterConfig;
giscus?: {
category: string;
categoryId: string;
repo: `${string}/${string}`;
repoId: string;
};
hero?: HeroConfig | Record<string, HeroConfig>;
hideHomeNav?: boolean;
logo?: string;
logoType?: LogoProps['type'];
name?: string;
siteToken?: SiteConfigToken;
socialLinks?: {
discord?: `https://discord.gg/${string}`;
github?: string;
};
title?: string;
}
export type SiteConfigToken = Partial<
Pick<
SiteCustomToken,
'headerHeight' | 'footerHeight' | 'sidebarWidth' | 'tocWidth' | 'contentMaxWidth'
>
>;