Skip to content

Commit d99b9d6

Browse files
author
Dipak Sarkar
committed
created new doc for vue 3
1 parent 66c2eac commit d99b9d6

File tree

19 files changed

+1254
-545
lines changed

19 files changed

+1254
-545
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ npm-debug.log*
1010
yarn-debug.log*
1111
yarn-error.log*
1212
pnpm-debug.log*
13+
node_modules
14+
.temp
15+
.cache

docs/.vitepress/config.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

docs/.vitepress/enhanceApp.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

docs/.vitepress/theme/index.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/.vitepress/theme/style.css

Lines changed: 0 additions & 21 deletions
This file was deleted.

docs/.vitepress/theme/components/Example.vue renamed to docs/.vuepress/components/Example.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default {
103103
prefix: '$',
104104
suffix: ' %',
105105
precision: 2,
106-
null_value: '',
106+
nullValue: '',
107107
masked: false,
108108
reverseFill: false
109109
},

docs/.vuepress/config.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
const { description } = require("../../package");
2+
const { path } = require("@vuepress/utils");
3+
4+
module.exports = {
5+
/**
6+
* Ref:https://v2.vuepress.vuejs.org/reference/config.html#title
7+
*/
8+
title: "Vue Number Format",
9+
/**
10+
* Ref:https://v2.vuepress.vuejs.org/reference/config.html#description
11+
*/
12+
description: description,
13+
14+
/**
15+
* Extra tags to be injected to the page HTML `<head>`
16+
*
17+
* ref:https://v2.vuepress.vuejs.org/reference/config.html#head
18+
*/
19+
head: [
20+
["meta", { name: "theme-color", content: "#3eaf7c" }],
21+
["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
22+
[
23+
"meta",
24+
{ name: "apple-mobile-web-app-status-bar-style", content: "black" }
25+
],
26+
[
27+
"meta",
28+
{
29+
name: "google-site-verification",
30+
content: "Tf6UVeu-ZmZtGqB5tdcYymZ79101gyGKcpzqwWhDb1U"
31+
}
32+
]
33+
],
34+
35+
// Specify the port to use for the dev server.
36+
port: 8081,
37+
38+
/**
39+
* Theme configuration, here is the default theme configuration for VuePress.
40+
*
41+
* ref:https://v2.vuepress.vuejs.org/reference/config.html#themeconfig
42+
*/
43+
// base: '/vue-number-format/',
44+
45+
// theme and its config
46+
theme: "@vuepress/theme-default",
47+
themeConfig: {
48+
logo: "/favicon.png",
49+
editLinks: false,
50+
repo: "coders-tm/vue-number-format",
51+
docsDir: "docs",
52+
lastUpdated: true,
53+
sidebar: {
54+
"/guide/": [
55+
{
56+
title: "Guide",
57+
collapsable: false,
58+
children: [
59+
"/guide/README.md",
60+
"/guide/config.md",
61+
"/guide/example.md"
62+
]
63+
}
64+
]
65+
}
66+
},
67+
68+
/**
69+
* Apply plugins,ref:https://v2.vuepress.vuejs.org/reference/config.html#plugins
70+
*/
71+
plugins: [
72+
[
73+
"@vuepress/register-components",
74+
{
75+
componentsDir: path.resolve(__dirname, "./components")
76+
}
77+
],
78+
[
79+
"@vuepress/plugin-google-analytics",
80+
{
81+
id: "UA-76508942-4"
82+
}
83+
]
84+
]
85+
};

docs/.vuepress/enhanceApp.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Client app enhancement file.
3+
*
4+
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
5+
*/
6+
7+
import number from "../../src";
8+
import Quasar from "quasar";
9+
import "quasar/dist/quasar.min.css";
10+
11+
export default ({ app }) => {
12+
// ...apply enhancements for the site.
13+
app.use(Quasar, {
14+
config: {
15+
dark: false // or Boolean true/false
16+
}
17+
});
18+
app.use(number);
19+
};
File renamed without changes.

docs/.vuepress/styles/index.styl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Custom Styles here.
3+
*
4+
* ref:https://v1.vuepress.vuejs.org/config/#index-styl
5+
*/
6+
7+
.home .hero img
8+
max-width 450px!important
9+
h1
10+
font-size: 2.2rem !important
11+
12+
h1, h2, h3, h4, h5, h6
13+
font-weight: 600 !important
14+
line-height: 1.25 !important
15+
16+
.theme-default-content:not(.custom), .page-edit, .page-nav
17+
max-width: 840px !important

0 commit comments

Comments
 (0)