[Doc] deploy 1.x site

This commit is contained in:
陈嘉涵 2019-05-21 19:34:27 +08:00
parent 373e9bbc2f
commit 99c4f14022
6 changed files with 10 additions and 10 deletions

View File

@ -108,7 +108,7 @@ Vue.use(Vant);
> If you configured babel-plugin-import, you won't be allowed to import all components. > If you configured babel-plugin-import, you won't be allowed to import all components.
See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart). See more in [Quickstart](https://youzan.github.io/vant/1.x#/en-US/quickstart).
## Contribution ## Contribution
@ -120,8 +120,8 @@ Modern browsers and Android 4.0+, iOS 6+.
## Links ## Links
* [Documentation](https://youzan.github.io/vant) * [Documentation](https://youzan.github.io/vant/1.x)
* [Changelog](https://youzan.github.io/vant#/en-US/changelog) * [Changelog](https://youzan.github.io/vant/1.x#/en-US/changelog)
* [Vant Demo](https://github.com/youzan/vant-demo) * [Vant Demo](https://github.com/youzan/vant-demo)
* [Vant Weapp: Weapp UI](https://github.com/youzan/vant-weapp) * [Vant Weapp: Weapp UI](https://github.com/youzan/vant-weapp)
* [Zent: PC UI base on React](https://www.youzanyun.com/zanui/zent) * [Zent: PC UI base on React](https://www.youzanyun.com/zanui/zent)

View File

@ -111,7 +111,7 @@ Vue.use(Vant);
> 注意:配置 babel-plugin-import 插件后将不允许导入所有组件 > 注意:配置 babel-plugin-import 插件后将不允许导入所有组件
更多内容请参考 [快速上手](https://youzan.github.io/vant#/zh-CN/quickstart). 更多内容请参考 [快速上手](https://youzan.github.io/vant/1.x#/zh-CN/quickstart).
## 贡献代码 ## 贡献代码
@ -125,8 +125,8 @@ Vue.use(Vant);
## 链接 ## 链接
* [详细文档](https://youzan.github.io/vant) * [详细文档](https://youzan.github.io/vant/1.x)
* [更新日志](https://youzan.github.io/vant#/zh-CN/changelog) * [更新日志](https://youzan.github.io/vant/1.x#/zh-CN/changelog)
* [Vant Demo: 示例工程](https://github.com/youzan/vant-demo) * [Vant Demo: 示例工程](https://github.com/youzan/vant-demo)
* [Vant Weapp: 小程序 UI](https://github.com/youzan/vant-weapp) * [Vant Weapp: 小程序 UI](https://github.com/youzan/vant-weapp)
* [Zent: PC 端 React UI](https://www.youzanyun.com/zanui/zent) * [Zent: PC 端 React UI](https://www.youzanyun.com/zanui/zent)

View File

@ -7,7 +7,7 @@ module.exports = Object.assign(config, {
mode: 'production', mode: 'production',
output: { output: {
path: path.join(__dirname, '../docs/dist'), path: path.join(__dirname, '../docs/dist'),
publicPath: 'https://youzan.github.io/vant/', publicPath: 'https://youzan.github.io/vant/1.x/',
filename: '[name].[hash:8].js', filename: '[name].[hash:8].js',
chunkFilename: 'async_[name].[chunkhash:8].js' chunkFilename: 'async_[name].[chunkhash:8].js'
} }

View File

@ -11,7 +11,7 @@ module.exports = {
href: '#/' href: '#/'
}, },
nav: { nav: {
'Vue 组件': 'https://youzan.github.io/vant/', 'Vue 组件': 'https://youzan.github.io/vant/1.x/',
'小程序组件': 'https://youzan.github.io/vant-weapp/', '小程序组件': 'https://youzan.github.io/vant-weapp/',
lang: { lang: {
text: 'En', text: 'En',

View File

@ -24,7 +24,7 @@
"build:style-entry": "node build/build-style-entry.js", "build:style-entry": "node build/build-style-entry.js",
"build:changelog": "vant-doc changelog ./changelog.generated.md", "build:changelog": "vant-doc changelog ./changelog.generated.md",
"build:lib": "node build/build-lib.js", "build:lib": "node build/build-lib.js",
"build:site": "rimraf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.js && gh-pages -d docs/dist", "build:site": "rimraf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.js && gh-pages -d docs/dist --dest 1.x",
"test": "jest", "test": "jest",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"test:clear-cache": "jest --clearCache", "test:clear-cache": "jest --clearCache",

View File

@ -62,7 +62,7 @@
<van-cell <van-cell
:title="$t('cell')" :title="$t('cell')"
is-link is-link
url="//youzan.github.io/vant/mobile.html" url="//youzan.github.io/vant/1.x/mobile.html"
/> />
<van-cell <van-cell
:title="$t('cell')" :title="$t('cell')"