-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeme.config.ts
65 lines (57 loc) · 1.56 KB
/
theme.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
56
57
58
59
60
61
62
63
64
export enum ChapterColor {
ORANGE = 'orange',
BLUE = 'blue',
PURPLE = 'purple',
}
export type Network = {
/**
* Base URL of the network
*/
base: string,
/**
* Icon component. Either from Material Design Icons (Mdi) or custom SVG (iO).
* The format is Icon[Collection][Name]. E.g. IconMdiAccount or IconIoLogo
*/
icon?: string,
/**
* Prefix of the handle, if any. Think of the "@" for Twitter handles
*/
handlePrefix?: string,
};
declare const IconMdiGithubBox, IconMdiTwitterBox, IconMdiLinkedin, IconIoLogo;
/**
* Record of which social networks are available in the theme. These are mainly
* used by the SocialLink component
*/
export const networks: Record<string, Network> = {
github: {
base: 'https://github.com/',
icon: IconMdiGithubBox,
},
twitter: {
base: 'https://twitter.com/',
icon: IconMdiTwitterBox,
handlePrefix: '@',
},
linkedin: {
base: 'https://linkedin.com/in/',
icon: IconMdiLinkedin,
},
io: {
base: 'https://techhub.iodigital.com/authors/',
icon: IconIoLogo,
},
};
/**
* Layouts in which the footer should not be visible
*/
export const footerLayoutBlacklist = ['codepen', 'cover', 'intro', 'end'];
/**
* Chapters in a slide deck belong to a certain color. This map represents the
* color which belongs to the chapter
*/
export const chapterColors: Record<string, ChapterColor> = {
introduction: ChapterColor.ORANGE,
story: ChapterColor.BLUE,
conclusion: ChapterColor.PURPLE,
};