-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdocs-config-types.ts
More file actions
53 lines (47 loc) · 1.36 KB
/
docs-config-types.ts
File metadata and controls
53 lines (47 loc) · 1.36 KB
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
export type Announcement = {
// Markdown text for the banner. Only inline elements are supported
// (e.g. links, bold, italic). Block elements like headings are ignored.
text: string;
// Optional shorter Markdown text shown on mobile instead of `text`.
mobileText?: string;
// ISO 8601 date strings (e.g. "2026-03-24"). The banner is only shown
// when the current date falls within [startDate, endDate] (inclusive).
startDate?: string;
endDate?: string;
};
export type KapaConfig = {
websiteId: string;
projectName: string;
projectColor: string;
projectLogoPath: string;
};
export type DocsConfig = {
siteUrl: string;
announcement?: Announcement;
kapa?: KapaConfig;
localMarkdownSources: LocalMarkdownSource[];
githubMarkdownSources: GithubMarkdownSource[];
ltsVersions: LTSConfig;
downloads: DownloadConfig;
};
export type GithubMarkdownSource = {
owner: string;
repo: string;
// The directory in the repo where the docs are located.
repoDocsDir: string;
// The URL slug prefix to prepend for docs from this repo.
slugPrefix: string;
// The minimum number of versions to show for this repo.
minNumVersions: number;
};
export type LocalMarkdownSource = {
docsDir: string;
slugPrefix: string;
};
export type LTSConfig = {
[repo: string]: string[];
};
export type DownloadConfig = {
owner: string;
repos: string[];
};