Create gh-pages branch via GitHub

This commit is contained in:
Joe Chen
2013-04-13 20:36:21 -07:00
commit 89dc44bc58
7 changed files with 414 additions and 0 deletions

BIN
images/bkg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
images/blacktocat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

97
index.html Normal file
View File

@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<title>The-way-to-go_ZH_CN by Unknwon</title>
</head>
<body>
<header>
<div class="container">
<h1>The-way-to-go_ZH_CN</h1>
<h2>《The Way to Go》中文译本中文正式名《Go入门指南》</h2>
<section id="downloads">
<a href="https://github.com/Unknwon/the-way-to-go_ZH_CN/zipball/master" class="btn">Download as .zip</a>
<a href="https://github.com/Unknwon/the-way-to-go_ZH_CN/tarball/master" class="btn">Download as .tar.gz</a>
<a href="https://github.com/Unknwon/the-way-to-go_ZH_CN" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
</section>
</div>
</header>
<div class="container">
<section id="main_content">
<h1>《Go入门指南》</h1>
<p>在接触 Go 语言之后,对这门编程语言非常着迷,期间也陆陆续续开始一些帮助国内编程爱好者了解和发展 Go 语言的工作,比如开始录制视频教程<a href="https://github.com/Unknwon/go-fundamental-programming">《Go编程基础》</a>。但由于目前国内并没有比较好的 Go 语言书籍,而国外的优秀书籍因为英文的缘故在一定程度上也为不少 Go 语言爱好者带来了一些学习上的困扰,不仅为了加快扩散 Go 爱好者的国内群体,同时充分贯彻 <a href="https://github.com/astaxie">Asta谢</a> 的为己为人精神本人在完成阅读这本名叫《The Way to Go》之后决定每天抽出一点时间来进行翻译的工作并且以开源的形式免费分享给有需要的 Go 语言爱好者。</p>
<p>尽管该书对目前 Go 语言版本来说有小部分内容相对过时,但是为当下不可多得的好书,部分内容已获得作者同意根据当前 Go 语言版本进行修改。</p>
<p>该翻译版本已获得原作者Ivo Balbaert本人授权并表示支持开源事业的发展</p>
<h2>翻译进度</h2>
<p>2.6 <a href="eBook/02.6.md">安装目录清单</a></p>
<h2>支持本书</h2>
<p>如果你喜欢本书《Go入门指南》你可以参与到本书的翻译或纠正工作中来一同完善本书并帮助壮大 Go 语言在国内的学习群体,给大家提供更好的学习资源。</p>
<h2>交流</h2>
<p>欢迎大家加入QQ群259316004不要被群名字迷惑了这里牛人可多了</p>
<p>Golang中文社区<a href="http://mygolang.com">mygolang.com</a></p>
<p>Go语言学习园地<a href="http://studygolang.com/">studygolang.com</a></p>
<p>Golang中国<a href="http://www.golang.tc/">golang.tc</a></p>
<h3>新人守则</h3>
<ul>
<li>2012 年 3 月 28 日以前的博文中的内容基本过时,不要再看</li>
<li>符合等式 <strong><em>百度+思考+失败+翻墙+谷歌+尝试=解决</em></strong> 的问题最好不要发问</li>
<li>不要问 Go 现在的发展前景如何</li>
<li>不要问学习 Go 语言能不能找到工作</li>
<li>不要问现在 Go 语言有哪些实际应用</li>
</ul><h2>致谢</h2>
<ul>
<li>本书原作者Ivo Balbaert</li>
<li>协助翻译:
<ul>
<li><a href="https://github.com/zhanming">zhanming</a></li>
</ul>
</li>
</ul><h2>授权许可</h2>
<p>除特别声明外,本书中的内容使用 <a href="http://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0 License</a>(创作共用 署名-相同方式共享0 许可协议)授权,代码遵循 <a href="https://github.com/astaxie/build-web-application-with-golang/blob/master/LICENSE.md">BSD 3-Clause License</a>3 项条款的 BSD 许可协议)。</p>
<h2>开始阅读</h2>
<p><a href="./eBook/preface.md">前言</a></p>
</section>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-40109089-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>

