Skip to content

Commit 3824e47

Browse files
committed
chore: swap webpack for rspack
1 parent e1c60c1 commit 3824e47

File tree

3 files changed

+616
-107
lines changed

3 files changed

+616
-107
lines changed

website/docusaurus.config.js

Lines changed: 55 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ module.exports = {
1111
organizationName: "weaveworks", // Usually your GitHub org/user name.
1212
projectName: "weave-gitops", // Usually your repo name.
1313
trailingSlash: true,
14+
future: {
15+
experimental_faster: true,
16+
},
1417
plugins: [
1518
() => ({
1619
// Load yaml files as blobs
@@ -34,11 +37,11 @@ module.exports = {
3437
},
3538
}),
3639
[
37-
'@docusaurus/plugin-client-redirects',
40+
'@docusaurus/plugin-client-redirects',
3841
{
3942
fromExtensions: ['html', 'htm'], // /myPage.html -> /myPage
4043
redirects: [
41-
{
44+
{
4245
to: '/docs/intro-weave-gitops/',
4346
from: ['/docs/getting-started'],
4447
},
@@ -132,38 +135,38 @@ module.exports = {
132135
],
133136
},
134137
{
135-
title: "Community",
136-
items: [
137-
{
138-
label: "GitHub",
139-
href: "https://github.com/weaveworks/weave-gitops",
140-
},
141-
],
138+
title: "Community",
139+
items: [
140+
{
141+
label: "GitHub",
142+
href: "https://github.com/weaveworks/weave-gitops",
143+
},
144+
],
142145
},
143146
{
144-
title: 'Follow us',
145-
items: [
146-
{
147-
label: 'Facebook',
148-
href: 'https://www.facebook.com/WeaveworksInc/',
149-
},
150-
{
151-
label: 'LinkedIn',
152-
href: 'https://www.linkedin.com/company/weaveworks',
153-
},
154-
{
155-
label: 'Twitter',
156-
href: 'https://twitter.com/weaveworks',
157-
},
158-
{
159-
label: 'Slack',
160-
href: 'https://slack.weave.works/',
161-
},
162-
{
163-
label: 'Youtube',
164-
href: 'https://www.youtube.com/c/WeaveWorksInc',
165-
},
166-
],
147+
title: 'Follow us',
148+
items: [
149+
{
150+
label: 'Facebook',
151+
href: 'https://www.facebook.com/WeaveworksInc/',
152+
},
153+
{
154+
label: 'LinkedIn',
155+
href: 'https://www.linkedin.com/company/weaveworks',
156+
},
157+
{
158+
label: 'Twitter',
159+
href: 'https://twitter.com/weaveworks',
160+
},
161+
{
162+
label: 'Slack',
163+
href: 'https://slack.weave.works/',
164+
},
165+
{
166+
label: 'Youtube',
167+
href: 'https://www.youtube.com/c/WeaveWorksInc',
168+
},
169+
],
167170
},
168171
],
169172
logo: {
@@ -175,18 +178,18 @@ module.exports = {
175178
},
176179
copyright: `Copyright © ${new Date().getFullYear()} Weaveworks`,
177180
},
178-
// algolia: {
179-
// appId: "Z1KEXCDHZE",
180-
// apiKey: process.env.ALGOLIA_API_KEY,
181-
// indexName: "weave",
182-
// // Needed to handle the different versions of docs
183-
// contextualSearch: true,
184-
//
185-
// // Optional: Algolia search parameters
186-
// // searchParameters: {
187-
// // facetFilters: ['type:content']
188-
// // },
189-
// },
181+
// algolia: {
182+
// appId: "Z1KEXCDHZE",
183+
// apiKey: process.env.ALGOLIA_API_KEY,
184+
// indexName: "weave",
185+
// // Needed to handle the different versions of docs
186+
// contextualSearch: true,
187+
//
188+
// // Optional: Algolia search parameters
189+
// // searchParameters: {
190+
// // facetFilters: ['type:content']
191+
// // },
192+
// },
190193
},
191194
scripts: [
192195
{
@@ -226,14 +229,14 @@ module.exports = {
226229
// anonymizeIP: true, // Should IPs be anonymized?
227230
// },
228231
sitemap: {
229-
changefreq: 'weekly',
230-
priority: 0.5,
231-
ignorePatterns: [
232-
'/docs/next/**',
233-
'/docs/archives/**',
234-
'/docs/*[0-9].*[0-9].*[0-9]/**'
235-
],
236-
filename: 'sitemap.xml',
232+
changefreq: 'weekly',
233+
priority: 0.5,
234+
ignorePatterns: [
235+
'/docs/next/**',
236+
'/docs/archives/**',
237+
'/docs/*[0-9].*[0-9].*[0-9]/**'
238+
],
239+
filename: 'sitemap.xml',
237240
},
238241
},
239242
],

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@docusaurus/core": "^3.6.3",
18+
"@docusaurus/faster": "^3.6.3",
1819
"@docusaurus/plugin-client-redirects": "^3.6.3",
1920
"@docusaurus/plugin-google-analytics": "^3.6.3",
2021
"@docusaurus/plugin-google-gtag": "^3.6.3",
@@ -31,8 +32,7 @@
3132
"react-dom": "^18.0.0",
3233
"react-player": "^2.11.0",
3334
"trim": "^1.0.1",
34-
"url-loader": "^4.1.1",
35-
"webpack": "^5.94.0"
35+
"url-loader": "^4.1.1"
3636
},
3737
"browserslist": {
3838
"production": [

0 commit comments

Comments
 (0)