1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:50:04 +08:00

Merge pull request #1343 from wsdjeg/wiki_cn

Add cn wiki for gitee
This commit is contained in:
Wang Shidong 2018-01-29 07:39:27 -06:00 committed by GitHub
commit 54bf408f2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 45 additions and 9 deletions

View File

@ -24,6 +24,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
fi
else
if [ "$LINT" = "jekyll" ]; then
./wiki/async.sh
./wiki/async.sh "en"
./wiki/async.sh "cn"
fi
fi

View File

@ -1,11 +1,29 @@
#!/usr/bin/env bash
main () {
case "$1" in
en)
cd wiki/en/
git init
git add .
git commit -m "Update wiki"
git remote add SpaceVimWikiEn https://SpaceVimBot:${BOTSECRET}@github.com/SpaceVim/SpaceVim.wiki.git
git push -f -u SpaceVimWikiEn master
cd -
rm -rf ./wiki/en/.git/
exit 0
;;
cn)
cd wiki/cn/
git init
git add .
git commit -m "Update wiki"
git remote add SpaceVimWikiCn https://SpaceVimBot:${BOTSECRET}@gitee.com/spacevim/SpaceVim.wiki.git
git push -f -u SpaceVimWikiCn master
cd -
rm -rf ./wiki/cn/.git/
exit 0
esac
}
cd wiki/
git init
git add .
git commit -m "Update wiki"
git remote add SpaceVimWiki https://SpaceVimBot:${BOTSECRET}@github.com/SpaceVim/SpaceVim.wiki.git
git push -f -u SpaceVimWiki master
cd ..
rm -rf ./wiki/.git/
main $@

17
wiki/cn/Home.md Normal file
View File

@ -0,0 +1,17 @@
欢迎来到 <img src="https://spacevim.org/SpaceVim.png" height="17" width="17"> **SpaceVim** 维基, 一个关于 SpaceVim的资源导航!
- [简介](Introduction)
- [特性](Features)
## 用户
- [用户文档](https://spacevim.org/documentation)
- [快速入门](quick-start-guide)
- [获取帮助](getting-help)
- [安装](Installing-SpaceVim)
- [更新](Update)
- [社区](http://spacevim.org/community/)
## 开发者
这一wiki是通过 [`wiki/cn/`](https://github.com/SpaceVim/SpaceVim/tree/master/wiki/cn) 目录自动生成的, 如果你想更新wiki可以像主仓库提交 PR。