-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
102 lines (102 loc) · 3.02 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
module.exports = {
title: 'EzGitDoc',
tagline: 'documentation',
url: 'https://os-expected.github.io',
baseUrl: '/EzGitDoc-documentation/',
onBrokenLinks: 'throw',
favicon: 'img/favicon.png',
organizationName: 'trolit', // Usually your GitHub org/user name.
projectName: 'EzGitDoc-documentation', // Usually your repo name.
plugins: ['docusaurus-plugin-sass'],
themeConfig: {
announcementBar: {
id: 'support_us', // Any value that will identify this message.
content:
'If you like EzGitDoc, leave ⭐️ on <a target="_blank" rel="noopener noreferrer" href="https://github.com/trolit/EzGitDoc">GitHub</a> 😄',
backgroundColor: '#fafbfc', // Defaults to `#fff`.
textColor: '#091E42', // Defaults to `#000`.
isCloseable: false, // Defaults to `true`.
},
algolia: {
apiKey: 'd78e438eb777ec800b79afc95c62b7eb',
indexName: 'ezgitdoc',
debug: false
},
sidebarCollapsible: false,
navbar: {
title: 'Home',
logo: {
alt: 'Site Logo',
src: 'img/logo.svg',
href: '/', // Default to `siteConfig.baseUrl`.
target: '_self', // the external link will open in a new tab, all others in the current one.
},
items: [
{
label: 'Docs',
position: 'left',
to: 'docs'
},
{
label: 'Projects',
position: 'left',
href: 'https://github.com/trolit/EzGitDoc/projects'
},
{
label: 'DEV',
position: 'left',
to: 'dev',
},
{
label: 'Changelog',
position: 'left',
to: 'changelog'
},
{
position: 'right',
className: 'header-github-link',
href: 'https://github.com/trolit/EzGitDoc',
'aria-label': 'GitHub repository'
},
],
},
footer: {
style: 'dark',
copyright: `documentation proudly built with <a target="_blank" rel="noopener noreferrer" href="https://v2.docusaurus.io/">Docusaurus2</a> | search powered by <a target="_blank" href="https://www.algolia.com/ref/docsearch/?utm_source=docsearch&utm_medium=link&utm_term=footer&utm_campaign=">Algolia</a>`,
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula'),
}
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl:
'https://github.com/trolit/EzGitDoc-documentation/edit/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
scripts: [
// Object format.
{
src:
'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js',
async: true,
},
{
src:
'https://code.iconify.design/1/1.0.7/iconify.min.js',
async: true,
}
],
};