Skip to content

Commit

Permalink
ditch mobi and simplify dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
philsturgeon committed Jan 12, 2025
1 parent 8f0a876 commit 6025132
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 49 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
generated/
book.epub.d/
book.xml
book.xml
6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
source 'https://rubygems.org'

gem 'asciidoctor'
gem 'asciidoctor-pdf', '~> 1.5.pre'
gem 'asciidoctor-epub3', '~> 1.5.pre'
gem 'asciidoctor-pdf', '~> 2.3'
gem 'asciidoctor-epub3', '~> 2.1'
gem 'asciidoctor-diagram' # https://github.com/asciidoctor/asciidoctor-diagram
gem 'coderay' # markdown
gem "kindlegen", "~> 3.0"
gem "nokogiri", "~> 1.16"
78 changes: 46 additions & 32 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,49 +1,58 @@
GEM
remote: https://rubygems.org/
specs:
Ascii85 (1.1.1)
Ascii85 (2.0.1)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
afm (0.2.2)
asciidoctor (2.0.8)
asciidoctor-diagram (1.5.16)
asciidoctor (>= 1.5.0, < 3.x)
asciidoctor-epub3 (1.5.1)
asciidoctor (>= 1.5.6, < 3.0.0)
asciidoctor (2.0.23)
asciidoctor-diagram (2.3.1)
asciidoctor (>= 1.5.7, < 3.x)
asciidoctor-diagram-ditaamini (~> 1.0)
asciidoctor-diagram-plantuml (~> 1.2021)
rexml
asciidoctor-diagram-batik (1.17)
asciidoctor-diagram-ditaamini (1.0.3)
asciidoctor-diagram-plantuml (1.2024.8)
asciidoctor-diagram-batik (~> 1.17)
asciidoctor-epub3 (2.1.0)
asciidoctor (~> 2.0)
gepub (~> 1.0.0)
mime-types (~> 3.0)
asciidoctor-pdf (1.6.2)
sass
asciidoctor-pdf (2.3.14)
asciidoctor (~> 2.0)
concurrent-ruby (~> 1.1)
matrix (~> 0.4)
prawn (~> 2.4.0)
prawn-icon (~> 3.0.0)
prawn-svg (~> 0.32.0)
prawn-svg (~> 0.34.0)
prawn-table (~> 0.2.0)
prawn-templates (~> 0.1.0)
safe_yaml (~> 1.0.0)
treetop (~> 1.6.0)
bigdecimal (3.1.8)
coderay (1.1.2)
concurrent-ruby (1.3.3)
css_parser (1.17.1)
bigdecimal (3.1.9)
coderay (1.1.3)
concurrent-ruby (1.3.4)
css_parser (1.21.0)
addressable
ffi (1.17.1)
gepub (1.0.17)
nokogiri (>= 1.8.2, < 2.0)
rubyzip (> 1.1.1, < 2.4)
hashery (2.1.2)
kindlegen (3.0.3)
rake
rubyzip
mime-types (3.5.2)
logger (1.6.5)
matrix (0.4.2)
mime-types (3.6.0)
logger
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0806)
mini_portile2 (2.8.7)
nokogiri (1.16.5)
mime-types-data (3.2025.0107)
mini_portile2 (2.8.8)
nokogiri (1.18.1)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
pdf-core (0.9.0)
pdf-reader (2.12.0)
Ascii85 (~> 1.0)
pdf-reader (2.13.0)
Ascii85 (>= 1.0, < 3.0, != 2.0.0)
afm (~> 0.2.1)
hashery (~> 2.0)
ruby-rc4
Expand All @@ -54,8 +63,9 @@ GEM
ttfunk (~> 1.7)
prawn-icon (3.0.0)
prawn (>= 1.1.0, < 3.0.0)
prawn-svg (0.32.0)
prawn-svg (0.34.2)
css_parser (~> 1.6)
matrix (~> 0.4.2)
prawn (>= 0.11.1, < 3)
rexml (~> 3.2)
prawn-table (0.2.2)
Expand All @@ -65,11 +75,17 @@ GEM
prawn (~> 2.2)
public_suffix (6.0.1)
racc (1.8.1)
rake (13.0.1)
rexml (3.3.9)
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
rexml (3.4.0)
ruby-rc4 (0.1.5)
rubyzip (2.0.0)
safe_yaml (1.0.5)
rubyzip (2.3.2)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
treetop (1.6.12)
polyglot (~> 0.3)
ttfunk (1.8.0)
Expand All @@ -81,11 +97,9 @@ PLATFORMS
DEPENDENCIES
asciidoctor
asciidoctor-diagram
asciidoctor-epub3 (~> 1.5.pre)
asciidoctor-pdf (~> 1.5.pre)
asciidoctor-epub3 (~> 2.1)
asciidoctor-pdf (~> 2.3)
coderay
kindlegen (~> 3.0)
nokogiri (~> 1.16)

BUNDLED WITH
2.0.1
2.6.2
15 changes: 3 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@ install:
brew bundle
bundle install

build: build-html build-pdf build-epub build-mobi

build-html:
rm -rf generated/html/*
asciidoctor -r asciidoctor-diagram -b html5 -D generated/html src/book.adoc
mkdir -p generated/html/1-theory && cp -r src/1-theory/images generated/html/1-theory/
mkdir -p generated/html/2-planning && cp -r src/2-planning/images generated/html/2-planning/
build: build-pdf build-epub

build-pdf:
asciidoctor-pdf -r asciidoctor-diagram -a data-uri -D generated src/book.adoc
bundle exec asciidoctor-pdf -r asciidoctor-diagram -a data-uri -D generated src/book.adoc

build-epub:
asciidoctor-epub3 -r asciidoctor-diagram -D generated src/book.adoc

build-mobi:
asciidoctor-epub3 -r asciidoctor-diagram -D generated -a ebook-format=kf8 src/book.adoc
bundle exec asciidoctor-epub3 -r asciidoctor-diagram -D generated src/book.adoc
Binary file removed generated/book.pdf
Binary file not shown.

0 comments on commit 6025132

Please sign in to comment.