Skip to content

Commit c0e7992

Browse files
committed
site: add epub
1 parent 5614558 commit c0e7992

File tree

4 files changed

+45
-24
lines changed

4 files changed

+45
-24
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ source 'https://rubygems.org'
55
## version.
66
ruby '3.2.2'
77

8+
gem "asciidoctor", "~>2.0.20"
9+
gem "rouge"
10+
811
## If you add a new Gem below, run `bundle install` to install it.
912
group :development do
1013
gem "jekyll", "~> 4.3.2"
@@ -24,7 +27,6 @@ end
2427
group :asciidoc_plugins do
2528
gem "asciidoctor-epub3"
2629
gem "asciidoctor-pdf"
27-
gem 'rouge'
2830
end
2931

3032
group :testing do

Gemfile.lock

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ GEM
66
public_suffix (>= 2.0.2, < 6.0)
77
afm (0.2.2)
88
asciidoctor (2.0.20)
9-
asciidoctor-diagram (2.2.11)
9+
asciidoctor-diagram (2.2.14)
1010
asciidoctor (>= 1.5.7, < 3.x)
1111
asciidoctor-diagram-ditaamini (~> 1.0)
1212
asciidoctor-diagram-plantuml (~> 1.2021)
1313
rexml
1414
asciidoctor-diagram-ditaamini (1.0.3)
15-
asciidoctor-diagram-plantuml (1.2023.10)
15+
asciidoctor-diagram-plantuml (1.2023.12)
16+
asciidoctor-epub3 (1.5.1)
17+
asciidoctor (>= 1.5.6, < 3.0.0)
18+
gepub (~> 1.0.0)
19+
mime-types (~> 3.0)
1620
asciidoctor-pdf (2.3.9)
1721
asciidoctor (~> 2.0)
1822
concurrent-ruby (~> 1.1)
@@ -23,12 +27,12 @@ GEM
2327
prawn-table (~> 0.2.0)
2428
prawn-templates (~> 0.1.0)
2529
treetop (~> 1.6.0)
26-
async (2.6.3)
30+
async (2.6.5)
2731
console (~> 1.10)
2832
fiber-annotation
2933
io-event (~> 1.1)
3034
timers (~> 4.1)
31-
chef-utils (18.2.7)
35+
chef-utils (18.3.0)
3236
concurrent-ruby
3337
colorator (1.1.0)
3438
concurrent-ruby (1.2.2)
@@ -43,11 +47,14 @@ GEM
4347
ethon (0.16.0)
4448
ffi (>= 1.15.0)
4549
eventmachine (1.2.7)
46-
ffi (1.15.5)
50+
ffi (1.16.3)
4751
fiber-annotation (0.2.0)
4852
fiber-local (1.0.0)
4953
forwardable-extended (2.6.0)
50-
google-protobuf (3.24.0-x86_64-linux)
54+
gepub (1.0.15)
55+
nokogiri (>= 1.8.2, < 2.0)
56+
rubyzip (> 1.1.1, < 2.4)
57+
google-protobuf (3.25.1-x86_64-linux)
5158
hashery (2.1.2)
5259
html-proofer (5.0.8)
5360
addressable (~> 2.3)
@@ -61,7 +68,7 @@ GEM
6168
http_parser.rb (0.8.0)
6269
i18n (1.14.1)
6370
concurrent-ruby (~> 1.0)
64-
io-event (1.2.3)
71+
io-event (1.3.3)
6572
jekyll (4.3.2)
6673
addressable (~> 2.4)
6774
colorator (~> 1.0)
@@ -78,11 +85,13 @@ GEM
7885
safe_yaml (~> 1.0)
7986
terminal-table (>= 1.8, < 4.0)
8087
webrick (~> 1.7)
81-
jekyll-asciidoc (3.0.0)
82-
asciidoctor (>= 1.5.0)
88+
jekyll-asciidoc (3.0.1)
89+
asciidoctor (>= 1.5.0, < 3.0.0)
8390
jekyll (>= 3.0.0)
8491
jekyll-feed (0.17.0)
8592
jekyll (>= 3.7, < 5.0)
93+
jekyll-include-cache (0.2.1)
94+
jekyll (>= 3.7, < 5.0)
8695
jekyll-redirect-from (0.16.0)
8796
jekyll (>= 3.3, < 5.0)
8897
jekyll-sass-converter (3.0.0)
@@ -91,10 +100,11 @@ GEM
91100
jekyll (>= 3.8, < 5.0)
92101
jekyll-watch (2.2.1)
93102
listen (~> 3.0)
94-
json-schema (4.0.0)
103+
json-schema (4.1.1)
95104
addressable (>= 2.8)
96-
just-the-docs (0.5.4)
105+
just-the-docs (0.7.0)
97106
jekyll (>= 3.8.5)
107+
jekyll-include-cache
98108
jekyll-seo-tag (>= 2.0)
99109
rake (>= 12.3.1)
100110
kramdown (2.4.0)
@@ -106,19 +116,22 @@ GEM
106116
rb-fsevent (~> 0.10, >= 0.10.3)
107117
rb-inotify (~> 0.9, >= 0.9.10)
108118
matrix (0.4.2)
109-
mdl (0.12.0)
119+
mdl (0.13.0)
110120
kramdown (~> 2.3)
111121
kramdown-parser-gfm (~> 1.1)
112122
mixlib-cli (~> 2.1, >= 2.1.1)
113123
mixlib-config (>= 2.2.1, < 4)
114124
mixlib-shellout
115125
mercenary (0.4.0)
126+
mime-types (3.5.1)
127+
mime-types-data (~> 3.2015)
128+
mime-types-data (3.2023.1003)
116129
mixlib-cli (2.1.8)
117130
mixlib-config (3.0.27)
118131
tomlrb
119132
mixlib-shellout (3.2.7)
120133
chef-utils
121-
nokogiri (1.15.4-x86_64-linux)
134+
nokogiri (1.15.5-x86_64-linux)
122135
racc (~> 1.4)
123136
parslet (2.0.0)
124137
pathutil (0.16.2)
@@ -145,18 +158,19 @@ GEM
145158
prawn-templates (0.1.2)
146159
pdf-reader (~> 2.0)
147160
prawn (~> 2.2)
148-
public_suffix (5.0.3)
149-
racc (1.7.1)
161+
public_suffix (5.0.4)
162+
racc (1.7.3)
150163
rainbow (3.1.1)
151-
rake (13.0.6)
164+
rake (13.1.0)
152165
rb-fsevent (0.11.2)
153166
rb-inotify (0.10.1)
154167
ffi (~> 1.0)
155168
rexml (3.2.6)
156-
rouge (4.1.3)
169+
rouge (4.2.0)
157170
ruby-rc4 (0.1.5)
171+
rubyzip (2.3.2)
158172
safe_yaml (1.0.5)
159-
sass-embedded (1.64.2-x86_64-linux-gnu)
173+
sass-embedded (1.69.5-x86_64-linux-gnu)
160174
google-protobuf (~> 3.23)
161175
terminal-table (3.0.2)
162176
unicode-display_width (>= 1.1.1, < 3)
@@ -167,18 +181,20 @@ GEM
167181
treetop (1.6.12)
168182
polyglot (~> 0.3)
169183
ttfunk (1.7.0)
170-
typhoeus (1.4.0)
184+
typhoeus (1.4.1)
171185
ethon (>= 0.9.0)
172-
unicode-display_width (2.4.2)
186+
unicode-display_width (2.5.0)
173187
webrick (1.8.1)
174188
yell (2.2.2)
175-
zeitwerk (2.6.11)
189+
zeitwerk (2.6.12)
176190

