|
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | + |
| 3 | +const title = "Inertia Django"; |
| 4 | +const description = "Build single page apps, without building an API"; |
| 5 | +const site = "https://inertia-django.dev"; |
| 6 | +const image = `${site}/og_image.png`; |
| 7 | + |
| 8 | +// https://vitepress.dev/reference/site-config |
| 9 | +export default defineConfig({ |
| 10 | + title: title, |
| 11 | + description: description, |
| 12 | + |
| 13 | + cleanUrls: true, |
| 14 | + |
| 15 | + head: [ |
| 16 | + ["link", { rel: "icon", href: "/favicon.ico", sizes: "32x32" }], |
| 17 | + ["link", { rel: "icon", href: "/icon.svg", type: "image/svg+xml" }], |
| 18 | + |
| 19 | + ["meta", { name: "twitter:card", content: "summary_large_image" }], |
| 20 | + ["meta", { name: "twitter:site", content: site }], |
| 21 | + ["meta", { name: "twitter:description", value: description }], |
| 22 | + ["meta", { name: "twitter:image", content: image }], |
| 23 | + |
| 24 | + ["meta", { property: "og:type", content: "website" }], |
| 25 | + ["meta", { property: "og:locale", content: "en_US" }], |
| 26 | + ["meta", { property: "og:site", content: site }], |
| 27 | + ["meta", { property: "og:site_name", content: title }], |
| 28 | + ["meta", { property: "og:image", content: image }], |
| 29 | + ["meta", { property: "og:description", content: description }], |
| 30 | + ], |
| 31 | + |
| 32 | + themeConfig: { |
| 33 | + // https://vitepress.dev/reference/default-theme-config |
| 34 | + nav: [ |
| 35 | + { text: "Home", link: "/" }, |
| 36 | + { text: "Guide", link: "/guide" }, |
| 37 | + { |
| 38 | + text: "Links", |
| 39 | + items: [ |
| 40 | + { |
| 41 | + text: "Official Inertia.js docs", |
| 42 | + link: "https://inertiajs.com", |
| 43 | + }, |
| 44 | + { |
| 45 | + text: "inertia-django on PyPI", |
| 46 | + link: "https://pypi.org/project/inertia-django", |
| 47 | + }, |
| 48 | + ], |
| 49 | + }, |
| 50 | + ], |
| 51 | + |
| 52 | + logo: "/logo.svg", |
| 53 | + |
| 54 | + sidebar: { |
| 55 | + "/guide/": [ |
| 56 | + { |
| 57 | + items: [{ text: "Introduction", link: "/guide" }], |
| 58 | + }, |
| 59 | + { |
| 60 | + text: "Installation", |
| 61 | + items: [ |
| 62 | + { |
| 63 | + text: "Server-side", |
| 64 | + link: "/guide/server-side-setup", |
| 65 | + }, |
| 66 | + { |
| 67 | + text: "Client-side", |
| 68 | + link: "/guide/client-side-setup", |
| 69 | + }, |
| 70 | + ], |
| 71 | + }, |
| 72 | + { |
| 73 | + text: "Core concepts", |
| 74 | + items: [ |
| 75 | + { text: "Who is it for", link: "/guide/who-is-it-for" }, |
| 76 | + { text: "How it works", link: "/guide/how-it-works" }, |
| 77 | + { text: "The protocol", link: "/guide/the-protocol" }, |
| 78 | + ], |
| 79 | + }, |
| 80 | + { |
| 81 | + text: "The basics", |
| 82 | + items: [{ text: "Links", link: "/guide/links" }], |
| 83 | + }, |
| 84 | + { |
| 85 | + text: "Advanced", |
| 86 | + items: [ |
| 87 | + { |
| 88 | + text: "Scroll management", |
| 89 | + link: "/guide/scroll-management", |
| 90 | + }, |
| 91 | + { |
| 92 | + text: "Code splitting", |
| 93 | + link: "/guide/code-splitting", |
| 94 | + }, |
| 95 | + ], |
| 96 | + }, |
| 97 | + ], |
| 98 | + }, |
| 99 | + |
| 100 | + socialLinks: [ |
| 101 | + { |
| 102 | + icon: "github", |
| 103 | + link: "https://github.com/inertiajs/inertia-django", |
| 104 | + }, |
| 105 | + ], |
| 106 | + }, |
| 107 | +}); |
0 commit comments