-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
210 lines (204 loc) · 5.5 KB
/
docusaurus.config.ts
File metadata and controls
210 lines (204 loc) · 5.5 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
import type {Config, PluginConfig} from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';
import {themes as prismThemes} from 'prism-react-renderer';
const lightCodeTheme = prismThemes.nightOwlLight
const darkCodeTheme = prismThemes.dracula
const config: Config = {
title: 'Musson Industrial',
organizationName: 'mussonindustrial',
projectName: 'public-docs',
tagline: 'Public Documentation',
url: 'https://docs.mussonindustrial.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'site',
path: 'site',
routeBasePath: '',
sidebarPath: './site/sidebars.ts',
sidebarCollapsible: false,
showLastUpdateAuthor: true,
showLastUpdateTime: true,
}
] satisfies PluginConfig,
[
'@docusaurus/plugin-content-docs',
{
id: 'ignition-modules',
path: 'ignition-modules',
routeBasePath: 'ignition',
sidebarPath: './ignition-modules/sidebars.ts',
sidebarCollapsible: true,
showLastUpdateAuthor: true,
showLastUpdateTime: true,
}
],
[
'@docusaurus/theme-classic',
{
customCss: require.resolve('./src/css/custom.css'),
},
] satisfies PluginConfig,
],
themes: ['docusaurus-theme-openapi-docs', '@docusaurus/theme-search-algolia'], // exports ApiItem and ApiDemoPanel
themeConfig: {
navbar: {
title: 'Musson Industrial',
logo: {
alt: 'Musson Industrial Emblem',
src: 'https://cdn.mussonindustrial.com/files/public/images/emblem.svg',
srcDark: 'https://cdn.mussonindustrial.com/files/public/images/emblem.svg',
height: 10,
width: 45
},
hideOnScroll: true,
items: [
{
type: 'dropdown',
label: 'Ignition Modules',
position: 'left',
items: [
{
label: 'BarTender Drivers',
to: 'ignition/bartender'
},
{
label: 'Embr Charts',
to: 'ignition/embr-charts'
},
{
label: 'Embr Periscope',
to: 'ignition/embr-periscope'
},
{
label: 'Embr Thermodynamics',
to: 'ignition/embr-thermodynamics'
}
],
},
{
type: 'search',
position: 'right',
},
{
href: 'https://github.com/mussonindustrial/embr/releases',
label: 'Downloads',
position: 'right',
},
{
href: 'https://mussonindustrial.com/contact-us',
label: 'Contact Us',
position: 'right',
}
],
},
footer: {
style: 'light',
links: [
{
title: 'Ignition Modules',
items: [
{
label: 'Embr Charts',
to: 'ignition/embr-charts'
},
{
label: 'Embr Periscope',
to: 'ignition/embr-periscope'
},
{
label: 'Embr Thermodynamics',
to: 'ignition/embr-thermodynamics'
}
],
},
{
title: 'More',
items: [
{
label: 'About Us',
href: 'https://mussonindustrial.com',
},
{
label: 'GitHub',
href: 'https://github.com/mussonindustrial',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Musson Industrial`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['python', "ruby", "csharp", "php", "java"],
},
languageTabs: [
{
highlight: "bash",
language: "curl",
logoClass: "bash",
},
{
highlight: "python",
language: "python",
logoClass: "python",
variant: "http.client",
},
{
highlight: "go",
language: "go",
logoClass: "go",
},
{
highlight: "javascript",
language: "nodejs",
logoClass: "nodejs",
variant: "request",
},
{
highlight: "csharp",
language: "csharp",
logoClass: "csharp",
variant: "httpclient",
},
{
highlight: "java",
language: "java",
logoClass: "java",
variant: "unirest",
},
],
docs: {
sidebar: {
autoCollapseCategories: true,
},
},
// announcementBar: {
// id: 'module_trials',
// content:
// 'Download the new release of our BarTender Drivers Module!',
// backgroundColor: '#fafbfc',
// textColor: '#091E42',
// isCloseable: true,
// },
algolia: {
appId: '4XIRE6JRF9',
apiKey: 'cad4a01f5cf77c06a1e62dc0573cbdd4',
indexName: 'mussonindustrial',
contextualSearch: true,
searchPagePath: 'search',
insights: false,
},
} satisfies Preset.ThemeConfig,
} satisfies Config;
export default config;