forked from joejulian/documentation-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
138 lines (132 loc) · 4.31 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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
module.exports = {
title: 'Redpanda Docs',
tagline: 'A modern streaming platform for mission critical workloads',
url: 'https://docs.redpanda.com',
baseUrl: '/',
trailingSlash: 'true',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/Redpanda_Favicon_32px.svg',
organizationName: 'redpanda-data', // Usually your GitHub org/user name.
projectName: 'redpanda', // Usually your repo name.,
themeConfig: {
colorMode: {
disableSwitch: false
},
navbar: {
title: '',
hideOnScroll: true,
logo: {
alt: 'Redpanda Logo',
src: 'img/redpanda-docs-logo.svg',
srcDark: 'img/redpanda-docs-logo.svg',
href: '/'
},
items: [
// { type: 'docsVersionDropdown',position: 'right'},
// { type: 'localeDropdown',position: 'right'},
{ href: 'https://redpanda.com/', label: 'Redpanda', position: 'right', target: '_self' },
{ href: 'https://redpanda.com/resources/', label: 'Resources', position: 'right', target: '_self' },
{ href: 'https://university.redpanda.com/', label: 'Training', position: 'right', target: '_self' },
{ href: 'https://redpanda.com/blog/', label: 'Blog', position: 'right', target: '_self' },
{ href: 'https://support.redpanda.com/hc/en-us/', label: 'Helpdesk', position: 'right', target: '_self' },
{ href: 'https://rpnda.co/slack', label: 'Community', position: 'right', target: '_self' },
{ href: 'https://github.com/redpanda-data/redpanda/', label: 'GitHub', position: 'right', target: '_self' },
],
},
footer: {
style: 'dark',
logo: {
alt: 'Redpanda Logo',
src: 'img/redpanda-logo.svg',
srcDark: 'img/redpanda-logo.svg',
href: 'https://redpanda.com/'
},
links: [
{
}
],
copyright: '<p style=" color: #808080">© 2022 Redpanda Data Inc. All Rights Reserved.</p>'
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['bash', 'docker', 'yaml','docker','powershell','git', 'ini', 'properties', 'javascript', 'python']
},
algolia: {
// The application ID provided by Algolia
appId: '6YUV7845VT',
// Public API key: it is safe to commit it
apiKey: '2639b1b6c05670f52200b301c84866d9',
indexName: 'redpanda',
// Optional: see doc section below
contextualSearch: true,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: ({versionDocsDirPath, docPath}) =>
`https://github.com/redpanda-data/documentation/edit/dev/${versionDocsDirPath}/${docPath}`,
editLocalizedFiles: false,
editCurrentVersion: false,
routeBasePath: 'docs',
include: ['**/*.md', '**/*.mdx'],
exclude: [
'**/_*.{js,jsx,ts,tsx,md,mdx}',
'**/_*/**',
'**/*.test.{js,jsx,ts,tsx}',
'**/__tests__/**',
],
lastVersion: 'current',
versions: {
current: {
label: '22.3',
},
},
},
blog: {
showReadingTime: true,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
sitemap: {
changefreq: 'weekly',
},
},
],
],
plugins: [
function (context, options) {
return {
name: 'docusaurus-plugin',
injectHtmlTags({content}) {
return {
headTags:['<meta name="google-site-verification" content="QcL-pD81oJatgKXQ3Wquvk_Ku3RRtUljxKoMaicySQA" />'],
preBodyTags: [`<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WB2CSV5" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>`],
};
},
}
},
],
scripts: [
{
src: '/js/googletag.js',
async: false,
},
{
src:'https://plausible.io/js/plausible.js',
defer: true,
'data-domain': "redpanda.com",
}
],
stylesheets: [
"https://fonts.googleapis.com/icon?family=Material+Icons",
],
};