Skip to content

Commit b6f2517

Browse files
committed
fix(docs): upgrade vuepress to 1.0.1
1 parent 55fd844 commit b6f2517

File tree

5 files changed

+2292
-1877
lines changed

5 files changed

+2292
-1877
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ lib/
55
gh-pages/
66
npm-debug.log
77
test/coverage
8+
.temp/

docs/.vuepress/config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
const pkg = require('../../package.json');
22

3-
module.exports = {
3+
module.exports = ctx => ({
44
base:'/vue-i18next/',
55
title: pkg.name,
66
description: pkg.description,
77

88
head: [
99
['meta', { name: 'theme-color', content: '#3eaf7c' }],
1010
],
11-
serviceWorker: false,
11+
theme: '@vuepress/vue',
1212
themeConfig: {
1313
repo: 'panter/vue-i18next',
1414
editLinks: true,
@@ -50,4 +50,4 @@ module.exports = {
5050
}
5151
}
5252
}
53-
}
53+
})

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ features:
1010
details: In addition to simple translation, support localization such as pluralization, number, datetime ... etc
1111
- title: Component-oriented
1212
details: You can manage locale messages on single file component
13-
footer: MIT Licensed | Copyright © 2019 panter ag
13+
footer: MIT Licensed | Copyright © 2019-present panter ag
1414
---

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@
3131
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
3232
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
3333
"test:types": "tsc -p typings",
34-
"docs:dev": "vuepress dev docs",
35-
"docs:clean": "rm -rf docs/.vuepress/**",
36-
"docs:build": "vuepress build docs"
34+
"docs:dev": "vuepress dev docs --temp .temp",
35+
"docs:build": "vuepress build docs --temp .temp"
3736
},
3837
"main": "./dist/vue-i18next.common.js",
3938
"module": "./dist/vue-i18next.esm.js",
@@ -50,6 +49,8 @@
5049
"@babel/preset-env": "^7.2.3",
5150
"@babel/preset-stage-2": "^7.0.0",
5251
"@types/i18next": "^8.4.3",
52+
"@vuepress/plugin-pwa": "^1.0.1",
53+
"@vuepress/theme-vue": "^1.0.1",
5354
"babel-eslint": "^10.0.1",
5455
"babel-loader": "^8.0.5",
5556
"babel-plugin-add-module-exports": "^1.0.0",
@@ -58,13 +59,11 @@
5859
"chai": "^3.5.0",
5960
"coveralls": "^2.13.1",
6061
"cross-env": "^3.0.0",
61-
"css-loader": "^0.25.0",
6262
"eslint": "^3.12.2",
6363
"eslint-config-airbnb": "^13.0.0",
6464
"eslint-plugin-import": "^2.2.0",
6565
"eslint-plugin-jsx-a11y": "^2.2.3",
6666
"eslint-plugin-react": "^6.8.0",
67-
"file-loader": "^0.9.0",
6867
"gh-pages": "^1.0.0",
6968
"i18next": "^6.0.1",
7069
"jasmine": "^2.5.3",
@@ -100,10 +99,9 @@
10099
"sinon-chai": "^2.8.0",
101100
"typescript": "^2.8.3",
102101
"vue": "^2.5.16",
103-
"vue-class-component": "^6.2.0",
104-
"vue-loader": "^10.0.0",
105-
"vue-template-compiler": "^2.1.0",
106-
"vuepress": "^0.13.0",
102+
"vue-class-component": "^7.1.0",
103+
"vue-template-compiler": "^2.5.16",
104+
"vuepress": "^1.0.1",
107105
"webpack": "^4.28.1",
108106
"webpack-cli": "^3.2.1",
109107
"webpack-dev-server": "^3.1.14"

0 commit comments

Comments
 (0)