-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathconfig.ts
More file actions
98 lines (89 loc) · 2.97 KB
/
config.ts
File metadata and controls
98 lines (89 loc) · 2.97 KB
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';
export default defineConfig({
title: 'date-and-time',
description: 'The simplest, most intuitive date and time library',
base: '/date-and-time/',
ignoreDeadLinks: true,
head: [
['link', { rel: 'icon', href: '/date-and-time/favicon.ico' }]
],
themeConfig: {
logo: '/logo.png',
nav: [
{ text: 'Guide', link: '/guide/' },
{ text: 'API Reference', link: '/api/' },
{ text: 'Locales', link: '/locales' },
{ text: 'Timezones', link: '/timezones' },
{ text: 'Plugins', link: '/plugins' },
{ text: 'Migration', link: '/migration' },
{
text: 'Links',
items: [
{ text: 'GitHub', link: 'https://github.com/knowledgecode/date-and-time' },
{ text: 'npm', link: 'https://www.npmjs.com/package/date-and-time' }
]
}
],
sidebar: {
'/guide/': [
{
text: 'Getting Started',
items: [
{ text: 'Introduction', link: '/guide/' },
{ text: 'Installation', link: '/guide/installation' },
{ text: 'Quick Start', link: '/guide/quick-start' }
]
}
],
'/api/': [
{
text: 'Core Functions',
items: [
{ text: 'Overview', link: '/api/' },
{ text: 'format()', link: '/api/format' },
{ text: 'parse()', link: '/api/parse' },
{ text: 'compile()', link: '/api/compile' },
{ text: 'preparse()', link: '/api/preparse' },
{ text: 'isValid()', link: '/api/isValid' },
{ text: 'transform()', link: '/api/transform' },
{ text: 'addYears()', link: '/api/addYears' },
{ text: 'addMonths()', link: '/api/addMonths' },
{ text: 'addDays()', link: '/api/addDays' },
{ text: 'addHours()', link: '/api/addHours' },
{ text: 'addMinutes()', link: '/api/addMinutes' },
{ text: 'addSeconds()', link: '/api/addSeconds' },
{ text: 'addMilliseconds()', link: '/api/addMilliseconds' },
{ text: 'subtract()', link: '/api/subtract' },
]
},
{
text: 'Utility Functions',
items: [
{ text: 'isLeapYear()', link: '/api/utils/isLeapYear' },
{ text: 'isSameDay()', link: '/api/utils/isSameDay' },
{ text: 'getDaysInMonth()', link: '/api/utils/getDaysInMonth' },
{ text: 'getISOWeekYear()', link: '/api/utils/getISOWeekYear' },
{ text: 'getISOWeek()', link: '/api/utils/getISOWeek' },
]
}
]
},
socialLinks: [
{ icon: 'github', link: 'https://github.com/knowledgecode/date-and-time' }
],
footer: {
message: 'Released under the MIT License.',
copyright: 'Copyright © 2015 KNOWLEDGECODE'
},
search: {
provider: 'local'
}
},
markdown: {
theme: {
light: 'github-light',
dark: 'github-dark'
},
lineNumbers: true
}
})