Skip to content

Commit

Permalink
docs: clean up unnecessary Rspress config (#4196)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Dec 14, 2024
1 parent 7a97e87 commit 809d68f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions website/rspress.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import path from 'node:path';
import { pluginClientRedirects } from '@rspress/plugin-client-redirects';
import { pluginRss } from '@rspress/plugin-rss';
import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';
Expand Down Expand Up @@ -72,9 +71,7 @@ export default defineConfig({
],
}),
],
root: path.join(__dirname, 'docs'),
lang: 'en',
base: '/',
title: 'Rsbuild',
icon: 'https://assets.rspack.dev/rsbuild/favicon-128x128.png',
logo: {
Expand Down Expand Up @@ -114,7 +111,6 @@ export default defineConfig({
{
lang: 'en',
label: 'English',
title: 'Rsbuild',
description: 'The Rspack-based build tool for the web',
editLink: {
docRepoBaseUrl:
Expand All @@ -125,11 +121,10 @@ export default defineConfig({
{
lang: 'zh',
label: '简体中文',
title: 'Rsbuild',
outlineTitle: '目录',
prevPageText: '上一页',
nextPageText: '下一页',
description: '基于 Rspack 的 Web 构建工具',
description: ' Rspack 驱动的构建工具',
editLink: {
docRepoBaseUrl:
'https://github.com/web-infra-dev/rsbuild/tree/main/website/docs',
Expand Down Expand Up @@ -158,15 +153,8 @@ export default defineConfig({
},
}),
],
source: {
alias: {
'@components': path.join(__dirname, '@components'),
'@en': path.join(__dirname, 'docs/en'),
'@zh': path.join(__dirname, 'docs/zh'),
},
},
server: {
open: 'http://localhost:<port>/',
open: true,
},
html: {
tags: [
Expand Down

0 comments on commit 809d68f

Please sign in to comment.