-
Notifications
You must be signed in to change notification settings - Fork 3
/
docusaurus.config-inner.js
84 lines (78 loc) · 1.78 KB
/
docusaurus.config-inner.js
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
import {themes as prismThemes} from 'prism-react-renderer';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
export default {
title: 'Gear Academy',
tagline: 'A place to learn about Gear and how to use it.',
url: 'https://academy.gear.rs',
baseUrl: '/inner/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
organizationName: 'gear-foundation',
projectName: 'academy',
presets: [
[
'@docusaurus/preset-classic',
({
docs: {
path: './docs',
routeBasePath: '/',
sidebarPath: './sidebars-inner.js',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
lastVersion: 'current',
versions: {
current: {
label: 'Current',
badge: false,
},
},
},
blog: false,
theme: {
customCss: './src/css/inner.css',
},
}),
],
],
themeConfig:
({
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['rust', 'toml'],
},
}),
i18n: {
defaultLocale: 'en',
locales: ['en', 'es', 'zh-cn'],
localeConfigs: {
'en': {
label: 'English',
},
'es': {
label: 'Español'
},
'zh-cn': {
label: '简体中文'
}
}
},
scripts: [
{
src:
'/js/iframeResizer.contentWindow.min.js',
async: false,
},
],
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css',
type: 'text/css',
integrity:
'sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM',
crossorigin: 'anonymous',
},
],
};