Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
87 lines (85 loc) · 2.23 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
87 lines (85 loc) · 2.23 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
import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Oraxen Documentation',
tagline: 'Create custom content for Minecraft.',
favicon: 'favicon.ico',
headTags: [
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '32x32',
href: '/favicon-32x32.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'icon',
type: 'image/png',
sizes: '16x16',
href: '/favicon-16x16.png',
},
},
{
tagName: 'link',
attributes: {
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
},
],
future: {v4: true},
url: 'https://docs.oraxen.com',
baseUrl: '/',
organizationName: 'oraxen',
projectName: 'docs.oraxen.com',
onBrokenLinks: 'throw',
i18n: {defaultLocale: 'en', locales: ['en']},
plugins: [
'./plugins/raw-docs',
['@easyops-cn/docusaurus-search-local', {
docsRouteBasePath: '/',
indexBlog: false,
indexPages: false,
language: ['en'],
hashed: true,
searchBarPosition: 'right',
searchResultContextMaxLength: 100,
explicitSearchResultPath: true,
}],
],
presets: [['classic', {
docs: {
sidebarPath: './sidebars.js',
routeBasePath: '/',
editUrl: 'https://github.com/oraxen/docs.oraxen.com/edit/main/',
},
blog: false,
theme: {customCss: './src/css/custom.css'},
}]],
themeConfig: {
announcementBar: {
id: 'bedrockgen-support',
content: '<strong>NEW</strong>; Oraxen now supports Bedrock and Geyser through the <a href="/compatibility/bedrock/bedrockgen/">BedrockGen addon</a>.',
backgroundColor: '#e0f2fe',
textColor: '#0b2d35',
isCloseable: true,
},
colorMode: {respectPrefersColorScheme: true},
navbar: {
title: 'Oraxen',
logo: {alt: 'Oraxen logo', src: 'img/logo.png'},
items: [{type: 'search', position: 'right'}],
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.oneDark,
additionalLanguages: ['java', 'groovy', 'powershell', 'batch', 'yaml'],
},
},
};
export default config;