1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
import { execSync } from 'node:child_process';
import { defineConfig } from 'vitepress';
import { en } from './config/en';
import { ja } from './config/ja';
const gitRoot = execSync('git rev-parse --show-toplevel').toString().trim();
const commitHash = execSync(`git log -1 --format=%H -- ${gitRoot}/website/`)
.toString()
.trim()
.slice(0, 7);
export default defineConfig({
cleanUrls: true,
description: 'Next-generation channel chat plugin for Paper/Velocity',
head: [['link', { href: '/favicon.ico', rel: 'icon' }]],
locales: {
root: {
label: 'English',
lang: 'en-US',
themeConfig: {
...en,
footer: {
copyright: 'Copyright © 2026 m1sk9',
message: `<a href="https://github.com/m1sk9/LunaticChat/commit/${commitHash}">LunaticChat/website@${commitHash}</a>`,
},
},
},
ja: {
label: '日本語',
lang: 'ja-JP',
link: '/ja/',
themeConfig: {
...ja,
footer: {
copyright: 'Copyright © 2026 m1sk9',
message: `<a href="https://github.com/m1sk9/LunaticChat/commit/${commitHash}">LunaticChat/website@${commitHash}</a>`,
},
},
},
},
outDir: './dist',
srcDir: 'src',
themeConfig: {
socialLinks: [
{ icon: 'github', link: 'https://github.com/m1sk9/LunaticChat' },
],
},
title: 'LunaticChat',
titleTemplate: 'LunaticChat',
});
|