Skip to content

Commit 54fbbca

Browse files
authored
Updated docusarus version and other dependencies (#48)
1 parent 077b046 commit 54fbbca

File tree

3 files changed

+14007
-18296
lines changed

3 files changed

+14007
-18296
lines changed

docs/docusaurus.config.js

Lines changed: 56 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const isCI = !!process.env.CI;
22

3-
/** @type {import('@docusaurus/types').DocusaurusConfig} */
4-
module.exports = {
3+
/** @type {import('@docusaurus/types').Config} */
4+
const config = {
55
title: 'Operator for Redis Cluster',
66
url: isCI ? 'https://cin.github.io' : 'http://localhost:3001',
77
baseUrl: '/operator-for-redis-cluster/',
@@ -11,63 +11,75 @@ module.exports = {
1111
trailingSlash: false,
1212
organizationName: 'cin',
1313
projectName: 'operator-for-redis-cluster',
14-
themeConfig: {
15-
docs: {
16-
sidebar: {
17-
hideable: true,
18-
}
19-
},
20-
colorMode: {
21-
defaultMode: 'dark',
22-
},
23-
navbar: {
24-
hideOnScroll: false,
25-
title: 'Operator for Redis Cluster',
26-
logo: {
27-
src: 'images/logo.svg',
28-
srcDark: 'images/logo.svg',
14+
15+
// GitHub pages deployment config
16+
deploymentBranch: 'gh-pages',
17+
18+
themeConfig:
19+
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
20+
({
21+
docs: {
22+
sidebar: {
23+
hideable: true,
24+
}
25+
},
26+
colorMode: {
27+
defaultMode: 'dark',
2928
},
30-
items: [
31-
{
32-
href: 'https://cin.github.io/operator-for-redis-cluster',
33-
label: 'GitHub',
34-
position: 'right',
29+
navbar: {
30+
hideOnScroll: false,
31+
title: 'Operator for Redis Cluster',
32+
logo: {
33+
src: 'images/logo.svg',
34+
srcDark: 'images/logo.svg',
3535
},
36-
],
37-
},
38-
prism: {
39-
defaultLanguage: 'go',
40-
additionalLanguages: ['go'],
41-
},
42-
footer: {
43-
style: 'dark',
44-
links: [],
45-
copyright: `Operator for Redis Cluster Documentation. Built with Docusaurus.`,
46-
},
47-
},
36+
items: [
37+
{
38+
href: 'https://cin.github.io/operator-for-redis-cluster',
39+
label: 'GitHub',
40+
position: 'right',
41+
},
42+
],
43+
},
44+
prism: {
45+
defaultLanguage: 'go',
46+
additionalLanguages: ['go'],
47+
},
48+
footer: {
49+
style: 'dark',
50+
links: [],
51+
copyright: `Operator for Redis Cluster Documentation. Built with Docusaurus.`,
52+
},
53+
}),
54+
4855
presets: [
4956
[
5057
'@docusaurus/preset-classic',
51-
{
58+
/** @type {import('@docusaurus/preset-classic').Options} */
59+
({
5260
docs: {
5361
sidebarCollapsible: true,
5462
showLastUpdateTime: true,
5563
routeBasePath: '/',
5664
sidebarPath: './sidebars.js',
57-
// Please change this to your repo.
58-
editUrl:
59-
'https://cin.github.io/operator-for-redis-cluster',
65+
editUrl: 'https://cin.github.io/operator-for-redis-cluster',
6066
},
6167
blog: {
6268
showReadingTime: true,
63-
// Please change this to your repo.
64-
editUrl:
65-
'https://cin.github.io/operator-for-redis-cluster',
69+
editUrl: 'https://cin.github.io/operator-for-redis-cluster',
6670
},
67-
},
71+
}),
6872
],
6973
],
74+
7075
plugins: [
71-
['@docusaurus/plugin-client-redirects', { fromExtensions: ['html', 'md'] }],
72-
]
76+
[
77+
'@docusaurus/plugin-client-redirects',
78+
{
79+
fromExtensions: ['html', 'md']
80+
}
81+
],
82+
],
7383
};
84+
85+
module.exports = config;

0 commit comments

Comments
 (0)