-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocusaurus.config.js
169 lines (167 loc) · 4.09 KB
/
docusaurus.config.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
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
import {themes as prismThemes} from 'prism-react-renderer'
import redirects from './redirects.json'
import remarkMath from 'remark-math'
import rehypeKatex from 'rehype-katex'
/** @type {import('@docusaurus/types').Config} */
export default {
title: 'Gear Documentation Portal',
tagline: 'The place to start developing with Gear',
url: 'https://wiki.gear-tech.io/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: '/img/favicon-32x32.png',
organizationName: 'Gear Technologies',
projectName: 'docs',
themeConfig: {
announcementBar: {
id: 'Varathon',
content:
'Ready to build on the edge of Web3? Join Vara online hackathon - <a target="_blank" href="https://varathon.io/?utm_source=wiki&utm_medium=banner&utm_campaign=banner"> Gear up</a>',
isCloseable: false,
},
colorMode: {
defaultMode: 'dark',
},
image: 'img/ogimage.jpg',
navbar: {
title: 'Gear Wiki',
logo: {
alt: 'Gear documentation portal',
src: 'img/logo-black.svg',
srcDark: 'img/logo-white.svg',
},
items: [
{
to: 'docs/',
activeBasePath: 'docs',
position: 'left',
label: 'Docs',
},
{
href: 'https://www.vara.network/',
label: 'Vara Network',
position: 'right',
},
{
href: 'https://www.gear-tech.io/',
label: 'Gear-tech.io',
position: 'right',
},
{
href: 'https://github.com/gear-foundation/gear-wiki',
label: 'Contribute',
position: 'right',
},
/*{
type: 'docsVersionDropdown',
position: 'right',
},
{
type: 'localeDropdown',
position: 'right',
},*/
],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ['rust', 'toml'],
},
algolia: {
appId: 'OI5YH8L74V',
apiKey: '70e750fb6f98f28f089ca6f0c7cd86a6',
indexName: 'gear-tech',
contextualSearch: true,
searchParameters: {},
searchPagePath: 'search',
},
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
},
plugins: [
'docusaurus-plugin-sass',
[
'@docusaurus/plugin-client-redirects',
{
redirects: redirects,
},
],
],
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: './sidebars.js',
editUrl:
'https://github.com/gear-foundation/gear-wiki/edit/master/',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
lastVersion: 'current',
versions: {
current: {
label: 'Stable',
badge: false,
},
next: {
path: 'next',
label: 'Unstable 🚧',
banner: 'unreleased',
badge: true,
},
},
},
blog: false,
theme: {
customCss: './src/css/custom.scss',
},
googleAnalytics: {
trackingID: 'UA-213824102-2',
anonymizeIP: true,
},
googleTagManager: {
containerId: 'GTM-54QDWGN',
},
},
],
],
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-cn'],
localeConfigs: {
'en': {
label: 'English',
},
'zh-cn': {
label: '简体中文',
},
},
},
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',
},
],
scripts: [
{
src: 'https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.11/iframeResizer.contentWindow.min.js',
defer: true,
},
{
src: '/js/with-iframe-resizer.js',
defer: true,
},
// {
// src: 'https://cdn.jsdelivr.net/npm/@iframe-resizer/child',
// defer: true,
// },
],
}