forked from esx-framework/esx-documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
97 lines (95 loc) · 2.46 KB
/
docusaurus.config.js
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "ESX Documentation",
tagline: "Industry Leading FiveM Framework",
url: "https://docs.esx-framework.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "https://cdn.discordapp.com/attachments/936727454087806987/937875927717785660/30593074.png",
organizationName: "esx-framework",
presets: [],
plugins: [
"docusaurus-plugin-google-adsense",
"docusaurus-plugin-sass",
"content-pages",
["content-docs",
{
path: "legacy",
routeBasePath: "legacy"
}
],
["content-docs",
{
id: "infinity",
path: "infinity",
routeBasePath: "infinity"
}
],
],
themes: [
["classic",
{
customCss: [require.resolve("./src/css/custom.scss")]
}]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: "dark"
},
googleAdsense: {
dataAdClient: "ca-pub-9580213111363531"
},
navbar: {
title: "ESX Framework",
logo: {
alt: "ESX Logo",
src: "https://cdn.discordapp.com/attachments/936727454087806987/937875927717785660/30593074.png"
},
items: [
{
type: "doc",
docId: "installation",
position: "left",
label: "ESX Legacy"
},
{
type: "doc",
docId: "installation",
docsPluginId: "infinity",
position: "left",
label: "ESX Infinity"
},
{
href: "https://github.com/esx-framework",
label: "GitHub",
position: "right"
},
{
href: "https://guilded.gg/ESX-Framework-OFFICIAL",
label: "Guilded",
position: "right"
},
{
href: "https://discord.gg/ztzKWAF",
label: "Discord",
position: "right"
}
]
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} ESX Framework`
},
prism: {
darkTheme: require("prism-react-renderer/themes/vsDark"),
theme: require("prism-react-renderer/themes/github"),
additionalLanguages: ["lua"]
}
})
};
module.exports = config;