-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
181 lines (169 loc) · 6.05 KB
/
docusaurus.config.js
File metadata and controls
181 lines (169 loc) · 6.05 KB
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
// @ts-nocheck
// Note: type annotations allow type checking and IDEs autocompletion
const {themes} = require('prism-react-renderer');
const lightCodeTheme = themes.github;
const darkCodeTheme = themes.dracula;
const oceanicNext = themes.oceanicNext;
const duotoneLight = themes.duotoneLight;
// 读取环境变量
require('dotenv').config();
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'gta4汉化导航站',
scripts: [
{ src: 'https://hm.baidu.com/hm.js?de86b38bbc3dec5ed31c4da285286374', async: true },
// Google AdSense 标准广告脚本
{
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9617969692940509',
async: true,
crossorigin: 'anonymous'
}
],
// 将环境变量注入到客户端代码中
customFields: {
downloadLinks: {
// 原版下载链接
downloadZipUrl: process.env.DOWNLOAD_ZIP_URL || 'https://cloudflare-imgbed-4n1.pages.dev/file/1727105849241_GTA4汉化补丁2023-07-04.zip',
downloadExeUrl: process.env.DOWNLOAD_EXE_URL || 'https://cloudflare-imgbed-4n1.pages.dev/file/1727106008861_GTA4汉化补丁2023-07-04.exe',
// 整合包下载链接
downloadIntegratedZipUrl: process.env.DOWNLOAD_INTEGRATED_ZIP_URL || 'https://dlink.host/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvYy9mNWVkZjQyZWJmODA2MWNlL0VmbmRSVWQ1aHhSQWp4WjQxdjYwRDAwQmtmbTZSdnVpZ3Rfb3k1RGo1T00wZHc_ZT15OXA2Rlo.zip',
downloadIntegratedExeUrl: process.env.DOWNLOAD_INTEGRATED_EXE_URL || 'https://acbox.app/f/22zmI8/GTA4%E6%B1%89%E5%8C%96%E8%A1%A5%E4%B8%812024-09-13.exe',
// 备用下载链接
backupYejiUrl: process.env.BACKUP_YEJIYUN_URL || 'https://pan.huang1111.cn/s/9Q2n5Cd?path=%2F',
backupBaiduUrl: process.env.BACKUP_BAIDU_URL || 'https://pan.baidu.com/share/init?surl=lYiAaFVzQGpJD79Fx56ZZw&pwd=1234',
backupLanzouUrl: process.env.BACKUP_LANZOU_URL || 'https://wwnr.lanzouv.com/b07xe74sj',
backupYongshuoUrl: process.env.BACKUP_YONGSHUO_URL || 'http://bigsb250.ysepan.com',
// 新的备用链接 - 野鸡云
backupAcboxUrl: process.env.BACKUP_ACBOX_URL || 'https://acbox.app/s/0QXQIb',
}
},
tagline: 'gta4汉化导航网站,欢迎访问~',
url: 'https://b9348.pages.dev',
baseUrl: '/',
onBrokenLinks: 'log',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'b9348', // Usually your GitHub org/user name.
projectName: "b9348", // Usually your repo name.
i18n: {
defaultLocale: 'zh-CN',
locales: ['zh-CN'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
gtag: {
trackingID: 'G-K06FBEHD1R',
anonymizeIP: true,
},
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://gitee.com/b9348/b9348/tree/reactpress/',
// docLayoutComponent: './src/theme/DocItem/Layout/index.js'
},
blog: {
showReadingTime: false,
// Please change this to your repo.
editUrl: 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
pages: {
path: 'src/pages',
routeBasePath: '/home',
// ... configuration object here
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: '《GTA4完整版》汉化导航',
// logo: {
// alt: 'My Site Logo',
// src: 'img/favicon.ico',
// },
items: [
{
type: 'doc',
docId: 'intro',
position: 'right',
label: '📗Wiki',
},
// { to: '/4', label: '☕捐助', position: 'right' },
],
},
footer: {
style: 'dark',
links: [
// {
// title: 'Docs',
// items: [
// {
// label: 'Wiki',
// to: '/',
// },
// ],
// },
{
title: '开源地址',
items: [
{
label: 'GitHub - GTAIV-Complete-Edition-text',
href: 'https://github.com/GTAIV-Complete-Edition-text',
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} _____ 汉化组`,
},
prism: {
theme: lightCodeTheme,
darkTheme: oceanicNext,
// theme: duotoneLight,
// darkTheme: oceanicNext,
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 5,
},
announcementBar: {
id: 'support_us',
content:
'觉得不错, 就给一个 ⭐️ Start 吧<a target="_blank" rel="noopener noreferrer" href="https://github.com/GTAIV-Complete-Edition-text/feedback-IV.CHS">Click here</a> ',
backgroundColor: '#fafbfc',
textColor: '#091E42',
isCloseable: false,
},
metadata: [
{
name: 'Description',
content: 'GTA4汉化导航站,提供一些关于《GTA4完整版》新汉化补丁的相关信息,本站致力于让每个用户在阅读完后都学会使用GTA4新汉化',
},
{
name: 'Keywords',
content: 'GTA4,gta4,gta4完整版,gta4新汉化,汉化导航,汉化导航站,gta4汉化导航站,gta4汉化导航,gta4完整版汉化,正版gta4汉化,gta4最新版汉化,gta4中文补丁,gta4中文导航,gta4最新中文,gta4中文导航站',
},
{
name: 'google-site-verification',
content: 'aKKnTwH1WGypsT4DbyVqKTY4Qt2Fi0NiOTikk8Us8w4'
},
{
name: 'msvalidate.01',
content: 'E95E84F34FA795B9B766086AFA806E13'
},
{
name: 'baidu-site-verification',
content: 'codeva-jM9srC2OdY'
}
],
}),
}
module.exports = config