diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 8ced07a..a0c3518 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -1,43 +1,5 @@ import { defineConfig } from "vitepress" -const nav = [ - { - text: "Guide", - link: "/guide/what-is-parsek" - }, - { - text: "Reference", - link: "/reference" - }, - { - text: "Modules", - link: "/modules" - } -] - -export const sidebar = [ - { - text: "Guide", - items: [ - { text: "What is Parsek?", link: "/guide/what-is-parsek" }, - { text: "Quick Start", link: "/guide/quick-start" }, - { - text: "Features", - items: [ - { text: "Routing", link: "/guide/features/routing" }, - { text: "Plugins", link: "/guide/features/plugins" }, - { text: "Services", link: "/guide/features/services" }, - { text: "Health Check System", link: "/guide/features/health-check-system" } - ] - }, - { text: "Configuration", link: "/guide/configuration" }, - { text: "Going Further", link: "/guide/going-further" }, - { text: "Examples", link: "/guide/examples" }, - { text: "Deployment", link: "/guide/deployment" } - ] - } -] - export default defineConfig({ srcDir: "src", @@ -71,28 +33,115 @@ export default defineConfig({ ], themeConfig: { - nav, - sidebar, + search: { + provider: "local" + }, socialLinks: [ { icon: "github", link: "https://github.com/StatuParsek" }, { icon: "twitter", link: "https://twitter.com/StatuAgency" } ], - - search: { - provider: "local" - }, - - editLink: { - pattern: "https://github.com/StatuParsek/website/edit/main/:path", - text: "Edit this page on GitHub" - }, - footer: { copyright: `Copyright © 2023 - ${new Date().getFullYear()} Parsek` } }, + locales: { + root: { + label: "English", + lang: "en", + themeConfig: { + nav: [ + { + text: "Guide", + link: "/guide/what-is-parsek" + }, + { + text: "Reference", + link: "/reference" + }, + { + text: "Modules", + link: "/modules" + } + ], + sidebar: [ + { + text: "Guide", + items: [ + { text: "What is Parsek?", link: "/guide/what-is-parsek" }, + { text: "Quick Start", link: "/guide/quick-start" }, + { + text: "Features", + items: [ + { text: "Routing", link: "/guide/features/routing" }, + { text: "Plugins", link: "/guide/features/plugins" }, + { text: "Services", link: "/guide/features/services" }, + { text: "Health Check System", link: "/guide/features/health-check-system" } + ] + }, + { text: "Configuration", link: "/guide/configuration" }, + { text: "Going Further", link: "/guide/going-further" }, + { text: "Examples", link: "/guide/examples" }, + { text: "Deployment", link: "/guide/deployment" } + ] + } + ], + editLink: { + pattern: "https://github.com/StatuParsek/website/edit/main/:path", + text: "Edit this page on GitHub" + } + } + }, + tr: { + label: "Turkish", + lang: "tr", + link: "/tr", + themeConfig: { + nav: [ + { + text: "Kılavuz", + link: "/tr/guide/what-is-parsek" + }, + { + text: "Referans", + link: "/tr/reference" + }, + { + text: "Modüller", + link: "/tr/modules" + } + ], + sidebar: [ + { + text: "Kılavuz", + items: [ + { text: "Parsek Nedir?", link: "/tr/guide/what-is-parsek" }, + { text: "Hızlı Başlangıç", link: "/tr/guide/quick-start" }, + { + text: "Özellikler", + items: [ + { text: "Yönlendirme", link: "/tr/guide/features/routing" }, + { text: "Eklentiler", link: "/tr/guide/features/plugins" }, + { text: "Servisler", link: "/tr/guide/features/services" }, + { text: "Sağlık Kontrol Sistemi", link: "/tr/guide/features/health-check-system" } + ] + }, + { text: "Yapılandırma", link: "/tr/guide/configuration" }, + { text: "Daha İleri Git", link: "/tr/guide/going-further" }, + { text: "Örnekler", link: "/tr/guide/examples" }, + { text: "Dağıtım", link: "/tr/guide/deployment" } + ] + } + ], + editLink: { + pattern: "https://github.com/StatuParsek/website/edit/main/:path", + text: "Bu sayfayı GitHub'da düzenle" + } + } + } + }, + markdown: { theme: "github-dark", config(md) {} diff --git a/src/tr/index.md b/src/tr/index.md new file mode 100644 index 0000000..c3871ca --- /dev/null +++ b/src/tr/index.md @@ -0,0 +1,23 @@ +--- +layout: home + +hero: + name: Parsek + text: Kotlin için Rest API Yapı Strüktürü + tagline: Dakikalar İçinde Kotlin ile Rest API Oluşturun + actions: + - theme: brand + text: Parsek Nedir? + link: /tr/guide/what-is-parsek + - theme: alt + text: Hızlı Başlangıç + link: /tr/guide/quick-start + +features: + - title: Modüler Kod Tabanı + details: Lorem ipsum dolor sit amet, consectetur adipiscing elit + - title: Sadece Rest API + details: Lorem ipsum dolor sit amet, consectetur adipiscing elit + - title: Temel Geliştirme + details: Lorem ipsum dolor sit amet, consectetur adipiscing elit +---