-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathconfig.mts
73 lines (72 loc) · 1.87 KB
/
config.mts
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { defineConfig } from 'vitepress'
import { getRulesWithCategories } from '../../scripts/lib/rules'
import '../../scripts/update-rule-docs'
import '../../scripts/update-index-docs'
// https://vitepress.dev/reference/site-config
export default async () => {
const rules = await getRulesWithCategories()
return defineConfig({
base: '/',
title: 'eslint-plugin-vue-i18n',
description: 'ESLint plugin for Vue I18n',
head: [['meta', { name: 'theme-color', content: '#3eaf7c' }]],
lastUpdated: true,
themeConfig: {
editLink: {
pattern:
'https://github.com/intlify/eslint-plugin-vue-i18n/edit/master/docs/:path',
text: 'Edit this page on GitHub'
},
search: {
provider: 'local'
},
nav: [
{
text: 'Support Intlify',
items: [
{
text: 'GitHub Sponsors',
link: 'https://github.com/sponsors/kazupon'
},
{
text: 'Patreon',
link: 'https://www.patreon.com/kazupon'
}
]
},
{
text: 'Release Notes',
link: 'https://github.com/intlify/eslint-plugin-vue-i18n/releases'
}
],
sidebar: [
{
text: 'Introduction',
link: '/intro'
},
{
text: 'Getting Started',
link: '/started'
},
{
text: 'Available Rules',
link: '/rules/'
},
...rules.map(({ category, rules }) => ({
text: `Rules in ${category}`,
collapsed: false,
items: rules.map(rule => ({
text: rule.name,
link: `/rules/${rule.name}`
}))
}))
],
socialLinks: [
{
icon: 'github',
link: 'https://github.com/intlify/eslint-plugin-vue-i18n'
}
]
}
})
}