-
Notifications
You must be signed in to change notification settings - Fork 3
/
docusaurus.config.js
158 lines (154 loc) · 4.2 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
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
/* eslint-disable prettier/prettier */
/* eslint-disable @typescript-eslint/no-var-requires */
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const graphqlMarkdownConfig = require('./graphql-markdown.config');
const { specs } = require('./redoc.config');
const DOCS_URL = 'https://docs.epilot.io';
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(module.exports = {
title: 'epilot dev center',
tagline: 'The platform to simplify your business - for developers.',
url: DOCS_URL,
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.svg',
organizationName: 'epilot-dev', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
id: 'default',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/epilot-dev/docs/edit/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
[
'redocusaurus',
{
debug: Boolean(process.env.DEBUG || process.env.CI),
specs: specs.map((spec) => ({ ...spec, apiDocComponent: '../src/components/RedocPage' })),
theme: {
primaryColor: '#9b91ff',
redocOptions: {
hideDownloadButton: false,
nativeScrollbars: true,
pathInMiddlePanel: true,
},
},
},
],
],
plugins: [
require.resolve('@cmfcmf/docusaurus-search-local'),
...graphqlMarkdownConfig,
[
'@docusaurus/plugin-content-docs',
{
id: 'graphql',
path: 'graphql',
routeBasePath: 'graphql',
sidebarPath: require.resolve('./sidebars.js'),
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Dev Center',
logo: {
alt: 'epilot',
src: 'img/logo.png',
},
items: [
{
label: 'Documentation',
type: 'doc',
docId: 'intro',
position: 'left',
},
{
to: '/api',
label: 'REST API',
position: 'left',
},
{
position: 'left',
label: 'GraphQL',
to: '/graphql/sharing',
},
{
to: '/docs/architecture/sdk',
label: 'SDK',
position: 'left',
},
],
},
footer: {
style: 'light',
links: [
{
title: 'Docs',
items: [
{
label: 'Documentation',
to: '/docs/intro',
},
{
label: 'REST API Docs',
to: '/api',
},
{
label: 'Graphql API Docs',
to: '/graphql/sharing',
},
{
label: 'SDK',
to: '/docs/architecture/sdk',
},
],
},
{
title: 'Links',
items: [
{
label: 'epilot portal',
href: 'https://portal.epilot.cloud',
},
{
label: 'GitHub',
href: 'https://github.com/epilot-dev',
},
{
label: 'Blog',
href: 'https://dev.to/epilot',
},
{
label: 'Tech Radar',
href: `${DOCS_URL}/techradar`,
},
{
label: 'Engineering Principles',
href: 'https://github.com/epilot-dev/engineering-principles',
},
],
},
],
copyright: `© epilot.cloud ${new Date().getFullYear()}`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
});