Skip to content

Commit

Permalink
Merge pull request #65 from dreamans/2.0
Browse files Browse the repository at this point in the history
2.0
  • Loading branch information
dreamans authored Mar 31, 2019
2 parents 399da18 + 5b004a5 commit e9a0e73
Show file tree
Hide file tree
Showing 33 changed files with 511 additions and 82 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ SYNCD_BIN_PATH=./output/bin
SYNCD_ETC_PATH=./output/etc
SYNCD_PUBLIC_PATH=./output/public
SYNCD_LOG_PATH=./output/log
SYNCD_RES_PATH=./output/resource

.PHONY: all
all: clean build install
Expand All @@ -13,21 +14,22 @@ linux: clean build-linux install

.PHONY: build
build:
@echo "build start >>>"
@echo "build syncd start >>>"
GOPROXY=https://goproxy.io $(GO_CMD) mod tidy
$(GO_CMD) build -o $(SYNCD_BIN) ./syncd/main.go
@echo ">>> build complete"
@echo ">>> build syncd complete"

.PHONY: install
install:
@echo "install start >>>"
@echo "install syncd start >>>"
mkdir -p $(SYNCD_BIN_PATH)
mv $(SYNCD_BIN) $(SYNCD_BIN_PATH)/syncd
mkdir -p $(SYNCD_ETC_PATH)
cp ./syncd.ini $(SYNCD_ETC_PATH)
cp -r ./public $(SYNCD_PUBLIC_PATH)
mkdir -p $(SYNCD_LOG_PATH)
@echo ">>> install complete"
cp -r ./resource $(SYNCD_RES_PATH)
@echo ">>> install syncd complete"

.PHONY: clean
clean:
Expand Down
23 changes: 0 additions & 23 deletions docs/2.0/index.html

This file was deleted.

1 change: 0 additions & 1 deletion docs/2.0/troubleinstall.md

This file was deleted.

168 changes: 168 additions & 0 deletions docs/assets/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,168 @@
body {
color: rgba(0,0,0,.87);
}
a {
color: #409EFF;
text-decoration: none;
}
a:hover {
color: #66b1ff;
}
.bg-gray {
background-color: #f4f4f4;
}
.bg-dark {
background-color: #171f26;
}
.text-center {
text-align: center;
}
.wrap {
max-width: 1200px;
margin: 0 auto;
}
.icon-large {
color: #666;
font-size: 36px;
}
.iconfont.left {
margin-right: 6px;
}
.header-container {
position: relative;
padding: 20px 0;
color: #fff;
}
.header-container .nav {
color: #fff;
display:flex;
}
.header-container .nav .logo img {
height: 30px;
}
.header-container .nav .nav-list {
display: flex;
align-items: center;
margin-left: 30px;
}
.header-container .nav-link {
color: #fff;
text-decoration: none;
opacity: .7;
padding: 0 15px;
}
.header-container .nav-link:hover {
opacity: 1;
color: #409EFF;
}
.header-container .nav-social {
padding: 0 5px;
}
.header-container .banner {
height: 450px;
opacity: .7;
overflow: hidden;
}
.header-container .banner .h {
font-weight: 300;
}
.header-container .banner .tit {
font-size: 50px;
padding-top: 100px;
}
.header-container .banner .subtit {
font-size: 20px;
}
.header-container .banner .start {
padding: 60px 0;
text-align: center;
}
.header-container .banner .start-link {
background: #283542;
padding: 15px 20px;
margin: 0 10px;
width: 90px;
opacity: 1;
}
.header-container .banner .start-link.main{
background: #1989fa;
}
.header-container .banner .start-link:hover {
color: #fff;
background: #409EFF;
}
.section-container {
padding: 36px 0;
}
.features-list {
padding: 0;
overflow: hidden;
display: flex;
justify-content: space-between;
}
.features-list:not(:first-child) {
margin-top: 48px;
}
.features-list li {
list-style: none;
display: flex;
flex-direction: column;
align-items: center;
width: 280px;
}
.features-list .desc {
margin-top: 24px;
}
.features-tit {
padding: 15px 0;
font-size: 30px;
position: relative;
}
.features-tit:after {
content: '';
width: 50px;
height: 2px;
background-color: #333;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
}
.quick-shell {
padding: 12px;
border-radius: 4px;
background: #282a36;
color: #fff;
width: 720px;
margin: 32px auto;
}
.quick-shell pre {
margin: 0;
padding: 0;
line-height: 1.6;
}
.quick-internet {
color: #fff;
opacity: .8;
}
.license-text {
width: 500px;
line-height: 1.8;
margin: 0 auto;
}
.license-text .logo-large {
margin: 80px auto;
}
.footer-copyright p{
color: #a3a4a9;
}
.footer-copyright p {
margin: 0;
padding: 3px 0;
}
.footer-copyright a {
color: #a3a4a9;
}
.footer-copyright a:hover {
color: #fff;
}
Binary file added docs/assets/img/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions docs/docs/_404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Coming Soon...
1 change: 1 addition & 0 deletions docs/2.0/_sidebar.md → docs/docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* [运行原理](architecture.md)
* [编译安装](install.md)
* [服务配置](setting.md)
* [获取帮助](help.md)
* [安装问题列表](troubleinstall.md)
* 使用方法
* [项目配置](project.md)
Expand Down
4 changes: 3 additions & 1 deletion docs/2.0/architecture.md → docs/docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ Syncd目前仅支持Git仓库部署,并且通过 `git-ssh` 方式从仓库中

