Skip to content

Commit 25b6aca

Browse files
committed
updated docs
1 parent d8b6cba commit 25b6aca

22 files changed

+1490
-3474
lines changed

docs/.vuepress/client.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineClientConfig } from '@vuepress/client'
2+
import VueNumber from '../../src'
3+
4+
import 'virtual:windi.css'
5+
6+
export default defineClientConfig({
7+
enhance({ app, router, siteData }) {
8+
app.use(VueNumber)
9+
},
10+
setup() {},
11+
rootComponents: []
12+
})
File renamed without changes.

docs/.vuepress/config.js

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
import { defineUserConfig } from 'vuepress'
2+
import { defaultTheme } from 'vuepress'
3+
import { viteBundler } from '@vuepress/bundler-vite'
4+
import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics'
5+
import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
6+
import { searchPlugin } from '@vuepress/plugin-search'
7+
import { getDirname, path } from '@vuepress/utils'
8+
import { resolve } from 'path'
9+
import WindiCSS from 'vite-plugin-windicss'
10+
import formsPlugin from 'windicss/plugin/forms'
11+
import pkg from '../../package.json'
12+
13+
const __dirname = getDirname(import.meta.url)
14+
15+
export default defineUserConfig({
16+
lang: 'en-US',
17+
title: 'Vue Number Format',
18+
description: pkg.description,
19+
head: [
20+
['meta', { name: 'theme-color', content: '#3eaf7c' }],
21+
['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
22+
['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
23+
[
24+
'meta',
25+
{
26+
name: 'google-site-verification',
27+
content: 'Tf6UVeu-ZmZtGqB5tdcYymZ79101gyGKcpzqwWhDb1U'
28+
}
29+
]
30+
],
31+
32+
// bundler options
33+
bundler: viteBundler({
34+
viteOptions: {
35+
plugins: [
36+
WindiCSS({
37+
preflight: false,
38+
scan: {
39+
include: [resolve(__dirname, './**/*.{vue,html,md}')],
40+
exclude: ['node_modules/**/*', '.git/**/*']
41+
},
42+
theme: {
43+
extend: {
44+
colors: {
45+
primary: '#3eaf7c'
46+
}
47+
}
48+
},
49+
plugins: [formsPlugin]
50+
})
51+
]
52+
},
53+
vuePluginOptions: {}
54+
}),
55+
56+
// theme and its config
57+
theme: defaultTheme({
58+
logo: '/favicon.png',
59+
editLinks: false,
60+
repo: 'coders-tm/vue-number-format',
61+
lastUpdated: true,
62+
sidebar: {
63+
'/guide/': [
64+
{
65+
title: 'Guide',
66+
collapsable: false,
67+
children: ['/guide/README.md', '/guide/config.md', '/guide/integration.md', '/guide/play-ground.md']
68+
}
69+
]
70+
}
71+
}),
72+
darkMode: false,
73+
plugins: [
74+
searchPlugin({
75+
locales: {
76+
'/': {
77+
placeholder: 'Search'
78+
}
79+
}
80+
}),
81+
registerComponentsPlugin({
82+
componentsDir: path.resolve(__dirname, './components')
83+
}),
84+
googleAnalyticsPlugin({
85+
id: 'UA-76508942-4'
86+
})
87+
]
88+
})
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)