177191
PLATFORMS
178192
x86_64-linux
179193

180194
DEPENDENCIES
195+
asciidoctor (~> 2.0.20)
181196
asciidoctor-diagram
197+
asciidoctor-epub3
182198
asciidoctor-pdf
183199
html-proofer
184200
jekyll (~> 4.3.2)

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ build-other-versions:
5757
## PDF version
5858
bundle exec asciidoctor --attribute imagesdir=./images --attribute mermaid-format=png -r asciidoctor-pdf -b pdf -r asciidoctor-diagram -o onboarding-to-bitcoin-core.pdf index.adoc
5959
mv onboarding-to-bitcoin-core.pdf bin/
60+
## ePub version
61+
asciidoctor -b epub3 -r asciidoctor-epub3 -r asciidoctor-diagram --attribute mermaid-format=png --attribute doctype=book index.adoc
62+
mv index.epub bin/onboarding-to-bitcoin-core.epub

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
<p><b>Get onboarded</b></p>
3535
<p>Read the <a href="./bin/onboarding-to-bitcoin-core.html">entire onboarding guide</a> in a
3636
convenient single-page format.</p>
37-
<p>Or view the <a href="./bin/onboarding-to-bitcoin-core.pdf">entire guide</a>
38-
(excluding mermaid charts) as a PDF.</p>
37+
<p>Alternatively, view as a <a href="./bin/onboarding-to-bitcoin-core.pdf">PDF</a> or
38+
<a href="./bin/onboarding-to-bitcoin-core.epub">ePub</a>.</p>
3939
</div>
4040

4141
<div class="dah_card">

0 commit comments

Comments
 (0)