forked from progit/progit2-zh-tw
-
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.
Merge remote-tracking branch 'origin/master' into errata
- Loading branch information
Showing
50 changed files
with
1,050 additions
and
162 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,2 +1,11 @@ | ||
output | ||
.DS_Store | ||
|
||
# build artifacts | ||
progit.html | ||
progit.pdf | ||
progit.pdfmarks | ||
progit.epub | ||
progit-kf8.epub | ||
progit.mobi | ||
images/ |
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,16 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rake' | ||
gem 'asciidoctor', '1.5.0' | ||
|
||
gem 'json' | ||
gem 'awesome_print' | ||
|
||
gem 'asciidoctor-epub3', '1.0.0.alpha.2' | ||
gem 'asciidoctor-pdf', '1.5.0.alpha.5' | ||
|
||
gem 'coderay' | ||
gem 'pygments.rb' | ||
gem 'thread_safe' | ||
gem 'epubcheck' | ||
gem 'kindlegen' |
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,74 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
Ascii85 (1.0.2) | ||
afm (0.2.2) | ||
asciidoctor (1.5.0) | ||
asciidoctor-epub3 (1.0.0.alpha.2) | ||
asciidoctor (>= 1.5.0, < 1.6.0) | ||
gepub (~> 0.6.9.2) | ||
thread_safe (~> 0.3.4) | ||
asciidoctor-pdf (1.5.0.alpha.5) | ||
asciidoctor (~> 1.5.0) | ||
prawn (= 1.2.1) | ||
prawn-svg (= 0.16.0) | ||
prawn-table (= 0.1.1) | ||
prawn-templates (= 0.0.3) | ||
treetop (= 1.5.3) | ||
awesome_print (1.2.0) | ||
coderay (1.1.0) | ||
epubcheck (3.0.1) | ||
gepub (0.6.9.2) | ||
nokogiri (~> 1.6.1) | ||
rubyzip (>= 1.1.1) | ||
hashery (2.1.1) | ||
json (1.8.1) | ||
kindlegen (2.9.3) | ||
mini_portile (0.6.0) | ||
nokogiri (1.6.3.1) | ||
mini_portile (= 0.6.0) | ||
pdf-core (0.2.5) | ||
pdf-reader (1.3.3) | ||
Ascii85 (~> 1.0.0) | ||
afm (~> 0.2.0) | ||
hashery (~> 2.0) | ||
ruby-rc4 | ||
ttfunk | ||
polyglot (0.3.5) | ||
posix-spawn (0.3.9) | ||
prawn (1.2.1) | ||
pdf-core (~> 0.2.5) | ||
ttfunk (~> 1.2.0) | ||
prawn-svg (0.16.0) | ||
prawn (>= 0.8.4) | ||
prawn-table (0.1.1) | ||
prawn-templates (0.0.3) | ||
pdf-reader (~> 1.3) | ||
prawn (>= 0.15.0) | ||
pygments.rb (0.6.0) | ||
posix-spawn (~> 0.3.6) | ||
yajl-ruby (~> 1.1.0) | ||
rake (10.3.2) | ||
ruby-rc4 (0.1.5) | ||
rubyzip (1.1.6) | ||
thread_safe (0.3.4) | ||
treetop (1.5.3) | ||
polyglot (~> 0.3) | ||
ttfunk (1.2.2) | ||
yajl-ruby (1.1.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
asciidoctor (= 1.5.0) | ||
asciidoctor-epub3 (= 1.0.0.alpha.2) | ||
asciidoctor-pdf (= 1.5.0.alpha.5) | ||
awesome_print | ||
coderay | ||
epubcheck | ||
json | ||
kindlegen | ||
pygments.rb | ||
rake | ||
thread_safe |
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,28 @@ | ||
namespace :book do | ||
desc 'prepare build' | ||
task :prebuild do | ||
Dir.mkdir 'images' unless Dir.exists? 'images' | ||
Dir.glob("book/*/images/*").each do |image| | ||
FileUtils.copy(image, "images/" + File.basename(image)) | ||
end | ||
end | ||
|
||
desc 'build basic book formats' | ||
task :build => :prebuild do | ||
puts "Converting to HTML..." | ||
`bundle exec asciidoctor progit.asc` | ||
puts " -- HTML output at progit.html" | ||
|
||
puts "Converting to EPub..." | ||
`bundle exec asciidoctor-epub3 progit.asc` | ||
puts " -- Epub output at progit.epub" | ||
|
||
puts "Converting to Mobi (kf8)..." | ||
`bundle exec asciidoctor-epub3 -a ebook-format=kf8 progit.asc` | ||
puts " -- Mobi output at progit.mobi" | ||
|
||
puts "Converting to PDF... (this one takes a while)" | ||
`bundle exec asciidoctor-pdf progit.asc 2>/dev/null` | ||
puts " -- PDF output at progit.pdf" | ||
end | ||
end |
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,9 @@ | ||
== Translation Notes | ||
|
||
After forking this repository to translate the work, this file is where the notes for coordinating the translation work would go. Things like standardizing on words and expressions so that the work is consistent or notes on how the contributing process is to be handled. | ||
|
||
As a translation maintainer, also feel free to modify or completely rewrite the README file to contain instructions specific to your translation. | ||
|
||
=== Translation Status | ||
|
||
As the work is translated, please update the `status.json` file to indicate the rough percentage complete each file is. This will be shown on various pages to let people know how much work is left to be done. |
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 |
---|---|---|
|
@@ -24,8 +24,11 @@ It also still looks for `/etc/gitconfig`, although it's relative to the MSys roo | |
The first thing you should do when you install Git is to set your user name and e-mail address. | ||
This is important because every Git commit uses this information, and it's immutably baked into the commits you start creating: | ||
|
||
$ git config --global user.name "John Doe" | ||
$ git config --global user.email [email protected] | ||
[source,console] | ||
---- | ||
$ git config --global user.name "John Doe" | ||
$ git config --global user.email [email protected] | ||
---- | ||
|
||
Again, you need to do this only once if you pass the `--global` option, because then Git will always use that information for anything you do on that system. | ||
If you want to override this with a different name or e-mail address for specific projects, you can run the command without the `--global` option when you're in that project. | ||
|
@@ -38,7 +41,10 @@ Now that your identity is set up, you can configure the default text editor that | |
If not configured, Git uses your system's default editor, which is generally Vim. | ||
If you want to use a different text editor, such as Emacs, you can do the following: | ||
|
||
$ git config --global core.editor emacs | ||
[source,console] | ||
---- | ||
$ git config --global core.editor emacs | ||
---- | ||
|
||
[NOTE] | ||
==== | ||
|
@@ -49,19 +55,25 @@ Vim and Emacs are popular text editors often used by developers on Unix based sy | |
|
||
If you want to check your settings, you can use the `git config --list` command to list all the settings Git can find at that point: | ||
|
||
$ git config --list | ||
user.name=John Doe | ||
[email protected] | ||
color.status=auto | ||
color.branch=auto | ||
color.interactive=auto | ||
color.diff=auto | ||
... | ||
[source,console] | ||
---- | ||
$ git config --list | ||
user.name=John Doe | ||
[email protected] | ||
color.status=auto | ||
color.branch=auto | ||
color.interactive=auto | ||
color.diff=auto | ||
... | ||
---- | ||
|
||
You may see keys more than once, because Git reads the same key from different files (`/etc/gitconfig` and `~/.gitconfig`, for example). | ||
In this case, Git uses the last value for each unique key it sees. | ||
|
||
You can also check what Git thinks a specific key's value is by typing `git config <key>`:(((git commands, config))) | ||
|
||
$ git config user.name | ||
John Doe | ||
[source,console] | ||
---- | ||
$ git config user.name | ||
John Doe | ||
---- |
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
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
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.