forked from TurboWarp/docs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
92 lines (92 loc) · 2.69 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
92 lines (92 loc) · 2.69 KB
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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'MistWarp Documentation',
tagline: 'A comprehensive guide to MistWarp - the advanced Scratch modification platform',
url: 'https://warp.mistium.com',
baseUrl: '/docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'favicon.ico',
organizationName: 'MistWarp',
projectName: 'docs',
trailingSlash: true,
clientModules: [
require.resolve('./src/clientModules/spotlight-key.js'),
require.resolve('./src/clientModules/sidebar-toggle.js'),
],
themeConfig: {
navbar: {
title: '',
items: [
{
type: 'dropdown',
label: 'Use MistWarp',
position: 'left',
items: [
{to: '/getting-started/introduction', label: 'Getting Started'},
{to: '/editor/interface', label: 'Using the Editor'},
{to: '/blocks/overview', label: 'Blocks Reference'},
{to: '/extensions/overview', label: 'Extensions'},
{to: '/advanced/cloud-variables', label: 'Advanced Features'}
]
},
{
type: 'dropdown',
label: 'Build & Extend',
position: 'left',
items: [
{to: '/building-extensions/introduction', label: 'Building Extensions'},
{to: '/packager/overview', label: 'Packager'},
{to: '/api-reference/overview', label: 'API Reference'}
]
},
{
type: 'dropdown',
label: 'Contribute',
position: 'left',
items: [
{to: '/contributing/overview', label: 'Contributing'},
{to: '/internals/overview', label: 'Architecture & Internals'}
]
}
],
},
algolia: {
// This is all supposed to be public
appId: 'HORQ9E5CCA',
apiKey: 'c3873ce4208edb896a31bb3e7c2cbdad',
indexName: 'mistwarp',
translations: {
button: {
buttonText: 'Search docs',
buttonAriaLabel: 'Search docs',
},
},
},
colorMode: {
// The editor syncs the docs to its own theme, so no in-page toggle.
disableSwitch: true,
respectPrefersColorScheme: true,
},
prism: {
theme: require('./code-themes/light'),
darkTheme: require('./code-themes/dark'),
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: '/',
editUrl: 'https://github.com/MistWarp/docs/edit/master/',
breadcrumbs: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};