From febe6e8ffa840c998d341a943bbec944a8e11af7 Mon Sep 17 00:00:00 2001 From: "cinwell.li" Date: Thu, 20 Oct 2016 20:55:49 +0800 Subject: [PATCH] Upload: fix links in the doc (#553) --- .travis.yml | 2 ++ build/deploy-ci.sh | 4 ++-- examples/docs/zh-cn/upload.md | 6 +++--- examples/index.tpl | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 76cf7e2c3..74f211786 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,8 @@ cache: - travis_phantomjs before_install: - export TRAVIS_COMMIT_MSG="[deploy] $(git log --format='%h - %B' --no-merges -n 1)" +- export TRAVIS_COMMIT_USER="$(git log --no-merges -n 1 --format=%an)" +- export TRAVIS_COMMIT_EMAIL="$(git log --no-merges -n 1 --format=%ae)" - export PHANTOMJS_VERSION=2.1.1 - export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH - if [ $(phantomjs --version) != $PHANTOMJS_VERSION ]; then rm -rf $PWD/travis_phantomjs; diff --git a/build/deploy-ci.sh b/build/deploy-ci.sh index 22711b183..784b0fa2d 100644 --- a/build/deploy-ci.sh +++ b/build/deploy-ci.sh @@ -5,8 +5,8 @@ if [ "$TRAVIS_BRANCH" = "master" ] && [ "$GH_TOKEN" ]; then mkdir temp_web cd temp_web git clone https://$GH_TOKEN@github.com/ElementUI/dev.git && cd dev - git config user.name "$(git log --no-merges -n 1 --format=%an)" - git config user.email "$(git log --no-merges -n 1 --format=%ae)" + git config user.name "$TRAVIS_COMMIT_USER" + git config user.email "$TRAVIS_COMMIT_EMAIL" rm -rf * cp -rf ../../examples/element-ui/** . git add -A . diff --git a/examples/docs/zh-cn/upload.md b/examples/docs/zh-cn/upload.md index 81fd4a994..18ec98ccc 100644 --- a/examples/docs/zh-cn/upload.md +++ b/examples/docs/zh-cn/upload.md @@ -46,7 +46,7 @@ ::: demo 通过 slot 你可以传入自定义的上传按钮类型和文字提示。 ```html 点击上传 @@ -74,7 +74,7 @@ ::: demo 将 `type` 属性指定为 'drag' 可以将上传控件变为支持拖拽的形式,并且你可以通过 `multiple` 属性来控制是否支持多选,`on-preview` 和 `on-remove` 是一个钩子函数,分别在点击上传后的文件链接和点击移除上传后的文件后被调用。 ```html
<% if (process.env.NODE_ENV === 'production') { %> - - <% } %> + + <% } %> <% if (process.env.NODE_ENV === 'production') { %>