## SSH信任

生产服务器与部署服务器之间通过ssh-key建立信任,配置方法请参考 [秘钥配置](server.md?id=秘钥配置)
生产服务器与部署服务器之间通过ssh-key建立信任,配置方法请参考 [秘钥配置](server.md?id=秘钥配置)

[filename](include/footer.md ':include')
3 changes: 3 additions & 0 deletions docs/2.0/assets/css/app.css → docs/docs/assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@
}
.app-img-eg {
width: 800px;
}
.app-logo-img {
width: 60%;
}
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 3 additions & 1 deletion docs/2.0/build.md → docs/docs/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ cd ${env_workspace}
make
cd ./output
tar -zcvf ${env_pack_file} *
```
```

[filename](include/footer.md ':include')
4 changes: 3 additions & 1 deletion docs/2.0/donate.md → docs/docs/donate.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ Syncd 一直在致力于为企业和个人提供简洁高效的持续集成工

### 捐赠列表

--
--

[filename](include/footer.md ':include')
5 changes: 5 additions & 0 deletions docs/docs/help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 获取帮助

Syncd使用交流QQ群①: 725302833

[filename](include/footer.md ':include')
8 changes: 3 additions & 5 deletions docs/2.0/home.md → docs/docs/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ Github: https://github.com/dreamans/syncd

Gitee: https://gitee.com/dreamans/syncd

## 获取帮助

Syncd使用交流QQ群①: 725302833

## 捐赠

Syncd的发展离不开您的支持,[前往捐赠](donate.md)

## LICENSE

本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 LICENSE 文件中。
本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 LICENSE 文件中。

[filename](include/footer.md ':include')
2 changes: 2 additions & 0 deletions docs/docs/include/footer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
----
<p style="color:#999;">文档最后更新时间: {docsify-updated}</p>
46 changes: 46 additions & 0 deletions docs/docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文档 | Syncd</title>
<link rel="icon" href="../assets/img/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Syncd docs">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<link rel="stylesheet" href="assets/css/app.css">
</head>
<body>
<nav>
<a href="/" >首页</a>
<a href="/docs/">文档</a>
<a href="/docs/#/help">获取帮助</a>
<a href="/docs/#/donate">捐赠</a>
<a href="https://github.com/dreamans/syncd" target="_blank">Github</a>
</nav>
<div id="app"></div>
<script>
window.$docsify = {
loadSidebar: true,
homepage: 'home.md',
subMaxLevel: 2,
name: '<img class="app-logo-img" src="../assets/img/logo-blue.svg" />',
notFoundPage: true,
repo: 'dreamans/syncd',
themeColor: '#DB7661',
auto2top: true,
formatUpdated: '{YYYY}-{MM}-{DD}'
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?fb50c5786de11a790e1e2a45618fd7eb";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
Loading

0 comments on commit e9a0e73

Please sign in to comment.