1
javascripts/main.js Normal file
View File

@@ -0,0 +1 @@
console.log('This would be the main JS file.');

1
params.json Normal file
View File

@@ -0,0 +1 @@
{"name":"The-way-to-go_ZH_CN","tagline":"《The Way to Go》中文译本中文正式名《Go入门指南》","body":"《Go入门指南》\r\n===================\r\n\r\n在接触 Go 语言之后,对这门编程语言非常着迷,期间也陆陆续续开始一些帮助国内编程爱好者了解和发展 Go 语言的工作,比如开始录制视频教程[《Go编程基础》](https://github.com/Unknwon/go-fundamental-programming)。但由于目前国内并没有比较好的 Go 语言书籍,而国外的优秀书籍因为英文的缘故在一定程度上也为不少 Go 语言爱好者带来了一些学习上的困扰,不仅为了加快扩散 Go 爱好者的国内群体,同时充分贯彻 [Asta谢](https://github.com/astaxie) 的为己为人精神本人在完成阅读这本名叫《The Way to Go》之后决定每天抽出一点时间来进行翻译的工作并且以开源的形式免费分享给有需要的 Go 语言爱好者。\r\n\r\n尽管该书对目前 Go 语言版本来说有小部分内容相对过时,但是为当下不可多得的好书,部分内容已获得作者同意根据当前 Go 语言版本进行修改。\r\n\r\n该翻译版本已获得原作者Ivo Balbaert本人授权并表示支持开源事业的发展\r\n\r\n##翻译进度\r\n2.6 [安装目录清单](eBook/02.6.md)\r\n\r\n##支持本书\r\n如果你喜欢本书《Go入门指南》你可以参与到本书的翻译或纠正工作中来一同完善本书并帮助壮大 Go 语言在国内的学习群体,给大家提供更好的学习资源。\r\n\r\n##交流\r\n欢迎大家加入QQ群259316004不要被群名字迷惑了这里牛人可多了\r\n\r\nGolang中文社区[mygolang.com](http://mygolang.com)\r\n\r\nGo语言学习园地[studygolang.com](http://studygolang.com/)\r\n\r\nGolang中国[golang.tc](http://www.golang.tc/)\r\n\r\n###新人守则\r\n- 2012 年 3 月 28 日以前的博文中的内容基本过时,不要再看\r\n- 符合等式 ***百度+思考+失败+翻墙+谷歌+尝试=解决*** 的问题最好不要发问\r\n- 不要问 Go 现在的发展前景如何\r\n- 不要问学习 Go 语言能不能找到工作\r\n- 不要问现在 Go 语言有哪些实际应用\r\n\r\n##致谢\r\n- 本书原作者Ivo Balbaert\r\n- 协助翻译:\r\n\t- [zhanming](https://github.com/zhanming)\r\n\r\n##授权许可\r\n除特别声明外本书中的内容使用 [CC BY-SA 3.0 License](http://creativecommons.org/licenses/by-sa/3.0/)(创作共用 署名-相同方式共享0 许可协议)授权,代码遵循 [BSD 3-Clause License](https://github.com/astaxie/build-web-application-with-golang/blob/master/LICENSE.md)3 项条款的 BSD 许可协议)。\r\n\r\n##开始阅读\r\n[前言](./eBook/preface.md)","google":"UA-40109089-1","note":"Don't delete this file! It's used internally to help with page regeneration."}

View File

