39 lines
782 B
TypeScript
39 lines
782 B
TypeScript
import { defineConfig } from "vitepress";
|
|
|
|
//@ts-ignore
|
|
const host = process.env.TAURI_DEV_HOST;
|
|
|
|
// https://vitepress.dev/reference/site-config
|
|
export default defineConfig({
|
|
title: "zh grammar",
|
|
description: "Chinese grammar excerpts and interactive app",
|
|
lang: "zh-CN",
|
|
themeConfig: {
|
|
// https://vitepress.dev/reference/default-theme-config
|
|
outline: {
|
|
level: "deep",
|
|
},
|
|
lastUpdated: {
|
|
formatOptions: {
|
|
dateStyle: "full",
|
|
timeStyle: "short",
|
|
hourCycle: "h24",
|
|
},
|
|
},
|
|
},
|
|
vite: {
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true,
|
|
host: host || false,
|
|
hmr: host
|
|
? {
|
|
protocol: "ws",
|
|
host,
|
|
port: 5174,
|
|
}
|
|
: undefined,
|
|
},
|
|
},
|
|
});
|