-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
195 lines (184 loc) · 5.3 KB
/
docusaurus.config.ts
File metadata and controls
195 lines (184 loc) · 5.3 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
import {themes as prismThemes} from 'prism-react-renderer';
import type {Config} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
const config: Config = {
title: 'Loka Docs',
tagline: 'Empowering educators, engaging learners, and accelerating learning.',
favicon: 'img/favicon.ico',
future: {
v4: true,
},
url: 'https://docs.lokalingo.com',
baseUrl: '/',
organizationName: 'RynoRocks',
projectName: 'loka-docs',
onBrokenLinks: 'throw',
i18n: {
defaultLocale: 'en',
locales: ['en', 'ja', 'ko'],
localeConfigs: {
en: { label: 'English', htmlLang: 'en-AU' },
ja: { label: '日本語', htmlLang: 'ja' },
ko: { label: '한국어', htmlLang: 'ko' },
},
},
headTags: [
{
tagName: 'link',
attributes: { rel: 'preconnect', href: 'https://fonts.googleapis.com' },
},
{
tagName: 'link',
attributes: { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: 'anonymous' },
},
{
tagName: 'script',
attributes: { type: 'application/ld+json' },
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'Organization',
name: 'LokaLingo 株式会社',
legalName: 'Accent Language 株式会社',
url: 'https://lokalingo.com',
logo: {
'@type': 'ImageObject',
url: 'https://docs.lokalingo.com/img/logo.png',
},
description: 'A language education company based in Tokyo, Japan. Builders of Loka, a learning management system for language educators.',
address: {
'@type': 'PostalAddress',
addressCountry: 'JP',
addressLocality: 'Tokyo',
},
sameAs: [
'https://lokalingo.com',
'https://thelivingtextbook.lokalingo.com',
'https://docs.lokalingo.com',
],
}),
},
{
tagName: 'script',
attributes: { type: 'application/ld+json' },
innerHTML: JSON.stringify({
'@context': 'https://schema.org',
'@type': 'WebSite',
name: 'Loka Docs',
url: 'https://docs.lokalingo.com',
description: 'Official documentation for Loka, a learning management system for language educators.',
publisher: {
'@type': 'Organization',
name: 'LokaLingo 株式会社',
},
inLanguage: ['en-AU', 'ja', 'ko'],
}),
},
],
themes: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
hashed: true,
language: ['en', 'ja', 'ko'],
docsRouteBasePath: '/',
indexBlog: false,
searchBarShortcutHint: true,
},
],
],
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/RynoRocks/loka-docs/tree/main/',
routeBasePath: '/',
},
blog: false,
sitemap: {
ignorePatterns: ['/search', '/ja/search', '/ko/search'],
},
theme: {
customCss: './src/css/custom.css',
},
} satisfies Preset.Options,
],
],
themeConfig: {
image: 'img/logo.png',
metadata: [
{ property: 'og:type', content: 'website' },
],
colorMode: {
defaultMode: 'light',
respectPrefersColorScheme: true,
},
navbar: {
title: 'Loka Docs',
logo: {
alt: 'Loka',
src: 'img/logo.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docsSidebar',
position: 'left',
label: 'Documentation',
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://thelivingtextbook.lokalingo.com/start-free',
label: 'Start Free Trial',
position: 'right',
className: 'navbar-cta',
},
{
href: 'https://thelivingtextbook.lokalingo.com/login',
label: 'Log In',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{ label: 'Getting Started', to: '/' },
{ label: 'For Educators', to: '/educators/dashboard' },
{ label: 'For Learners', to: '/learners/booking' },
{ label: 'For Loka Creators', to: '/creators/overview' },
],
},
{
title: 'Product',
items: [
{ label: 'Loka Website', href: 'https://lokalingo.com' },
{ label: 'The Living Textbook', href: 'https://thelivingtextbook.lokalingo.com' },
{ label: 'Start Free Trial', href: 'https://thelivingtextbook.lokalingo.com/start-free' },
],
},
{
title: 'Company',
items: [
{ label: 'About', href: 'https://lokalingo.com/en/story' },
{ label: 'Contact', href: 'https://lokalingo.com/en/contact' },
{ label: 'Privacy Policy', href: 'https://lokalingo.com/en/privacy' },
],
},
],
copyright: `© ${new Date().getFullYear()} LokaLingo 株式会社 6011001118444 / ORBWEVA ABN 62159782318`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,
};
export default config;