Skip to content

Commit ec6d3a0

Browse files
author
User
committed
升级到 Docusaurus 3.6.3 并启用 Rspack 支持
1 parent 1717dc1 commit ec6d3a0

File tree

7 files changed

+24779
-3910
lines changed

7 files changed

+24779
-3910
lines changed

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/intro.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ slug: /
55
title: "《GTA4完整版》汉化导航"
66
---
77

8+
import Link from '@docusaurus/Link';
9+
import Tabs from '@theme/Tabs';
10+
import TabItem from '@theme/TabItem';
11+
812
> **最后更新日期:2024 年 9 月 23 日 16:17:21**
913
1014
## 📄 前言

docusaurus.config.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
// @ts-nocheck
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github')
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula')
6-
const oceanicNext = require('prism-react-renderer/themes/oceanicNext')
7-
const duotoneLight = require('prism-react-renderer/themes/duotoneLight')
4+
const { themes } = require('prism-react-renderer');
5+
const lightCodeTheme = themes.github;
6+
const darkCodeTheme = themes.dracula;
7+
const oceanicNext = themes.oceanicNext;
8+
const duotoneLight = themes.duotoneLight;
89

910
// 读取环境变量
1011
require('dotenv').config();
1112

1213
/** @type {import('@docusaurus/types').Config} */
1314
const config = {
1415
title: 'gta4汉化导航站',
16+
future: {
17+
experimental_faster: true, // 启用所有性能优化,包括 Rspack
18+
},
1519
scripts: [
1620
{ src: 'https://hm.baidu.com/hm.js?de86b38bbc3dec5ed31c4da285286374', async: true }
1721
],
@@ -133,6 +137,7 @@ const config = {
133137
darkTheme: oceanicNext,
134138
// theme: duotoneLight,
135139
// darkTheme: oceanicNext,
140+
additionalLanguages: ['bash', 'diff', 'json', 'jsx', 'tsx', 'css'],
136141
},
137142
tableOfContents: {
138143
minHeadingLevel: 2,

0 commit comments

Comments
 (0)