-
Notifications
You must be signed in to change notification settings - Fork 410
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
136 lines (134 loc) · 3.39 KB
/
docusaurus.config.js
File metadata and controls
136 lines (134 loc) · 3.39 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
__webpack_public_path__ = "/docs/"
const resolveGlob = require('resolve-glob');
module.exports = {
title: 'DevSpace | Documentation',
tagline: 'The tagline of my site',
url: 'https://devspace.sh',
baseUrl: __webpack_public_path__,
markdown: {
mdx1Compat: {
headingIds: true,
},
},
favicon: '/img/favicon.png',
organizationName: 'loft-sh', // Usually your GitHub org/user name.
projectName: 'devspace', // Usually your repo name.
themeConfig: {
colorMode: {
disableSwitch: true
},
navbar: {
//hideOnScroll: true,
logo: {
alt: 'DevSpace',
src: '/media/logos/devspace-logo-primary.svg',
href: 'https://devspace.sh/',
target: '_self'
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
},
{
href: 'https://devspace.sh/',
label: 'Website',
position: 'left',
target: '_self'
},
{
href: 'https://loft.sh/blog/tags/devspace',
label: 'Blog',
position: 'left',
target: '_self'
},
{
href: 'https://slack.loft.sh/',
className: 'slack-link',
'aria-label': 'Slack',
position: 'right',
},
{
href: 'https://github.com/loft-sh/devspace',
className: 'github-link',
'aria-label': 'GitHub',
position: 'right',
},
],
},
algolia: {
apiKey: "9396b07e4ad34e90394fbfe79695d88d",
appId: "L1ZH1CZBMP",
indexName: "devspace-cli",
placeholder: "Search...",
algoliaOptions: {},
contextualSearch: true,
},
footer: {
style: 'light',
links: [],
copyright: `Copyright © DevSpace Authors <br/>DevSpace is an open-source project originally created by <a href="https://loft.sh/">Loft Labs, Inc.</a>`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'pages',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
showLastUpdateTime: true,
editUrl: 'https://github.com/loft-sh/devspace/edit/main/docs/',
lastVersion: "current",
versions: {
current: {
label: "6.x (Latest)",
path: ""
}
},
},
theme: {
customCss: resolveGlob.sync(['./src/css/**/*.scss']),
},
},
],
[
'redocusaurus',
{
specs: [
{
spec: 'schemas/config-openapi.json',
},
],
theme: {
primaryColor: '#00bdff',
redocOptions: {
hideDownloadButton: false,
disableSearch: true,
colors: {
border: {
dark: '#00bdff',
light: '#00bdff',
}
}
},
},
},
],
],
themes: [
'@saucelabs/theme-github-codeblock'
],
plugins: [
'docusaurus-plugin-sass',
'plugin-image-zoom',
],
scripts: [
{
src: 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js',
async: true,
},
],
clientModules: resolveGlob.sync(['./src/js/**/*.js']),
};