import { defineConfig } from 'vitepress'

export default defineConfig({
    title: 'ONOX Panel',
    description: 'Türkiye için cPanel/Plesk muadili açık modern hosting kontrol paneli',
    lang: 'tr-TR',
    base: '/docs/',
    head: [
        ['link', { rel: 'icon', type: 'image/svg+xml', href: '/images/onox-mark.svg' }],
        ['link', { rel: 'icon', href: '/favicon.ico' }],
        ['meta', { name: 'theme-color', content: '#0D0E12' }],
    ],
    cleanUrls: true,
    lastUpdated: true,

    locales: {
        root: {
            label: 'Türkçe',
            lang: 'tr',
            link: '/tr/',
            themeConfig: {
                nav: [
                    { text: 'Başlangıç', link: '/tr/getting-started/ilk-kurulum' },
                    { text: 'Müşteri', link: '/tr/customer/giris' },
                    { text: 'Admin', link: '/tr/admin/overview' },
                    { text: 'API', link: '/tr/api/giris' },
                    { text: 'Geliştirici', link: '/tr/developers/architecture' },
                    {
                        text: 'v0.18',
                        items: [
                            { text: 'GitHub', link: 'https://github.com/onoxsoft/panel' },
                            { text: 'Changelog', link: '/tr/changelog' },
                            { text: 'Lisans', link: '/tr/license' },
                        ]
                    },
                ],
                sidebar: {
                    '/tr/getting-started/': [
                        {
                            text: 'Başlangıç', items: [
                                { text: 'İlk Kurulum', link: '/tr/getting-started/ilk-kurulum' },
                                { text: 'Sistem Gereksinimleri', link: '/tr/getting-started/sistem-gereksinimleri' },
                                { text: 'AlmaLinux 9 Kurulum', link: '/tr/getting-started/almalinux-9-kurulum' },
                            ]
                        },
                    ],
                    '/tr/customer/': [
                        {
                            text: 'Müşteri Paneli', items: [
                                { text: 'Giriş', link: '/tr/customer/giris' },
                                { text: 'Alan Adları', link: '/tr/customer/alan-adlari' },
                                { text: 'E-posta', link: '/tr/customer/e-posta' },
                                { text: 'Veritabanı', link: '/tr/customer/veritabani' },
                                { text: 'SSL', link: '/tr/customer/ssl' },
                                { text: 'Dosya Yöneticisi', link: '/tr/customer/dosya-yoneticisi' },
                                { text: 'Yedekleme', link: '/tr/customer/yedekleme' },
                                { text: 'İki Adımlı Doğrulama', link: '/tr/customer/2fa' },
                                { text: 'WordPress Toolkit', link: '/tr/customer/wordpress-toolkit' },
                                { text: 'SSS', link: '/tr/customer/faq' },
                            ]
                        },
                    ],
                    '/tr/admin/': [
                        {
                            text: 'Sistem Yöneticisi', items: [
                                { text: 'Genel Bakış', link: '/tr/admin/overview' },
                                { text: 'Kurulum', link: '/tr/admin/kurulum' },
                                { text: 'Release & Deployment', link: '/tr/admin/release-deployment' },
                                { text: 'Hesap Yönetimi', link: '/tr/admin/hesap-yonetimi' },
                                { text: 'Bayi Yönetimi', link: '/tr/admin/bayi-yonetimi' },
                                { text: 'Paket Yönetimi', link: '/tr/admin/paket-yonetimi' },
                                { text: 'MultiPHP', link: '/tr/admin/multiphp' },
                                { text: 'SSL/AutoSSL', link: '/tr/admin/ssl-autossl' },
                                { text: 'Monitoring', link: '/tr/admin/monitoring' },
                                { text: 'Backup', link: '/tr/admin/backup' },
                                { text: 'Cluster (Multi-Server)', link: '/tr/admin/cluster' },
                                { text: 'Mail Server', link: '/tr/admin/mail-server' },
                                { text: 'cPanel Migration', link: '/tr/admin/cpanel-migration' },
                                { text: 'WHMCS Entegrasyon', link: '/tr/admin/whmcs-entegrasyon' },
                            ]
                        },
                    ],
                    '/tr/api/': [
                        {
                            text: 'REST API v1', items: [
                                { text: 'Giriş', link: '/tr/api/giris' },
                                { text: 'Kimlik Doğrulama', link: '/tr/api/auth' },
                                { text: 'Accounts', link: '/tr/api/accounts' },
                                { text: 'Domains', link: '/tr/api/domains' },
                                { text: 'Databases', link: '/tr/api/databases' },
                                { text: 'DNS', link: '/tr/api/dns' },
                                { text: 'SSL', link: '/tr/api/ssl' },
                                { text: 'Rate Limiting', link: '/tr/api/ratelimit' },
                                { text: 'Hata Kodları', link: '/tr/api/errors' },
                            ]
                        },
                    ],
                    '/tr/developers/': [
                        {
                            text: 'Geliştirici', items: [
                                { text: 'Mimari', link: '/tr/developers/architecture' },
                                { text: 'Sysapi Bridge', link: '/tr/developers/sysapi-bridge' },
                                { text: 'Özelleştirme', link: '/tr/developers/extending' },
                                { text: 'Events & Webhooks', link: '/tr/developers/events-webhooks' },
                                { text: 'Katkıda Bulunma', link: '/tr/developers/contributing' },
                            ]
                        },
                    ],
                },
                socialLinks: [
                    { icon: 'github', link: 'https://github.com/onoxsoft/panel' },
                ],
                footer: {
                    message: 'AGPL-3.0 ile yayınlandı',
                    copyright: 'Copyright © 2026 ONOXSOFT',
                },
                search: { provider: 'local' },
                editLink: {
                    pattern: 'https://github.com/onoxsoft/panel/edit/main/docs/:path',
                    text: 'Bu sayfayı düzenle',
                },
                lastUpdatedText: 'Son güncelleme',
                outline: { label: 'Bu sayfada', level: [2, 3] },
            },
        },
        en: {
            label: 'English',
            lang: 'en',
            link: '/en/',
            themeConfig: {
                nav: [
                    { text: 'Getting Started', link: '/en/getting-started' },
                    { text: 'API', link: '/en/api/' },
                ],
            },
        },
    },
})
