Repository navigation
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
124 lines (112 loc) · 2.88 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
124 lines (112 loc) · 2.88 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
// @ts-check
import {themes as prismThemes} from 'prism-react-renderer';
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Zoomy Help Centre',
tagline: 'Search for articles...',
favicon: 'img/favicon.png',
future: {
v4: true,
},
url: 'http://localhost:3000',
baseUrl: '/',
organizationName: 'facebook',
projectName: 'docusaurus',
onBrokenLinks: 'throw',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: [
{ from: '/docs/category/tutorial---basics', to: '/collections/features' },
{ from: '/docs/category/tutorial---extras', to: '/collections/features' },
],
},
],
],
customFields: {
collections: [
{
title: 'Initial Setup',
description: 'Connecting your Zoom account with Zoomy',
authorCount: 1,
articleCount: 2,
link: '/collections/initial-setup',
},
{
title: 'Zoomy Features & Settings',
description: 'Learn how to use the various features of Zoomy',
authorCount: 2,
articleCount: 7,
link: '/collections/features',
},
],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
},
blog: {
showReadingTime: true,
feedOptions: { type: ['rss', 'atom'], xslt: true },
editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
},
theme: {
customCss: './src/css/custom.css',
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
image: 'img/docusaurus-social-card.jpg',
metadata: [
{
name: 'google-site-verification',
content: 'lZIxHXWM-7gFvK0PrOd0zEt7AWFufFxk7tXM_JJSoUs',
},
],
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: true,
},
navbar: {
title: 'Zoomy',
hideOnScroll: false,
logo: {
alt: 'Zoomy',
src: 'img/logo.svg',
href: '/',
},
items: [
{ to: '/docs/intro', label: 'All Collections', position: 'right' },
],
},
footer: {
style: 'dark',
links: [],
copyright: 'Zoomy',
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
export default config;