forked from gotgit/gotgit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
498 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
/screencast.html | ||
/index.html | ||
/demo*.html | ||
/errata.html | ||
*.json | ||
_site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
markdown: rdiscount | ||
pygments: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | ||
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | ||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | ||
<title>Git权威指南 - {{ page.title }}</title> | ||
{% for style in page.stylesheets %} | ||
<link rel="stylesheet" href="{{ style }}" type="text/css" media="screen" charset="utf-8"/> | ||
{% endfor %} | ||
{% for script in page.javascripts %} | ||
<script src="{{ script }}"></script> | ||
{% endfor %} | ||
<link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8"/> | ||
<link rel="stylesheet" href="/stylesheets/syntax.css" type="text/css" media="screen" charset="utf-8"/> | ||
</head> | ||
<body> | ||
<div id='wrapper'> | ||
<div id='header'> | ||
<h1><a href='/'>World Hello</a></h1> | ||
|
||
<div id='menu'> | ||
<ul> | ||
<li><a href='/' id='home_link' title='Home'>首页</a></li> | ||
<li><a href='/blog.html' id='blog_link' title='Blog'>博客</a></li> | ||
<li><a href='/doc/' id='docs_link' title='Docs'>文章</a></li> | ||
<li><a href='/about.html' id='about_link' title='About'>关于</a></li> | ||
<li><a href='http://github.com/gotgit' target='_blank' title='GitHub' rel='me' id='github_link'>GitHub</a></li> | ||
<li><a href='http://weibo.com/gotgit' title='微博' target='_blank' id='weibo_link'>微博</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="home_box" id='gotgit_left'> | ||
<div id='submenu'> | ||
<h2>目录</h2> | ||
<ul> | ||
<li><a href="index.html">关于本书</a> | ||
<li><a href="bookstore.html">如何购买</a> | ||
<li><a href="recommends.html">业界评价</a> | ||
<li><a href="errata.html">本书勘误</a> | ||
<li><a href="demo.html">操作回放</a> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="home_box" id='gotgit_right'> | ||
|
||
{{ content }} | ||
<div class='clearfix'></div> | ||
</div> | ||
</div> | ||
<div id='footer'> | ||
Copyright © 2011 Jiang Xin. Hosted by <a href='http://github.com/gotgit/gotgit.github.com/' target='_blank'>GitHub</a> and powered by <a href='http://github.com/mojombo/jekyll'>Jekyll</a>. Templates from <a href='http://github.com/mbleigh/mbleigh.github.com/' target='_blank'>Michael Bleigh</a>. | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
layout: master | ||
javascripts: [ "/javascripts/jquery.js", "/javascripts/jquery.github.js" ] | ||
--- | ||
|
||
{{ content }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
layout: master | ||
stylesheets: [ "/gotgit/html/inc/common.css", "/gotgit/html/inc/tty.css" ] | ||
javascripts: [ "/gotgit/html/inc/prototype.js", "/gotgit/html/inc/showtty.js" ] | ||
--- | ||
|
||
<div class="document"> | ||
<h2>{{ page.title }}</h2> | ||
<div id="tty">Enable JavaScript to see the animation.</div> | ||
<script> | ||
showTTYURL( document.getElementById("tty"), "{{ page.json_file }}" ); | ||
</script> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
layout: master_with_jquery | ||
title: 如何购买 | ||
--- | ||
|
||
<a name="bookstore"></a> | ||
|
||
## 如何购买 | ||
|
||
* China-pub 互动出版网 | ||
<http://product.china-pub.com/194010> | ||
|
||
* 卓越网 | ||
<http://www.amazon.cn/gp/product/B0058FLC40/> | ||
|
||
* 当当网 | ||
<http://product.dangdang.com/product.aspx?product_id=21108669> | ||
|
||
* 京东商城 | ||
<http://book.360buy.com/10697183.html> | ||
|
||
<a class="click-more"></a> | ||
|
||
* 中关村图书大厦网上书店 | ||
<http://www.zgcbb.com/detail.aspx?bid=760959> | ||
|
||
* 广购书城:广州购书中心网上书店 | ||
<http://www.gg1994.com/Product.do?id=1120692> | ||
|
||
* 北京图书大厦网络书店 | ||
<http://www.bjbb.com/bookdetail.aspx?pid=3775188> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
layout: master | ||
title: 操作回放 | ||
--- | ||
|
||
<a name="playback"></a> | ||
|
||
## 操作回放 | ||
|
||
本书的部分操作用 ttyrec 录制,查看请访问:[《Git权威指南》——操作回放](screencast.html)。 | ||
读者除了可以看到“活”的操作外,还可以从回放当中复制操作的代码。 | ||
|
||
如果该网页不存在、无法访问,或是您想在本地回放,或者想在其中添加您自己的操作回放, | ||
有两种方式: | ||
|
||
方式一:你可以从 Github 上克隆本版本库,编译相关网页。 | ||
|
||
<a class="click-more"></a> | ||
|
||
* 克隆版本库。 | ||
|
||
$ git clone git://github.com/gotgit/gotgit.git | ||
|
||
* 确认系统中安装了 ruby 和 perl,并通过 rubygems 安装 redcarpet。 | ||
|
||
$ gem install redcarpet | ||
|
||
* 执行编译。 | ||
|
||
$ rake | ||
|
||
* 点击生成的页面:[《Git权威指南》——操作回放](screencast.html)。 | ||
|
||
方式二:版本库中本来就保存了一份已编译文档,只不过缺省没有克隆出来。 | ||
|
||
> 如果您的系统上缺乏相应的工具软件而无法成功编译, | ||
在版本库中实际上保存了一份已经编译好的文件,可以通过Git下载, | ||
并检出到工作区。 | ||
|
||
<a class="click-more"></a> | ||
|
||
* 克隆版本库。 | ||
|
||
$ git clone git://github.com/gotgit/gotgit.git | ||
|
||
* 添加新的配置,以便获取首次克隆未获取到的远程分支。 | ||
|
||
$ git config --add remote.origin.fetch +refs/remotes/*:refs/remotes/* | ||
|
||
* 执行获取操作。 | ||
|
||
$ git fetch | ||
|
||
* 检出分支 refs/remotes/compiled 分支中的内容到工作区。 | ||
|
||
$ git checkout compiled -- . | ||
|
||
* 执行重置,将已编译文档撤出暂存区,当然工作区中仍然保留。 | ||
|
||
$ git reset | ||
|
||
* 点击检出的页面:[《Git权威指南》——操作回放](screencast.html)。 | ||
|
||
如果您自己想把自己录制的操作与他人共享,可以将录制的文件以 ".ttyrec" 扩展名保存到 ttyrec 目录下。 | ||
执行 rake 命令,可以自动生成新的播放页面。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
*.html | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.