import { defineConfig } from "vitepress"; import { tabsMarkdownPlugin } from "vitepress-plugin-tabs"; import sidebar from "../../../docs/_sidebar.json"; // https://vitepress.dev/reference/site-config export default defineConfig(({ mode }) => { const prod = mode === "production"; return { title: "QMK Firmware", description: "Documentation for QMK Firmware", srcDir: prod ? "docs" : "../../docs", outDir: "../../.build/docs", cleanUrls: true, markdown: { config(md) { md.use(tabsMarkdownPlugin); }, }, vite: { resolve: { preserveSymlinks: true, }, }, themeConfig: { // https://vitepress.dev/reference/default-theme-config logo: { light: "/qmk-logo-light.svg", dark: "/qmk-logo-dark.svg", }, title: 'QMK Firmware', nav: [{ text: "Home", link: "/" }], search: { provider: "local", }, sidebar: sidebar, socialLinks: [ { icon: { svg: '' }, link: "https://reddit.com/r/olkb" }, { icon: "discord", link: "https://discord.gg/qmk" }, { icon: "github", link: "https://github.com/qmk/qmk_firmware" }, ], } }; });