Skip to content

Commit 4db400d

Browse files
authored
Merge pull request #347 from progit/file_rework
File rework for ebook publishing
2 parents aab0e1c + 2997d3d commit 4db400d

File tree

489 files changed

+1288
-1081
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

489 files changed

+1288
-1081
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ progit.pdfmarks
88
progit.epub
99
progit-kf8.epub
1010
progit.mobi
11-
/images/
11+

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: ruby
2+
sudo: false
3+
git:
4+
depth: false
5+
cache: bundler
6+
before_install:
7+
- wget https://raw.githubusercontent.com/progit/progit2-pub/master/bootstrap.sh
8+
- sh bootstrap.sh
9+
script: bundle exec rake book:build
10+
after_success: bundle exec rake book:tag
11+
deploy:
12+
provider: releases
13+
file:
14+
- progit.epub
15+
- progit.mobi
16+
- progit.pdf
17+
skip_cleanup: true
18+
on:
19+
tags: true
20+
api-key: $GITHUB_API_TOKEN
21+
branches:
22+
only:
23+
- master
24+
- /^2\.1(\.\d+)+$/
25+
26+
addons:
27+
apt:
28+
packages:
29+
- epubcheck
30+
notifications:
31+
email:
32+
on_success: never
33+
on_failure: always
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[#A-git-in-other-environments]
12
[appendix]
23
== 其它环境中的 Git
34

@@ -6,18 +7,18 @@
67
但是故事并未就此结束;Git 通常只是更大的生态圈的一部分,在某些情况下使用终端并不是最合适的方式。
78
现在就让我们来了解一下如何在其它类型的环境中更好地使用 Git,以及别的应用(包括你的)如何与 Git 进行协作。
89

9-
include::sections/guis.asc[]
10+
include::book/A-git-in-other-environments/sections/guis.asc[]
1011

11-
include::sections/visualstudio.asc[]
12+
include::book/A-git-in-other-environments/sections/visualstudio.asc[]
1213

13-
include::sections/eclipse.asc[]
14+
include::book/A-git-in-other-environments/sections/eclipse.asc[]
1415

1516

16-
include::sections/bash.asc[]
17+
include::book/A-git-in-other-environments/sections/bash.asc[]
1718

18-
include::sections/zsh.asc[]
19+
include::book/A-git-in-other-environments/sections/zsh.asc[]
1920

20-
include::sections/powershell.asc[]
21+
include::book/A-git-in-other-environments/sections/powershell.asc[]
2122

2223
=== 总结
2324

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
[#B-embedding-git]
12
[appendix]
23
== 将 Git 嵌入你的应用
34

@@ -6,8 +7,8 @@
67

78
如果你想将 Git 整合进你的应用程序的话,一般来说你有三种可能的选择:启动一个 shell 来使用 Git 的命令行工具;使用 Libgit2;或者使用 JGit。
89

9-
include::sections/command-line.asc[]
10+
include::book/B-embedding-git/sections/command-line.asc[]
1011

11-
include::sections/libgit2.asc[]
12+
include::book/B-embedding-git/sections/libgit2.asc[]
1213

13-
include::sections/jgit.asc[]
14+
include::book/B-embedding-git/sections/jgit.asc[]

C-git-commands.asc

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

Gemfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
source 'https://rubygems.org'
22

33
gem 'rake'
4-
gem 'asciidoctor', '1.5.0'
4+
gem 'asciidoctor', '1.5.6.1'
55

66
gem 'json'
77
gem 'awesome_print'
88

9-
gem 'asciidoctor-epub3', '1.0.0.alpha.2'
10-
gem 'asciidoctor-pdf', '1.5.0.alpha.8'
11-
gem 'asciidoctor-pdf-cjk-kai_gen_gothic', '~> 0.1.1'
9+
gem 'asciidoctor-epub3', :git => 'https://github.com/asciidoctor/asciidoctor-epub3'
10+
gem 'asciidoctor-pdf', '1.5.0.alpha.16'
1211

1312
gem 'coderay'
1413
gem 'pygments.rb'
1514
gem 'thread_safe'
1615
gem 'epubcheck'
1716
gem 'kindlegen'
17+
18+
gem 'octokit'

Gemfile.lock

Lines changed: 68 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,104 @@
1+
GIT
2+
remote: https://github.com/asciidoctor/asciidoctor-epub3
3+
revision: 76c0411690d101aa22d98bad75ffa647a4885647
4+
specs:
5+
asciidoctor-epub3 (1.5.0.alpha.8.dev)
6+
asciidoctor (~> 1.5.0)
7+
gepub (~> 0.6.9.2)
8+
thread_safe (~> 0.3.6)
9+
110
GEM
211
remote: https://rubygems.org/
312
specs:
4-
Ascii85 (1.0.2)
5-
addressable (2.3.8)
13+
Ascii85 (1.0.3)
14+
addressable (2.5.2)
15+
public_suffix (>= 2.0.2, < 4.0)
616
afm (0.2.2)
7-
asciidoctor (1.5.0)
8-
asciidoctor-epub3 (1.0.0.alpha.2)
9-
asciidoctor (>= 1.5.0, < 1.6.0)
10-
gepub (~> 0.6.9.2)
11-
thread_safe (~> 0.3.4)
12-
asciidoctor-pdf (1.5.0.alpha.8)
13-
asciidoctor (~> 1.5.0)
14-
prawn (>= 1.3.0, < 3.0.0)
15-
prawn-icon (= 0.6.4)
16-
prawn-svg (= 0.20.0)
17-
prawn-table (= 0.2.1)
18-
prawn-templates (= 0.0.3)
19-
safe_yaml (= 1.0.4)
20-
thread_safe (= 0.3.4)
17+
asciidoctor (1.5.6.1)
18+
asciidoctor-pdf (1.5.0.alpha.16)
19+
asciidoctor (>= 1.5.0)
20+
prawn (>= 1.3.0, < 2.3.0)
21+
prawn-icon (= 1.3.0)
22+
prawn-svg (>= 0.21.0, < 0.28.0)
23+
prawn-table (= 0.2.2)
24+
prawn-templates (>= 0.0.3, <= 0.1.1)
25+
safe_yaml (~> 1.0.4)
26+
thread_safe (~> 0.3.6)
2127
treetop (= 1.5.3)
22-
asciidoctor-pdf-cjk (0.1.2)
23-
asciidoctor-pdf (~> 1.5.0.alpha.8)
24-
asciidoctor-pdf-cjk-kai_gen_gothic (0.1.1)
25-
asciidoctor-pdf-cjk (~> 0.1.2)
26-
awesome_print (1.2.0)
27-
coderay (1.1.0)
28-
css_parser (1.3.7)
28+
awesome_print (1.8.0)
29+
coderay (1.1.2)
30+
css_parser (1.6.0)
2931
addressable
3032
epubcheck (3.0.1)
33+
faraday (0.14.0)
34+
multipart-post (>= 1.2, < 3)
3135
gepub (0.6.9.2)
3236
nokogiri (~> 1.6.1)
3337
rubyzip (>= 1.1.1)
34-
hashery (2.1.1)
35-
json (1.8.1)
36-
kindlegen (2.9.4)
37-
mini_portile (0.6.0)
38-
nokogiri (1.6.3.1)
39-
mini_portile (= 0.6.0)
40-
pdf-core (0.6.0)
41-
pdf-reader (1.3.3)
38+
hashery (2.1.2)
39+
json (2.1.0)
40+
kindlegen (3.0.3)
41+
rake
42+
rubyzip
43+
mini_portile2 (2.1.0)
44+
multi_json (1.13.1)
45+
multipart-post (2.0.0)
46+
nokogiri (1.6.8.1)
47+
mini_portile2 (~> 2.1.0)
48+
octokit (4.8.0)
49+
sawyer (~> 0.8.0, >= 0.5.3)
50+
pdf-core (0.7.0)
51+
pdf-reader (2.1.0)
4252
Ascii85 (~> 1.0.0)
43-
afm (~> 0.2.0)
53+
afm (~> 0.2.1)
4454
hashery (~> 2.0)
4555
ruby-rc4
4656
ttfunk
4757
polyglot (0.3.5)
48-
posix-spawn (0.3.9)
49-
prawn (2.0.2)
50-
pdf-core (~> 0.6.0)
51-
ttfunk (~> 1.4.0)
52-
prawn-icon (0.6.4)
58+
prawn (2.2.2)
59+
pdf-core (~> 0.7.0)
60+
ttfunk (~> 1.5)
61+
prawn-icon (1.3.0)
5362
prawn (>= 1.1.0, < 3.0.0)
54-
prawn-svg (0.20.0)
63+
prawn-svg (0.27.1)
5564
css_parser (~> 1.3)
56-
prawn (>= 0.8.4, < 3)
57-
prawn-table (0.2.1)
58-
prawn-templates (0.0.3)
59-
pdf-reader (~> 1.3)
60-
prawn (>= 0.15.0)
61-
pygments.rb (0.6.0)
62-
posix-spawn (~> 0.3.6)
63-
yajl-ruby (~> 1.1.0)
64-
rake (10.3.2)
65+
prawn (>= 0.11.1, < 3)
66+
prawn-table (0.2.2)
67+
prawn (>= 1.3.0, < 3.0.0)
68+
prawn-templates (0.1.1)
69+
pdf-reader (~> 2.0)
70+
prawn (~> 2.2)
71+
public_suffix (3.0.2)
72+
pygments.rb (1.2.1)
73+
multi_json (>= 1.0.0)
74+
rake (12.3.0)
6575
ruby-rc4 (0.1.5)
66-
rubyzip (1.1.6)
76+
rubyzip (1.2.1)
6777
safe_yaml (1.0.4)
68-
thread_safe (0.3.4)
78+
sawyer (0.8.1)
79+
addressable (>= 2.3.5, < 2.6)
80+
faraday (~> 0.8, < 1.0)
81+
thread_safe (0.3.6)
6982
treetop (1.5.3)
7083
polyglot (~> 0.3)
71-
ttfunk (1.4.0)
72-
yajl-ruby (1.1.0)
84+
ttfunk (1.5.1)
7385

7486
PLATFORMS
7587
ruby
7688

7789
DEPENDENCIES
78-
asciidoctor (= 1.5.0)
79-
asciidoctor-epub3 (= 1.0.0.alpha.2)
80-
asciidoctor-pdf (= 1.5.0.alpha.8)
81-
asciidoctor-pdf-cjk-kai_gen_gothic (~> 0.1.1)
90+
asciidoctor (= 1.5.6.1)
91+
asciidoctor-epub3!
92+
asciidoctor-pdf (= 1.5.0.alpha.16)
8293
awesome_print
8394
coderay
8495
epubcheck
8596
json
8697
kindlegen
98+
octokit
8799
pygments.rb
88100
rake
89101
thread_safe
90102

91103
BUNDLED WITH
92-
1.10.5
104+
1.16.1

0 commit comments

Comments
 (0)