forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
163 lines (151 loc) · 5.4 KB
/
config.js
File metadata and controls
163 lines (151 loc) · 5.4 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
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
import { defineConfig } from 'vitepress';
import { version } from '../../package.json';
export default defineConfig({
lang: 'en-US',
title: 'Hestia Control Panel',
description: 'Open-source web server control panel.',
lastUpdated: true,
cleanUrls: false,
head: [
['link', { rel: 'icon', sizes: 'any', href: '/favicon.ico' }],
['link', { rel: 'icon', type: 'image/svg+xml', sizes: '16x16', href: '/logo.svg' }],
['link', { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' }],
['link', { rel: 'manifest', href: '/site.webmanifest' }],
['meta', { name: 'theme-color', content: '#b7236a' }],
],
themeConfig: {
logo: '/logo.svg',
nav: nav(),
socialLinks: [
{ icon: 'github', link: 'https://github.com/hestiacp/hestiacp' },
{ icon: 'twitter', link: 'https://twitter.com/HestiaPanel' },
{ icon: 'facebook', link: 'https://www.facebook.com/hestiacp' },
],
sidebar: { '/docs/': sidebarDocs() },
outline: [2, 3],
editLink: {
pattern: 'https://github.com/hestiacp/hestiacp/edit/main/docs/:path',
text: 'Edit this page on GitHub',
},
footer: {
message: 'Released under the GPLv3 License.',
copyright: 'Copyright © 2019-present Hestia Control Panel',
},
algolia: {
appId: 'V04P0P5D2R',
apiKey: '7a90a3ac7f9313f174c50b0f301f7ec6',
indexName: 'hestia_cp',
},
},
});
/** @returns {import("vitepress").DefaultTheme.NavItem[]} */
function nav() {
return [
{ text: 'Features', link: '/features' },
{ text: 'Install', link: '/install' },
{ text: 'Documentation', link: '/docs/introduction/getting-started', activeMatch: '/docs/' },
{ text: 'Team', link: '/team' },
{ text: 'Demo', link: 'https://demo.hestiacp.com:8083/' },
{ text: 'Forum', link: 'https://forum.hestiacp.com/' },
{ text: 'Donate', link: '/donate' },
{
text: `v${version}`,
items: [
{
text: 'Changelog',
link: 'https://github.com/hestiacp/hestiacp/blob/main/CHANGELOG.md',
},
{
text: 'Contributing',
link: 'https://github.com/hestiacp/hestiacp/blob/main/CONTRIBUTING.md',
},
{
text: 'Security policy',
link: 'https://github.com/hestiacp/hestiacp/blob/main/SECURITY.md',
},
],
},
];
}
/** @returns {import("vitepress").DefaultTheme.SidebarItem[]} */
function sidebarDocs() {
return [
{
text: 'Introduction',
collapsed: false,
items: [
{ text: 'Getting started', link: '/docs/introduction/getting-started' },
{ text: 'Best practices', link: '/docs/introduction/best-practices' },
],
},
{
text: 'User guide',
collapsed: false,
items: [
{ text: 'Account', link: '/docs/user-guide/account' },
{ text: 'Backups', link: '/docs/user-guide/backups' },
{ text: 'Cron jobs', link: '/docs/user-guide/cron-jobs' },
{ text: 'Databases', link: '/docs/user-guide/databases' },
{ text: 'DNS', link: '/docs/user-guide/dns' },
{ text: 'File manager', link: '/docs/user-guide/file-manager' },
{ text: 'Mail domains', link: '/docs/user-guide/mail-domains' },
{ text: 'Notifications', link: '/docs/user-guide/notifications' },
{ text: 'Packages', link: '/docs/user-guide/packages' },
{ text: 'Statistics', link: '/docs/user-guide/statistics' },
{ text: 'Users', link: '/docs/user-guide/users' },
{ text: 'Web domains', link: '/docs/user-guide/web-domains' },
],
},
{
text: 'Server administration',
collapsed: false,
items: [
{ text: 'Backup & restore', link: '/docs/server-administration/backup-restore' },
{ text: 'Configuration', link: '/docs/server-administration/configuration' },
{ text: 'Customisation', link: '/docs/server-administration/customisation' },
{ text: 'Databases & phpMyAdmin', link: '/docs/server-administration/databases' },
{ text: 'DNS clusters & DNSSEC', link: '/docs/server-administration/dns' },
{ text: 'Email', link: '/docs/server-administration/email' },
{ text: 'File manager', link: '/docs/server-administration/file-manager' },
{ text: 'Firewall', link: '/docs/server-administration/firewall' },
{ text: 'OS upgrades', link: '/docs/server-administration/os-upgrades' },
{ text: 'Rest API', link: '/docs/server-administration/rest-api' },
{ text: 'SSL certificates', link: '/docs/server-administration/ssl-certificates' },
{ text: 'Web templates & caching', link: '/docs/server-administration/web-templates' },
{ text: 'Troubleshooting', link: '/docs/server-administration/troubleshooting' },
],
},
{
text: 'Contributing',
collapsed: false,
items: [
{ text: 'Building Packages', link: '/docs/contributing/building' },
{ text: 'Development', link: '/docs/contributing/development' },
{ text: 'Documentation', link: '/docs/contributing/documentation' },
{ text: 'Quick install app', link: '/docs/contributing/quick-install-app' },
{ text: 'Testing', link: '/docs/contributing/testing' },
{ text: 'Translations', link: '/docs/contributing/translations' },
],
},
{
text: 'Community',
collapsed: false,
items: [
{ text: 'Hestia Nginx Cache', link: '/docs/community/hestia-nginx-cache' },
{
text: 'Ioncube installer for Hestia',
link: '/docs/community/ioncube-hestia-installer',
},
{ text: 'Install script generator', link: '/docs/community/install-script-generator' },
],
},
{
text: 'Reference',
collapsed: false,
items: [
{ text: 'API', link: '/docs/reference/api' },
{ text: 'CLI', link: '/docs/reference/cli' },
],
},
];
}