@@ -0,0 +1,68 @@
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kn { font-weight: bold } /* Keyword.Namespace */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #CBDFFF } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
.type-csharp .highlight .k { color: #0000FF }
.type-csharp .highlight .kt { color: #0000FF }
.type-csharp .highlight .nf { color: #000000; font-weight: normal }
.type-csharp .highlight .nc { color: #2B91AF }
.type-csharp .highlight .nn { color: #000000 }
.type-csharp .highlight .s { color: #A31515 }
.type-csharp .highlight .sc { color: #A31515 }

247
stylesheets/stylesheet.css Normal file
View File

@@ -0,0 +1,247 @@
body {
margin: 0;
padding: 0;
background: #151515 url("../images/bkg.png") 0 0;
color: #eaeaea;
font: 16px;
line-height: 1.5;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
}
/* General & 'Reset' Stuff */
.container {
width: 90%;
max-width: 600px;
margin: 0 auto;
}
section {
display: block;
margin: 0 0 20px 0;
}
h1, h2, h3, h4, h5, h6 {
margin: 0 0 20px;
}
li {
line-height: 1.4 ;
}
/* Header, <header>
header - container
h1 - project name
h2 - project description
*/
header {
background: rgba(0, 0, 0, 0.1);
width: 100%;
border-bottom: 1px dashed #b5e853;
padding: 20px 0;
margin: 0 0 40px 0;
}
header h1 {
font-size: 30px;
line-height: 1.5;
margin: 0 0 0 -40px;
font-weight: bold;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #b5e853;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1),
0 0 10px rgba(181, 232, 83, 0.1);
letter-spacing: -1px;
-webkit-font-smoothing: antialiased;
}
header h1:before {
content: "./ ";
font-size: 24px;
}
header h2 {
font-size: 18px;
font-weight: 300;
color: #666;
}
#downloads .btn {
display: inline-block;
text-align: center;
margin: 0;
}
/* Main Content
*/
#main_content {
width: 100%;
-webkit-font-smoothing: antialiased;
}
section img {
max-width: 100%
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
color: #b5e853;
letter-spacing: -0.03em;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
0 0 5px rgba(181, 232, 83, 0.1),
0 0 10px rgba(181, 232, 83, 0.1);
}
#main_content h1 {
font-size: 30px;
}
#main_content h2 {
font-size: 24px;
}
#main_content h3 {
font-size: 18px;
}
#main_content h4 {
font-size: 14px;
}
#main_content h5 {
font-size: 12px;
text-transform: uppercase;
margin: 0 0 5px 0;
}
#main_content h6 {
font-size: 12px;
text-transform: uppercase;
color: #999;
margin: 0 0 5px 0;
}
dt {
font-style: italic;
font-weight: bold;
}
ul li {
list-style: none;
}
ul li:before {
content: ">>";
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
font-size: 13px;
color: #b5e853;
margin-left: -37px;
margin-right: 21px;
line-height: 16px;
}
blockquote {
color: #aaa;
padding-left: 10px;
border-left: 1px dotted #666;
}
pre {
background: rgba(0, 0, 0, 0.9);
border: 1px solid rgba(255, 255, 255, 0.15);
padding: 10px;
font-size: 14px;
color: #b5e853;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
text-wrap: normal;
overflow: auto;
overflow-y: hidden;
}
table {
width: 100%;
margin: 0 0 20px 0;
}
th {
text-align: left;
border-bottom: 1px dashed #b5e853;
padding: 5px 10px;
}
td {
padding: 5px 10px;
}
hr {
height: 0;
border: 0;
border-bottom: 1px dashed #b5e853;
color: #b5e853;
}
/* Buttons
*/
.btn {
display: inline-block;
background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.3), rgba(35, 35, 35, 0.3) 50%, rgba(10, 10, 10, 0.3) 50%, rgba(0, 0, 0, 0.3));
padding: 8px 18px;
border-radius: 50px;
border: 2px solid rgba(0, 0, 0, 0.7);
border-bottom: 2px solid rgba(0, 0, 0, 0.7);
border-top: 2px solid rgba(0, 0, 0, 1);
color: rgba(255, 255, 255, 0.8);
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
font-size: 13px;
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn:hover {
background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.6), rgba(35, 35, 35, 0.6) 50%, rgba(10, 10, 10, 0.8) 50%, rgba(0, 0, 0, 0.8));
}
.btn .icon {
display: inline-block;
width: 16px;
height: 16px;
margin: 1px 8px 0 0;
float: left;
}
.btn-github .icon {
opacity: 0.6;
background: url("../images/blacktocat.png") 0 0 no-repeat;
}
/* Links
a, a:hover, a:visited
*/
a {
color: #63c0f5;
text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);
}
/* Clearfix */
.cf:before, .cf:after {
content:"";
display:table;
}
.cf:after {
clear:both;
}
.cf {
zoom:1;
}