|
| 1 | +import { defineConfig, type DefaultTheme } from "vitepress"; |
| 2 | +import { version } from "../../package.json"; |
| 3 | + |
| 4 | +export default defineConfig({ |
| 5 | + lang: "en-US", |
| 6 | + title: "Hestia Control Panel", |
| 7 | + description: "Open-source web server control panel.", |
| 8 | + |
| 9 | + lastUpdated: true, |
| 10 | + cleanUrls: "with-subfolders", |
| 11 | + |
| 12 | + head: [ |
| 13 | + ["link", { rel: "icon", sizes: "any", href: "/favicon.ico" }], |
| 14 | + ["link", { rel: "icon", type: "image/svg+xml", sizes: "16x16", href: "/logo.svg" }], |
| 15 | + ["link", { rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon.png" }], |
| 16 | + ["link", { rel: "manifest", href: "/site.webmanifest" }], |
| 17 | + ["meta", { name: "theme-color", content: "#b7236a" }], |
| 18 | + ], |
| 19 | + |
| 20 | + themeConfig: { |
| 21 | + logo: "/logo.svg", |
| 22 | + |
| 23 | + nav: nav(), |
| 24 | + |
| 25 | + socialLinks: [ |
| 26 | + { icon: "github", link: "https://github.com/hestiacp/hestiacp" }, |
| 27 | + { icon: "discord", link: "https://discord.gg/nXRUZch" }, |
| 28 | + { icon: "twitter", link: "https://twitter.com/HestiaPanel" }, |
| 29 | + { icon: "facebook", link: "https://www.facebook.com/hestiacp" }, |
| 30 | + ], |
| 31 | + |
| 32 | + sidebar: { "/docs/": sidebarDocs() }, |
| 33 | + |
| 34 | + outline: [2, 3], |
| 35 | + |
| 36 | + editLink: { |
| 37 | + pattern: "https://github.com/hestiacp/hestiacp-docs/edit/main/docs/:path", |
| 38 | + text: "Edit this page on GitHub", |
| 39 | + }, |
| 40 | + |
| 41 | + footer: { |
| 42 | + message: "Released under the GPLv3 License.", |
| 43 | + copyright: "Copyright © 2019-present Hestia Control Panel", |
| 44 | + }, |
| 45 | + |
| 46 | + // algolia: { |
| 47 | + // appId: "REPLACE_ME", |
| 48 | + // apiKey: "REPLACE_ME", |
| 49 | + // indexName: "REPLACE_ME", |
| 50 | + // }, |
| 51 | + }, |
| 52 | +}); |
| 53 | + |
| 54 | +function nav(): DefaultTheme.NavItem[] { |
| 55 | + return [ |
| 56 | + { text: "Features", link: "/features.md" }, |
| 57 | + { text: "Docs", link: "/docs/introduction/getting-started.md", activeMatch: "/docs/" }, |
| 58 | + { text: "Team", link: "/team.md" }, |
| 59 | + { text: "Demo", link: "https://demo.hestiacp.com:8083/" }, |
| 60 | + { text: "Forum", link: "https://forum.hestiacp.com/" }, |
| 61 | + { text: "Donate", link: "/donate.md" }, |
| 62 | + { |
| 63 | + text: `v${version}`, |
| 64 | + items: [ |
| 65 | + { |
| 66 | + text: "Changelog", |
| 67 | + link: "https://github.com/hestiacp/hestiacp/blob/main/CHANGELOG.md", |
| 68 | + }, |
| 69 | + { |
| 70 | + text: "Contributing", |
| 71 | + link: "https://github.com/hestiacp/hestiacp/blob/main/CONTRIBUTING.md", |
| 72 | + }, |
| 73 | + { |
| 74 | + text: "Security policy", |
| 75 | + link: "https://github.com/hestiacp/hestiacp/blob/main/SECURITY.md", |
| 76 | + }, |
| 77 | + ], |
| 78 | + }, |
| 79 | + ]; |
| 80 | +} |
| 81 | + |
| 82 | +function sidebarDocs(): DefaultTheme.SidebarGroup[] { |
| 83 | + return [ |
| 84 | + { |
| 85 | + text: "Introduction", |
| 86 | + collapsible: true, |
| 87 | + items: [ |
| 88 | + { text: "Getting started", link: "/docs/introduction/getting-started.md" }, |
| 89 | + { text: "Best practices", link: "/docs/introduction/best-practices.md" }, |
| 90 | + ], |
| 91 | + }, |
| 92 | + { |
| 93 | + text: "User guide", |
| 94 | + collapsible: true, |
| 95 | + items: [ |
| 96 | + { text: "Account", link: "/docs/user-guide/account.md" }, |
| 97 | + { text: "Backups", link: "/docs/user-guide/backups.md" }, |
| 98 | + { text: "Cron jobs", link: "/docs/user-guide/cron-jobs.md" }, |
| 99 | + { text: "Databases", link: "/docs/user-guide/databases.md" }, |
| 100 | + { text: "DNS", link: "/docs/user-guide/dns.md" }, |
| 101 | + { text: "File manager", link: "/docs/user-guide/file-manager.md" }, |
| 102 | + { text: "Mail domains", link: "/docs/user-guide/mail-domains.md" }, |
| 103 | + { text: "Notifications", link: "/docs/user-guide/notifications.md" }, |
| 104 | + { text: "Packages", link: "/docs/user-guide/packages.md" }, |
| 105 | + { text: "Statistics", link: "/docs/user-guide/statistics.md" }, |
| 106 | + { text: "Users", link: "/docs/user-guide/users.md" }, |
| 107 | + { text: "Web domains", link: "/docs/user-guide/web-domains.md" }, |
| 108 | + ], |
| 109 | + }, |
| 110 | + { |
| 111 | + text: "Server administration", |
| 112 | + collapsible: true, |
| 113 | + items: [ |
| 114 | + { text: "Backup & restore", link: "/docs/server-administration/backup-restore.md" }, |
| 115 | + { text: "Configuration", link: "/docs/server-administration/configuration.md" }, |
| 116 | + { text: "Customisation", link: "/docs/server-administration/customisation.md" }, |
| 117 | + { text: "Databases & phpMyAdmin", link: "/docs/server-administration/databases.md" }, |
| 118 | + { text: "DNS clusters & DNSSEC", link: "/docs/server-administration/dns.md" }, |
| 119 | + { text: "Email", link: "/docs/server-administration/email.md" }, |
| 120 | + { text: "File manager", link: "/docs/server-administration/file-manager.md" }, |
| 121 | + { text: "Firewall", link: "/docs/server-administration/firewall.md" }, |
| 122 | + { text: "OS upgrades", link: "/docs/server-administration/os-upgrades.md" }, |
| 123 | + { text: "Rest API", link: "/docs/server-administration/rest-api.md" }, |
| 124 | + { text: "SSL certificates", link: "/docs/server-administration/ssl-certificates.md" }, |
| 125 | + { text: "Web templates & caching", link: "/docs/server-administration/web-templates.md" }, |
| 126 | + { text: "Troubleshooting", link: "/docs/server-administration/troubleshooting.md" }, |
| 127 | + ], |
| 128 | + }, |
| 129 | + { |
| 130 | + text: "Contributing", |
| 131 | + collapsible: true, |
| 132 | + items: [ |
| 133 | + { text: "Development", link: "/docs/contributing/development.md" }, |
| 134 | + { text: "Documentation", link: "/docs/contributing/documentation.md" }, |
| 135 | + { text: "Quick install app", link: "/docs/contributing/quick-install-app.md" }, |
| 136 | + { text: "Testing", link: "/docs/contributing/testing.md" }, |
| 137 | + { text: "Translations", link: "/docs/contributing/translations.md" }, |
| 138 | + ], |
| 139 | + }, |
| 140 | + { |
| 141 | + text: "Community", |
| 142 | + collapsible: true, |
| 143 | + items: [ |
| 144 | + { text: "Hestia Nginx Cache", link: "/docs/community/hestia-nginx-cache.md" }, |
| 145 | + { |
| 146 | + text: "Ioncube installer for Hestia", |
| 147 | + link: "/docs/community/ioncube-hestia-installer.md", |
| 148 | + }, |
| 149 | + { text: "Install script generator", link: "/docs/community/install-script-generator.md" }, |
| 150 | + ], |
| 151 | + }, |
| 152 | + { |
| 153 | + text: "Reference", |
| 154 | + collapsible: true, |
| 155 | + items: [ |
| 156 | + { text: "API", link: "/docs/reference/api.md" }, |
| 157 | + { text: "CLI", link: "/docs/reference/cli.md" }, |
| 158 | + ], |
| 159 | + }, |
| 160 | + ]; |
| 161 | +} |
0 commit comments