-
Notifications
You must be signed in to change notification settings - Fork 15
/
docusaurus.config.js
165 lines (158 loc) · 4.92 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'aqua',
tagline: 'Declarative CLI Version Manager. Unify tool versions in teams, projects, and CI. Easy, painless, and secure.',
url: 'https://aquaproj.github.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'https://raw.githubusercontent.com/aquaproj/aqua/main/logo/aqua_without_text.svg',
organizationName: 'aquaproj', // Usually your GitHub org/user name.
projectName: 'aqua', // Usually your repo name.
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/aquaproj/aquaproj.github.io/edit/main',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: {
routeBasePath: '/blog',
feedOptions: {
type: 'all',
copyright: `Copyright © 2021 Shunsuke Suzuki. Built with Docusaurus.`,
},
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'command_aliases',
content:
'<a href="/docs/guides/command-alias">You can now define command aliases (2024-11-02)</a>',
backgroundColor: '#7FFF00',
textColor: '#091E42',
isCloseable: true,
},
navbar: {
title: 'aqua',
logo: {
alt: 'aqua Logo',
src: 'https://raw.githubusercontent.com/aquaproj/aqua/main/logo/aqua_without_text.svg',
},
items: [
{
type: 'doc',
docId: 'index',
position: 'left',
label: 'Docs',
},
{
href: '/docs/#contact-us',
label: 'Contact',
position: 'right',
},
{
href: 'https://github.com/aquaproj/aqua',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Overview',
to: '/docs/',
},
{
to: '/docs/tutorial',
label: 'Tutorial',
},
{
to: '/docs/install',
label: 'Install',
},
{
to: '/docs/reference/slide-blog',
label: 'Blog',
},
],
},
{
title: 'More',
items: [
{
href: 'https://github.com/orgs/aquaproj/discussions',
label: 'Question',
},
{
label: 'GitHub',
href: 'https://github.com/aquaproj/aqua',
},
{
href: 'https://github.com/aquaproj/aqua-registry',
label: 'Standard Registry',
},
{
href: 'https://github.com/sponsors/aquaproj',
label: 'Sponsor',
},
{
href: 'https://github.com/aquaproj/aqua/releases',
label: 'Changelog',
},
{
href: 'https://asciinema.org/a/498262?autoplay=1',
label: 'Demo',
},
{
label: 'X (Formerly Twitter)',
href: 'https://x.com/aquaclivm',
},
{
label: 'Discord',
href: 'https://discord.gg/CBGesz8yBX'
},
],
},
],
copyright: `Copyright © 2021 Shunsuke Suzuki. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
algolia: {
appId: 'OBO5AZ814M',
// Public API key: it is safe to commit it
apiKey: '7ebd7217e9bd4836c5094b4acdf1a0c9',
indexName: 'aquaproj',
// Optional: see doc section below
// contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Algolia search parameters
searchParameters: {},
//... other Algolia params
},
}),
};
module.exports = config;