|
| 1 | +import { defineConfig } from "vitepress"; |
| 2 | + |
| 3 | +const ogDescription = "Modern Chrome Extension Development"; |
| 4 | +const ogTitle = "Vite Plugin Web Extension"; |
| 5 | +const ogUrl = "https://vite-plugin-web-extension.aklinker1.io"; |
| 6 | +const ogImage = |
| 7 | + "https://github.com/aklinker1/vite-plugin-web-extension/raw/main/.github/assets/social-banner.png"; |
| 8 | + |
| 9 | +const helpSidebar = { |
| 10 | + text: "Help", |
| 11 | + items: [ |
| 12 | + { |
| 13 | + text: "Migrate to V2", |
| 14 | + link: "/guide/migration-v2", |
| 15 | + }, |
| 16 | + // { |
| 17 | + // text: "Blog", |
| 18 | + // link: "/blog/", |
| 19 | + // }, |
| 20 | + ], |
| 21 | +}; |
| 22 | + |
| 23 | +export default defineConfig({ |
| 24 | + title: "Vite Plugin Web Extension", |
| 25 | + description: "Modern chrome extension devlopment", |
| 26 | + |
| 27 | + head: [ |
| 28 | + ["link", { rel: "icon", type: "image/svg+xml", href: "/logo.svg" }], |
| 29 | + ["meta", { property: "og:type", content: "website" }], |
| 30 | + ["meta", { property: "og:title", content: ogTitle }], |
| 31 | + ["meta", { property: "og:image", content: ogImage }], |
| 32 | + ["meta", { property: "og:url", content: ogUrl }], |
| 33 | + ["meta", { property: "og:description", content: ogDescription }], |
| 34 | + ["meta", { name: "twitter:card", content: "summary_large_image" }], |
| 35 | + ["meta", { name: "twitter:site", content: "@vite_js" }], |
| 36 | + ["meta", { name: "theme-color", content: "#646cff" }], |
| 37 | + [ |
| 38 | + "script", |
| 39 | + { |
| 40 | + async: "", |
| 41 | + defer: "", |
| 42 | + "data-website-id": "3843019e-a8cb-4609-8e58-a61d69b1c02b", |
| 43 | + src: "https://stats.aklinker1.io/umami.js", |
| 44 | + }, |
| 45 | + ], |
| 46 | + ], |
| 47 | + |
| 48 | + themeConfig: { |
| 49 | + logo: "/logo.svg", |
| 50 | + |
| 51 | + editLink: { |
| 52 | + pattern: |
| 53 | + "https://github.com/aklinker1/vite-plugin-web-extension/edit/main/docs/:path", |
| 54 | + text: "Suggest changes to this page", |
| 55 | + }, |
| 56 | + |
| 57 | + socialLinks: [ |
| 58 | + { |
| 59 | + icon: "github", |
| 60 | + link: "https://github.com/aklinker1/vite-plugin-web-extension", |
| 61 | + }, |
| 62 | + ], |
| 63 | + |
| 64 | + footer: { |
| 65 | + message: `Released under the MIT License.`, |
| 66 | + copyright: "Copyright © 2021-present Aaron Klinker", |
| 67 | + }, |
| 68 | + |
| 69 | + nav: [ |
| 70 | + { text: "Guide", link: "/guide/" }, |
| 71 | + { text: "Config", link: "/config/plugin-options" }, |
| 72 | + { |
| 73 | + text: "v2", |
| 74 | + items: [ |
| 75 | + { text: "v2", link: "/" }, |
| 76 | + { |
| 77 | + text: "v1", |
| 78 | + link: "https://v1.vite-plugin-web-extension.aklinker1.io/", |
| 79 | + }, |
| 80 | + ], |
| 81 | + }, |
| 82 | + ], |
| 83 | + |
| 84 | + sidebar: { |
| 85 | + "/guide/": [ |
| 86 | + { |
| 87 | + text: "Guide", |
| 88 | + items: [ |
| 89 | + { text: "Installation", link: "/guide/" }, |
| 90 | + { text: "Development Cycle", link: "/guide/development" }, |
| 91 | + { |
| 92 | + text: "Building for Production", |
| 93 | + link: "/guide/building-for-production", |
| 94 | + }, |
| 95 | + { |
| 96 | + text: "Frontend Frameworks", |
| 97 | + link: "/guide/frontend-frameworks", |
| 98 | + }, |
| 99 | + { |
| 100 | + text: "Support Multiple Browsers", |
| 101 | + link: "/guide/supporting-multiple-browsers", |
| 102 | + }, |
| 103 | + { |
| 104 | + text: "Configure Browser Startup", |
| 105 | + link: "/guide/configure-browser-startup", |
| 106 | + }, |
| 107 | + { |
| 108 | + text: "Localization", |
| 109 | + link: "/guide/localization", |
| 110 | + }, |
| 111 | + ], |
| 112 | + }, |
| 113 | + helpSidebar, |
| 114 | + ], |
| 115 | + "/config/": [ |
| 116 | + { |
| 117 | + text: "Config", |
| 118 | + items: [{ text: "Plugin Options", link: "/config/plugin-options" }], |
| 119 | + }, |
| 120 | + helpSidebar, |
| 121 | + ], |
| 122 | + }, |
| 123 | + }, |
| 124 | +}); |
0 commit comments