-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocusaurus.config.mjs
213 lines (211 loc) · 7.1 KB
/
docusaurus.config.mjs
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
213
import { createRequire } from "module"
const require = createRequire(import.meta.url)
/** @type {import("@docusaurus/types").DocusaurusConfig} */
export default {
title: "The Peacock Project",
tagline:
"A replacement for the HITMAN™ World of Assassination (1, 2, and 3)'s servers that runs on your machine.",
url: "https://thepeacockproject.org",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "/favicon.ico",
organizationName: "thepeacockproject",
projectName: "peacockprojectorg",
baseUrlIssueBanner: false,
i18n: {
defaultLocale: "en",
locales: ["en", "nl", "pt-BR", "zh"],
localeConfigs: {
en: {
htmlLang: "en-US"
},
nl: {
htmlLang: "nl-NL"
},
"pt-BR": {
htmlLang: "pt-BR"
},
zh: {
htmlLang: "zh-CN"
}
}
},
themeConfig: {
metadata: [
{
name: "keywords",
content: "peacock,project,hitman,server,replacement,offline"
}
],
announcementBar: {
content: "<b>Check out our new <a href=\"https://www.youtube.com/watch?v=nF5ngiuDe5M\">official video tutorial on YouTube</a>!</b>",
},
navbar: {
logo: {
src: "/img/feather.png",
alt: "Peacock Logo"
},
title: "The Peacock Project",
items: [
{
type: "doc",
position: "left",
docId: "home",
label: "Wiki"
},
{
href: "/wiki/intel/installation",
label: "Installation Guide",
position: "left"
},
{
href: "https://github.com/thepeacockproject",
label: "GitHub",
position: "left"
},
{
href: "https://discord.gg/F8qQTfnajw",
label: "Discord",
position: "left"
},
{
type: "localeDropdown",
position: "right"
}
]
},
footer: {
style: "dark",
links: [
{
title: "Wiki",
items: [
{
label: "Knowledge Base",
to: "/wiki/intel"
},
{
label: "Help/Bugs/Feature Requests (in our Discord)",
href: "https://discord.gg/F8qQTfnajw"
},
{
label: "Plugin Development",
to: "/plugins"
}
]
},
{
title: "Community",
items: [
{
label: "Ghost Mode",
to: "/wiki/ghost-mode"
},
{
label: "Branding",
to: "/branding"
},
{
label: "Credits",
to: "/wiki/credits"
},
{
label: "GitHub",
href: "https://github.com/thepeacockproject"
}
]
},
{
title: "Other",
items: [
{
label: "Privacy Policy",
to: "/wiki/legal/privacy-policy"
},
{
label: "Terms of Service",
to: "/wiki/legal/terms-of-service"
}
]
}
],
logo: {
alt: "Peacock Feather Logo",
src: "/img/feather.png",
href: "https://thepeacockproject.org/branding"
},
copyright: `Copyright © ${new Date().getFullYear()} The Peacock Project. Not owned by, affiliated with, or endorsed by IO Interactive.<br /><br /><small class="ioi-copyright">HITMAN 3 © 2020 IO Interactive A/S. HITMAN™ 2 © 2018 IO Interactive A/S. HITMAN™ © 2019 IO Interactive A/S. IO Interactive, IOI logos, HITMAN, HITMAN logos, and WORLD OF ASSASSINATION are trademarks or registered trademarks owned by or exclusively licensed to IO Interactive A/S. All other trademarks are the property of their respective owners.</small>`
},
docs: {
sidebar: {
hideable: true
}
},
algolia: {
appId: "6G48SB1UKC",
apiKey: "ce01e2bfd0860bfa392b4ad2720b9f8a",
indexName: "thepeacockproject",
contextualSearch: true,
searchPagePath: "search",
insights: false
}
},
themes: [
[
"@docusaurus/theme-classic",
{
customCss: require.resolve("./src/css/custom.css")
}
],
"@docusaurus/theme-search-algolia"
],
plugins: [
[
"@docusaurus/plugin-content-docs",
{
sidebarPath: require.resolve("./sidebars.mjs"),
routeBasePath: "/wiki/",
editUrl: ({ locale, docPath }) => {
if (locale !== `en`) {
return `https://crowdin.com/project/peacock/${locale}`
}
return `https://github.com/thepeacockproject/peacockprojectorg/edit/main/docs/${docPath}`
},
showLastUpdateTime: true
}
],
[
"@docusaurus/plugin-content-docs",
{
id: "plugin-dev",
sidebarPath: require.resolve("./sidebarsPluginDev.mjs"),
routeBasePath: "/plugins/",
path: "plugin-dev",
editUrl: ({ locale, docPath }) => {
if (locale !== `en`) {
return `https://crowdin.com/project/peacock/${locale}`
}
return `https://github.com/thepeacockproject/peacockprojectorg/edit/main/plugin-dev/${docPath}`
},
showLastUpdateTime: true
}
],
"@docusaurus/plugin-content-pages",
[
"@docusaurus/plugin-sitemap",
{
changefreq: "weekly"
}
],
[
"@docusaurus/plugin-ideal-image",
{
quality: 70,
max: 1030,
min: 640,
steps: 2
}
]
]
}