|
| 1 | +import { defineConfig } from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + title: "Kubernetes 练习手册", |
| 6 | + description: "A tutorials for k8s", |
| 7 | + themeConfig: { |
| 8 | + // https://vitepress.dev/reference/default-theme-config |
| 9 | + nav: [ |
| 10 | + { text: 'Home', link: '/' }, |
| 11 | + { text: 'Examples', link: '/markdown-examples' } |
| 12 | + ], |
| 13 | + |
| 14 | + sidebar: [ |
| 15 | + { |
| 16 | + text: '开始', |
| 17 | + items: [ |
| 18 | + { text: '准备工作', link: 'docs/pre' }, |
| 19 | + ] |
| 20 | + }, |
| 21 | + { |
| 22 | + text: 'Kubernetes', |
| 23 | + items: [ |
| 24 | + { text: 'Container', link: 'docs/container' }, |
| 25 | + { text: 'Pod', link: 'docs/pod' }, |
| 26 | + { text: 'Deployment', link: 'docs/deployment' }, |
| 27 | + { text: 'Service', link: 'docs/service' }, |
| 28 | + { text: 'Ingress', link: 'docs/ingress' }, |
| 29 | + { text: 'Namespace', link: 'docs/namespace' }, |
| 30 | + { text: 'ConfigMap', link: 'docs/configmap' }, |
| 31 | + { text: 'Secret', link: 'docs/secret' }, |
| 32 | + { text: 'Job', link: 'docs/job' }, |
| 33 | + ] |
| 34 | + }, |
| 35 | + { |
| 36 | + text: 'Helm', |
| 37 | + items: [ |
| 38 | + { text: 'Helm', link: 'docs/helm' }, |
| 39 | + ] |
| 40 | + }, |
| 41 | + { |
| 42 | + text: 'Others', |
| 43 | + items: [ |
| 44 | + { text: 'Dashboard', link: 'docs/dashboard' }, |
| 45 | + ] |
| 46 | + } |
| 47 | + ], |
| 48 | + |
| 49 | + socialLinks: [ |
| 50 | + { icon: 'github', link: 'https://github.com/guangzhengli/k8s-tutorials' }, |
| 51 | + { icon: 'twitter', link: 'https://twitter.com/iguangzhengli' }, |
| 52 | + { icon: { svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>'}, |
| 53 | + link: 'https://guangzhengli.com' }, |
| 54 | + { icon: { svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coffee"><path d="M17 8h1a4 4 0 1 1 0 8h-1"/><path d="M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z"/><line x1="6" x2="6" y1="2" y2="4"/><line x1="10" x2="10" y1="2" y2="4"/><line x1="14" x2="14" y1="2" y2="4"/></svg>'}, |
| 55 | + link: 'https://guangzhengli.com/sponsors' }, |
| 56 | + ] |
| 57 | + } |
| 58 | +}) |
0 commit comments