-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocusaurus.config.js
212 lines (210 loc) · 5.99 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
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const { themes } = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.palenight;
module.exports = {
title: 'Hypermod Community',
tagline: 'Codemods for everyone ✨',
url: 'https://hypermod-io.github.io/',
baseUrl: '/hypermod-community/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'hypermod-io',
projectName: 'hypermod-community',
trailingSlash: false,
themeConfig: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
image: 'img/TwitterBanner.png',
metadata: [
{
name: 'twitter:card',
content:
'Discover the power of codemods for your development workflow. Our tools and resources allow you to easily manage dependencies, automate refactoring, and transform your codebase. With support for code migration and evolution, you can modernize your code and keep it up-to-date with the latest best practices. Try our tools today and improve your development process.',
},
{
name: 'og:description',
content:
'Discover the power of codemods for your development workflow. Our tools and resources allow you to easily manage dependencies, automate refactoring, and transform your codebase. With support for code migration and evolution, you can modernize your code and keep it up-to-date with the latest best practices. Try our tools today and improve your development process.',
},
{
name: 'keywords',
content:
'codemods, code migration, code evolution, dependency management, automated refactoring, code transformation, development tools, code modernization, source code modification',
},
],
prism: {
theme: lightTheme,
darkTheme: darkTheme,
},
navbar: {
title: 'Hypermod Community',
logo: {
alt: 'Hypermod Logo',
src: 'img/logo.svg',
srcDark: 'img/logo_dark.svg',
},
items: [
{
type: 'doc',
docId: 'introduction',
label: 'Docs',
position: 'left',
},
{
type: 'doc',
docId: 'api/cli',
label: 'API',
position: 'left',
},
{
type: 'doc',
docId: 'registry',
label: 'Registry',
position: 'left',
},
{
href: 'https://github.com/hypermod-io/hypermod-community',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
links: [
{
title: 'Docs',
items: [
{
label: 'Getting Started',
to: 'docs/',
},
{
label: 'Your first codemod',
to: 'docs/your-first-codemod',
},
{
label: 'Authoring',
to: 'docs/authoring',
},
{
label: 'Consuming',
to: 'docs/consuming',
},
{
label: 'Testing',
to: 'docs/testing',
},
{
label: 'Publishing & contribution',
to: 'docs/contribution',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://discord.gg/XGqmKNZ8Rk',
},
{
label: 'Discussions',
href: 'https://github.com/hypermod-io/hypermod-community/discussions',
},
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/hypermod',
},
{
label: 'Twitter',
href: 'https://twitter.com/hypermodio',
},
],
},
{
title: 'More',
items: [
{
label: 'Hypermod GPT',
href: 'https://chat.openai.com/g/g-RK2euIGZ5-hypermod-gpt',
},
{
label: 'GitHub',
href: 'https://github.com/hypermod-io/hypermod-community',
},
{
label: 'Roadmap',
href: 'https://github.com/hypermod-io/hypermod-community/projects/1',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Hypermod.io`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/hypermod-io/hypermod-community/edit/main/website/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
gtag: {
trackingID: 'G-X9RMY7JDM0',
anonymizeIP: true,
},
},
],
],
scripts: [
{
src: 'https://cdn.splitbee.io/sb.js',
async: true,
},
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
from: ['/'],
to: 'https://www.hypermod.io/',
},
{
from: ['/docs'],
to: 'https://www.hypermod.io/docs',
},
{
from: ['/docs/your-first-codemod'],
to: 'https://www.hypermod.io/docs/guides/your-first-codemod',
},
{
from: ['/docs/understanding-asts'],
to: 'https://www.hypermod.io/docs/guides/understanding-asts',
},
{
from: ['/docs/import-manipulation'],
to: 'https://www.hypermod.io/docs/guides/import-manipulation',
},
{
from: ['/docs/react'],
to: 'https://www.hypermod.io/docs/guides/react-jsx',
},
{
from: ['/docs/typescript'],
to: 'https://www.hypermod.io/docs/guides/typescript',
},
],
},
],
],
};