-
Notifications
You must be signed in to change notification settings - Fork 45
/
docusaurus.config.js
58 lines (58 loc) · 2 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "ModDota",
url: "https://moddota.com",
baseUrl: "/",
favicon: "images/favicon.ico",
onBrokenLinks: "throw",
themeConfig: {
navbar: {
title: "ModDota",
logo: {
alt: "ModDota",
src: "images/logo.svg",
},
items: [
{ position: "left", label: "Lua API", href: "https://moddota.com/api" },
{
position: "left",
label: "Panorama API",
href: "https://developer.valvesoftware.com/wiki/Dota_2_Workshop_Tools/Panorama/Javascript/API",
},
{ position: "right", label: "Discord", href: "https://discord.gg/gRmZgvz" },
],
},
prism: {
additionalLanguages: ["lua"],
theme: require("prism-react-renderer/themes/github"),
darkTheme: require("prism-react-renderer/themes/dracula"),
},
algolia: {
appId: "53WE0HHYGT",
apiKey: "ce612349c2e1e35842e9630128e92dc2",
indexName: "moddota",
contextualSearch: false,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "_articles",
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.json"),
editUrl: "https://github.com/ModDota/moddota.github.io/edit/source/",
remarkPlugins: [
require("./docusaurus/remark-component-provider"),
require("./docusaurus/remark-remove"),
],
},
theme: {
customCss: require.resolve("./src/custom.scss"),
},
},
],
],
plugins: ["docusaurus-plugin-sass", require.resolve("./docusaurus/plugin")],
};