Skip to content

Commit 3156785

Browse files
committed
Rework file structure for asciidoctor toolchain
This structure generates correct ebooks and PDFs
1 parent ccba093 commit 3156785

File tree

486 files changed

+1139
-1007
lines changed

Some content is hidden

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

486 files changed

+1139
-1007
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+
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.lock

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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+
10+
GEM
11+
remote: https://rubygems.org/
12+
specs:
13+
Ascii85 (1.0.3)
14+
addressable (2.5.2)
15+
public_suffix (>= 2.0.2, < 4.0)
16+
afm (0.2.2)
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)
27+
treetop (= 1.5.3)
28+
awesome_print (1.8.0)
29+
coderay (1.1.2)
30+
css_parser (1.6.0)
31+
addressable
32+
epubcheck (3.0.1)
33+
faraday (0.14.0)
34+
multipart-post (>= 1.2, < 3)
35+
gepub (0.6.9.2)
36+
nokogiri (~> 1.6.1)
37+
rubyzip (>= 1.1.1)
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)
52+
Ascii85 (~> 1.0.0)
53+
afm (~> 0.2.1)
54+
hashery (~> 2.0)
55+
ruby-rc4
56+
ttfunk
57+
polyglot (0.3.5)
58+
prawn (2.2.2)
59+
pdf-core (~> 0.7.0)
60+
ttfunk (~> 1.5)
61+
prawn-icon (1.3.0)
62+
prawn (>= 1.1.0, < 3.0.0)
63+
prawn-svg (0.27.1)
64+
css_parser (~> 1.3)
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)
75+
ruby-rc4 (0.1.5)
76+
rubyzip (1.2.1)
77+
safe_yaml (1.0.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)
82+
treetop (1.5.3)
83+
polyglot (~> 0.3)
84+
ttfunk (1.5.1)
85+
86+
PLATFORMS
87+
ruby
88+
89+
DEPENDENCIES
90+
asciidoctor (= 1.5.6.1)
91+
asciidoctor-epub3!
92+
asciidoctor-pdf (= 1.5.0.alpha.16)
93+
awesome_print
94+
coderay
95+
epubcheck
96+
json
97+
kindlegen
98+
octokit
99+
pygments.rb
100+
rake
101+
thread_safe
102+
103+
BUNDLED WITH
104+
1.16.1
-54.6 KB
Binary file not shown.
-64.4 KB
Binary file not shown.
-48.2 KB
Binary file not shown.
-75.2 KB
Binary file not shown.
-149 KB
Binary file not shown.

0 commit comments

Comments
 (0)