Giter Site home page Giter Site logo

这是一本关于GitHub的书,在线阅读请访问: http://www.worldhello.net/gotgithub

动笔写GitHub不是因为我对其了解,恰恰是对其太不了解。在我写的 《Git权威指南》 一书中,涉及到GitHub的只有区区三页纸,这显然回答不了读者对于GitHub的诸多疑问。

这本书采用Creative Commons协议发布,并托管在GitHub上,意味着您可以免费阅读并可以用GitHub特有的方式参与本书的维护。

如何离线阅读

项目 gotgit/gotgithub 的版本库中的 gh-pages 分支保存着本书编译后的页面,意味着您只要下载版本库并检出 gh-pages 分支即可在本地浏览。

  • 克隆版本库。

      $ git clone git://github.com/gotgit/gotgithub.git
    
  • 检出 gh-pages 分支。

      $ cd gotgithub
      $ git checkout gh-pages
    
  • 用浏览器打开 index.html 即可离线阅读。

因分支 gh-pages 的提交历史可能会周期性删除或压缩合并,为避免执行 git pull 更新分支时造成困惑,请对本地版本库进行如下设置。

$ git config --add remote.origin.fetch +refs/heads/gh-pages:refs/heads/gh-pages

如何编译

预备

  • Python, docutils

    本书使用 reStructuredText 格式撰写,格式解析依赖 Python 和 docutils 包。

  • Sphinx

    Sphinx 工具进行编译。编译前先确认已经安装 Python、docutils 及 sphinx。

  • ImageMagick 及 Inkscape

    本书图片矢量图采用 Inkscape 绘制,位图处理采用 GIMP 。上述格式图片在网页显示需要格式转换,格式转换需用到 ImageMagick 和 Inkscape。

  • Git

    不解释。

克隆版本库(本书书稿及图片)

本书用两个版本库维护:

本书的图片版本库以子模组形式关联到书稿版本库,运行下面命令执行克隆:

  • 若尚未克隆书稿版本库,先克隆书稿版本库。

      $ git clone git://github.com/gotgit/gotgithub.git
      $ cd gotgithub
    
  • 默认检出 master 分支。如果当前非 master 分支,执行下面命令检出分支。

      $ git checkout master
    
  • 通过子模组更新命令克隆子模组版本库(即保存图片的版本库)并检出。

    $ git submodule init
    $ git submodule update
    

编译书稿

确保安装了 Sphinx、ImageMagick、Inkscape。编译本书使用命令:

$ make html

编译后的网页位于 _build/html 目录下。

更多的格式输出参见下面的命令输出:

$ make

如何贡献

请采用GitHub方式贡献。

  • 创建派生项目。即 Fork。
  • 修改您觉得不满意的地方。修改后推送到您创建的分支版本库中。
  • 通过 GitHub 向我发送 Pull Request。

-- 蒋鑫, http://weibo.com/gotgit/

adan016's Projects

sdautolayout icon sdautolayout

AutoLayout 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based Runtime.

sdcyclescrollview icon sdcyclescrollview

“iOS第一图片轮播器” 无限循环图片轮播器。Autoscroll Banner。

sdwebimage icon sdwebimage

Asynchronous image downloader with cache support with an UIImageView category

sialertview icon sialertview

An UIAlertView replacement with block syntax and fancy transition styles.

simulategps icon simulategps

Java语言,Eclipse工具,android模拟位置程序

slowmotionvideorecorder icon slowmotionvideorecorder

120 fps SLO-MO video recorder using AVFoundation. Including convenient wrapper class. Available on the iPhone5s.

snapshot icon snapshot

Automate taking localized screenshots of your iOS app on every device

stitchingimage icon stitchingimage

iOS 仿微信群组封面拼接控件, 直接拖进项目就可使用, 支持 CocoaPods 安装. WeChat-like, drop-in version, stitching mage

surfboard icon surfboard

Surfboard is a delightful onboarding framework for iOS.

svn2git icon svn2git

Ruby tool for importing existing svn projects into git.

swift icon swift

The Swift Programming Language

swiftweather icon swiftweather

SwiftWeather is an iOS weather app developed in Swift 2. The app has been actively upgrading to adopt the latest features of iOS and Swift language.

sxnews icon sxnews

High imitation Neteasy News. (include list,detail,photoset,weather,feedback)

tapkulibrary icon tapkulibrary

tap + haiku = tapku, a well crafted open source iOS framework

theseus icon theseus

An open-source iOS personal analytics tool

tinker icon tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.