-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathconfig.ts
More file actions
137 lines (130 loc) · 5.31 KB
/
config.ts
File metadata and controls
137 lines (130 loc) · 5.31 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
export const SITE = {
title: "CourseLit Docs",
description: "Sell courses, digital downloads on your own website",
defaultLanguage: "en_US",
};
export const OPEN_GRAPH = {
image: {
src: "/favicon.svg",
alt: "CourseLit open source learning management system logo",
},
twitter: "courselit",
};
// This is the type of the frontmatter you put in the docs markdown files.
export type Frontmatter = {
title: string;
description: string;
layout: string;
image?: { src: string; alt: string };
dir?: "ltr" | "rtl";
ogLocale?: string;
lang?: string;
};
export const KNOWN_LANGUAGES = {
English: "en",
} as const;
export const KNOWN_LANGUAGE_CODES = Object.values(KNOWN_LANGUAGES);
export const GITHUB_EDIT_URL = `https://github.com/codelitdev/courselit/tree/main/apps/docs`;
export const COMMUNITY_INVITE_URL = `https://discord.com/invite/GR4bQsN`;
// See "Algolia" section of the README for more information.
export const ALGOLIA = {
indexName: "XXXXXXXXXX",
appId: "XXXXXXXXXX",
apiKey: "XXXXXXXXXX",
};
export type Sidebar = Record<
(typeof KNOWN_LANGUAGE_CODES)[number],
Record<string, { text: string; link: string }[]>
>;
export const SIDEBAR: Sidebar = {
en: {
"Getting started": [
{ text: "What is CourseLit", link: "en/introduction" },
{ text: "Our vision", link: "en/vision" },
{ text: "Features", link: "en/features" },
],
"Online courses": [
{ text: "Introduction", link: "en/courses/introduction" },
{ text: "Create a course", link: "en/courses/create" },
{ text: "Publish", link: "en/courses/publish" },
{ text: "Set a price", link: "en/courses/set-a-price-for-product" },
{ text: "Control visibility", link: "en/courses/visibility" },
{ text: "Add content", link: "en/courses/add-content" },
{ text: "Manage sections", link: "en/products/section" },
{ text: "Invite customers", link: "en/products/invite-customers" },
{ text: "Certificates", link: "en/products/certificates" },
],
"Digital downloads": [
{ text: "Introduction", link: "en/downloads/introduction" },
{ text: "Create a download", link: "en/downloads/create" },
{ text: "Set a price", link: "en/downloads/set-a-price" },
{ text: "Lead magnet", link: "en/downloads/lead-magnet" },
],
Communities: [
{ text: "Introduction", link: "en/communities/introduction" },
{ text: "Create a community", link: "en/communities/create" },
{ text: "Manage members", link: "en/communities/manage-members" },
{
text: "Manage reported content",
link: "en/communities/manage-reported-content",
},
{
text: "Unlock additional products",
link: "en/communities/grant-access-to-additional-products",
},
{ text: "Delete a community", link: "en/communities/delete" },
],
"Email marketing and automation": [
{ text: "Introduction", link: "en/email-marketing/introduction" },
{
text: "Requesting access to email marketing",
link: "en/email-marketing/mail-access-request",
},
{
text: "Broadcasts",
link: "en/email-marketing/broadcasts",
},
{
text: "Sequences (Campaigns)",
link: "en/email-marketing/sequences",
},
{
text: "Analytics",
link: "en/email-marketing/analytics",
},
],
Website: [
{ text: "Introduction", link: "en/website/introduction" },
{ text: "Page blocks", link: "en/website/blocks" },
{ text: "Edit page", link: "en/website/edit" },
{ text: "Themes", link: "en/website/themes" },
],
Blog: [
{ text: "Introduction", link: "en/blog/introduction" },
{ text: "Publish a blog", link: "en/blog/publish" },
],
School: [
{ text: "Introduction", link: "en/schools/introduction" },
{ text: "Create a school", link: "en/schools/create" },
{ text: "Use custom domain", link: "en/schools/add-custom-domain" },
{ text: "Set up payments", link: "en/schools/set-up-payments" },
{ text: "Delete a school", link: "en/schools/delete" },
],
Users: [
{ text: "Introduction", link: "en/users/introduction" },
{ text: "Manage users", link: "en/users/manage" },
{ text: "User permissions", link: "en/users/permissions" },
{ text: "Filter users", link: "en/users/filters" },
{ text: "Segment users", link: "en/users/segments" },
{ text: "Delete a user", link: "en/users/delete" },
],
Developers: [
{ text: "Introduction", link: "en/developers/introduction" },
{ text: "Managing users", link: "en/developers/manage-users" },
],
"Self hosting": [
{ text: "Why self host?", link: "en/self-hosting/introduction" },
{ text: "Self hosting guide", link: "en/self-hosting/self-host" },
],
},
};