forked from comcode-org/hackmud_wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
85 lines (76 loc) · 2.34 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
// @ts-check
const GITHUB_ORG = "comcode-org";
const GITHUB_PROJECT = "hackmud_wiki";
// See: https://docusaurus.io/docs/api/docusaurus-config
/** @type {import('@docusaurus/types').Config} */
const config = {
// Metadata
title: "hackmud Wiki",
tagline: "Knowledge repository for the video game hackmud",
//favicon: 'img/favicon.ico',
// Deployment details
url: `https://${GITHUB_ORG}.github.io`,
baseUrl: `/${GITHUB_PROJECT}/`,
// GitHub Pages config for CLI deployment
organizationName: GITHUB_ORG,
projectName: GITHUB_PROJECT,
// Internationalization options, useful to set even if you only support one
// language because it generates the `lang` attribute on the `html` tag
i18n: {
defaultLocale: "en",
locales: ["en"],
},
// Installed plugins
plugins: [
[
"@docusaurus/plugin-content-docs",
// See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs#configuration
{
// Path of the docs plugin relative to the root. Since it's the only
// plugin we're using, put it at the top
routeBasePath: "/",
// Base url for "Edit This Page" button on content pages
editUrl: `https://github.com/${GITHUB_ORG}/${GITHUB_PROJECT}/edit/main`,
// Path to custom sidebar definition(s)
//sidebarPath: require.resolve('./sidebar.js'),
// Plugins for remark, at the Markdown AST level
remarkPlugins: [],
// Plugins for rehype, at the HTML AST level
rehypePlugins: [],
},
],
],
// Installed themes
themes: [
[
"@docusaurus/theme-classic",
// See: https://docusaurus.io/docs/api/themes/@docusaurus/theme-classic#configuration
{
customCss: require.resolve("./src/css/custom.css"),
},
],
],
// Global theme config
// See: https://docusaurus.io/docs/api/themes/configuration
/** @type {import('@docusaurus/theme-common').UserThemeConfig} */
themeConfig: {
// Supported and default color modes
colorMode: {
defaultMode: "dark",
},
// Theme configuration specific to the docs plugin
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
navbar: {
title: "hackmud Wiki",
},
footer: {
copyright: `copyrongtd © ${new Date().getFullYear()} ComCODE`,
links: [],
},
},
};
module.exports = config;