-
Notifications
You must be signed in to change notification settings - Fork 202
/
docusaurus.config.js
83 lines (82 loc) · 2.03 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
const { createHighlighter } = require("./src/remark/shiki");
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "The Codewars Docs",
tagline: "Achieve mastery through challenge",
url: "https://docs.codewars.com",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "favicon.ico",
organizationName: "codewars",
projectName: "docs",
// https://docusaurus.io/docs/next/api/themes/configuration
themeConfig: {
docs: {
sidebar: {
hideable: true,
},
},
colorMode: {
defaultMode: "dark",
},
algolia: {
// Search only API key
apiKey: "651420d53bdf2d24b6719c6777dc69a4",
indexName: "codewars-docs",
appId: "2O5VWTLFC8",
contextualSearch: false,
},
navbar: {
title: null,
hideOnScroll: true,
logo: {
alt: "Codewars Logo",
src: "logo-light.svg",
srcDark: "logo-dark.svg",
href: "https://www.codewars.com/",
},
items: [
{
label: "Docs",
activeBaseRegex: "/(?!search)",
position: "left",
to: "/",
},
{
href: "https://github.com/codewars",
position: "right",
className: "header-github-link",
"aria-label": "GitHub",
},
],
},
footer: {
links: [],
copyright: `Copyright © ${new Date().getFullYear()} Codewars`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "content",
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/codewars/docs/edit/master/",
beforeDefaultRemarkPlugins: [
createHighlighter({
themes: ["github-dark-dimmed", "github-light"],
}),
],
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
plugins: ["./sitePlugin.js"],
};