diff --git a/_layouts/master.html b/_layouts/master.html index 1eb4ffd12..7d44d3c2d 100644 --- a/_layouts/master.html +++ b/_layouts/master.html @@ -11,6 +11,7 @@ {% for script in page.javascripts %} {% endfor %} + @@ -35,11 +36,11 @@

World Hello

diff --git a/_layouts/ttyrecord.html b/_layouts/ttyrecord.html index 13fcec9ce..fd6c8b90b 100644 --- a/_layouts/ttyrecord.html +++ b/_layouts/ttyrecord.html @@ -1,7 +1,8 @@ --- layout: master -stylesheets: [ "/gotgit/html/inc/common.css", "/gotgit/html/inc/tty.css" ] -javascripts: [ "/gotgit/html/inc/prototype.js", "/gotgit/html/inc/showtty.js" ] +stylesheets: [ "../../html/inc/common.css", "../../html/inc/tty.css" ] +javascripts: [ "../../html/inc/prototype.js", "../../html/inc/showtty.js" ] +relpath: ../../ ---
diff --git a/demo.md b/demo.md deleted file mode 100644 index 69266831b..000000000 --- a/demo.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -layout: master -title: 操作回放 -javascripts: [ "/javascripts/jquery.js", "html/inc/click_more.js" ] ---- - - - -## 操作回放 - -本书的部分操作用 ttyrec 录制,查看请访问:[《Git权威指南》——操作回放](screencast.html)。 -读者除了可以看到“活”的操作外,还可以从回放当中复制操作的代码。 - -如果该网页不存在、无法访问,或是您想在本地回放,或者想在其中添加您自己的操作回放, -有两种方式: - -方式一:你可以从 Github 上克隆本版本库,编译相关网页。 - - - -* 克隆版本库。 - - $ git clone git://github.com/gotgit/gotgit.git - -* 确认系统中安装了 ruby 和 perl,并通过 rubygems 安装 redcarpet。 - - $ gem install redcarpet - -* 执行编译。 - - $ rake - -* 点击生成的页面:[《Git权威指南》——操作回放](screencast.html)。 - -方式二:版本库中本来就保存了一份已编译文档,只不过缺省没有克隆出来。 - -> 如果您的系统上缺乏相应的工具软件而无法成功编译, - 在版本库中实际上保存了一份已经编译好的文件,可以通过Git下载, - 并检出到工作区。 - - - -* 克隆版本库。 - - $ 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 命令,可以自动生成新的播放页面。 - diff --git a/errata-others.md b/errata-others.md index 938dad5eb..4da949df9 100644 --- a/errata-others.md +++ b/errata-others.md @@ -1,25 +1,12 @@ --- layout: master title: 勘误表 +stylesheets: [ "/html/inc/errata.css" ] --- -## 参与勘误 +### 主要勘误 -您发现了新的错误么?贡献出来吧,这厢有礼了。Orz - -1. 记录您发现的问题。 - - 访问 [缺陷追踪系统(Github)](https://github.com/gotgit/gotgit/issues/new) 报告问题。 - -2. 修改本Git版本库中的勘误表。 - - * 在 GitHub 上从本版本库 派生后,直接修改勘误表。 - * 将您的修改通过 Github 的 Pull Request 工具通知我。 - * 您还可以直接通过 [新浪微博](http://weibo.com/gotgit/) @群英汇蒋鑫。 - -## 勘误表 - -说明:为突出字体加粗,用棕色字体显示加粗字体。 +主要勘误参见 ,本文列举一般性印刷错误。编辑建议不要将两个勘误合并一起。 ;) ### 文字错误 diff --git a/errata.md b/errata.md index 49cbd84f3..be4b3f530 100644 --- a/errata.md +++ b/errata.md @@ -1,6 +1,7 @@ --- layout: master title: 勘误表 +stylesheets: [ "/html/inc/errata.css" ] --- ## 参与勘误 diff --git a/html/inc/common.css b/html/inc/common.css index eac1cf006..0da48bd5c 100755 --- a/html/inc/common.css +++ b/html/inc/common.css @@ -1,25 +1,3 @@ -/* Stylesheet for ossxp documents at: http://www.ossxp.com/doc/ */ - -html,body{min-height:100%;} -body{color:#4e4e4e; padding: 0;} - -/* body with background color */ -body { - text-align:center; /* for IE */ - margin:0 auto; /* for the rest */ - background:#39424b; -} - -/* content: align center with fixed width */ -div.document -{ - text-align:left; - width:780px; /* or a percentage, or whatever */ - margin:0 auto 0 auto; - padding:1em; - background:#ffffff; -} - /* header and footer: align center with fixed width */ div.header, div.footer { diff --git a/index.md b/index.md index 44ff59ef9..af2ce5724 100644 --- a/index.md +++ b/index.md @@ -51,42 +51,50 @@ title: 关于本书 ## 在线资源 -* 官方网站 - +* 官方网站 - > 采用Git方式维护的官方网站,欢迎大家一起参与其中。 + -* 新浪微群 - + 采用Git方式维护的官方网站,欢迎大家一起参与其中。 - > 关于本书以及相关技术的讨论,还有本书的样章提供下载。 +* 新浪微群 -* 作者微博 - + - > 欢迎大家通过新浪微博与我交流,有什么意见和建议@我。 + 关于本书以及相关技术的讨论,还有本书的样章提供下载。 -* 邮件列表 - +* 作者微博 - > 社交网站140字的限制让复杂的交流显得吃力,这个邮件列表可以弥补不足。 + + + 欢迎大家通过新浪微博与我交流,有什么意见和建议@我。 + +* 邮件列表 + + + + 社交网站140字的限制让复杂的交流显得吃力,这个邮件列表可以弥补不足。 * 资源下载 - * 代码示例下载 - [本地下载](download) + * 代码示例下载 + + [本地下载](download) - * 演示版本库1 - + * 演示版本库1 - * 演示版本库2 (Hello world) - + - * 本资料库 - + * 演示版本库2 (Hello world) + + + + * 本资料库 + + @@ -95,11 +103,10 @@ title: 关于本书 您可以从下面的网址获取本书部分章节的电子版: -* 新浪微盘 - - -* 或 China-pub 样章试读 - +* 新浪微盘 + +* 或 China-pub 样章试读 +