-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
127 lines (125 loc) · 2.74 KB
/
docusaurus.config.js
File metadata and controls
127 lines (125 loc) · 2.74 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import { themes as prismThemes } from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Brobridge Gravity',
tagline: 'The Cloud Native Data Mesh Solution',
favicon: 'img/favicon.ico',
url: 'https://your-docusaurus-site.example.com',
baseUrl: '/',
organizationName: 'BBG',
projectName: 'gravity-documentation',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-TW'],
localeConfigs: {
en: {
label: 'English'
},
'zh-TW': {
label: '繁體中文'
},
},
},
presets: [
[
'classic',
{
docs: {
sidebarPath: './sidebars.js',
routeBasePath: '/docs',
},
blog: {},
theme: {
customCss: './src/css/custom.css',
},
},
],
],
themeConfig: {
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
},
image: 'img/docusaurus-social-card.jpg',
navbar: {
style: 'dark',
title: 'Brobridge Gravity',
logo: {
alt: 'My Site Logo',
src: 'img/gravity_logo.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'docSidebar',
position: 'left',
label: 'Docs',
},
{
type: 'docSidebar',
sidebarId: 'apiSidebar',
label: 'API',
position: 'left',
},
{
type: 'docSidebar',
sidebarId: 'faqSidebar',
label: 'FAQ',
position: 'left',
},
{
type: 'localeDropdown',
position: 'right',
},
{
label: 'GitHub',
href: 'https://github.com/BrobridgeOrg',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Resources',
items: [
{
label: 'Docs',
to: '/docs/quickstart',
},
{
label: 'API',
to: '/docs/api/general',
},
{
label: 'FAQ',
to: '/docs/faq/general',
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: 'https://github.com/BrobridgeOrg',
},
{
label: 'Official Website',
href: 'https://brobridge.com',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Brobridge, Inc.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
},
};
export default config;