forked from conventional-changelog/commitlint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
98 lines (90 loc) · 2.27 KB
/
config.ts
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
import {defineConfig} from 'vitepress';
import {tabsMarkdownPlugin} from 'vitepress-plugin-tabs';
// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'commitlint',
description: 'Lint commit messages',
head: [['link', {rel: 'icon', type: 'image/png', href: '/assets/icon.png'}]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: '/assets/icon.png',
nav: [
{text: 'Home', link: '/'},
{text: 'Guides', link: '/guides/getting-started'},
{text: 'Reference', link: '/reference/configuration'},
],
sidebar: [
{
text: 'Guides',
base: '/guides',
items: [
{text: 'Getting started', link: '/getting-started'},
{text: 'Local setup', link: '/local-setup'},
{text: 'CI setup', link: '/ci-setup'},
{text: 'Use prompt', link: '/use-prompt'},
],
},
{
text: 'Reference',
base: '/reference',
items: [
{text: 'CLI', link: '/cli'},
{text: 'Configuration', link: '/configuration'},
{text: 'Rules configuration', link: '/rules-configuration'},
{text: 'Rules', link: '/rules'},
{text: 'Plugins', link: '/plugins'},
{text: 'Prompt', link: '/prompt'},
{text: 'Examples', link: '/examples'},
{text: 'Community projects', link: '/community-projects'},
],
},
{
text: 'API',
base: '/api',
collapsed: true,
items: [
{text: '@commitlint/load', link: '/load'},
{text: '@commitlint/read', link: '/read'},
{text: '@commitlint/lint', link: '/lint'},
{text: '@commitlint/format', link: '/format'},
],
},
{
text: 'Concepts',
base: '/concepts',
collapsed: true,
items: [
{text: 'Commit-conventions', link: '/commit-conventions'},
{text: 'Shareable config', link: '/shareable-config'},
],
},
{
text: 'Support',
base: '/support',
collapsed: true,
items: [
{text: 'Releases', link: '/releases'},
{text: 'Upgrade commitlint', link: '/upgrade'},
],
},
{
text: 'Attributions',
link: '/attributions',
},
],
socialLinks: [
{
icon: 'github',
link: 'https://github.com/conventional-changelog/commitlint',
},
],
search: {
provider: 'local',
},
},
markdown: {
config(md) {
md.use(tabsMarkdownPlugin);
},
},
});