Skip to content

Commit 7f508fb

Browse files
Add PDF rendering (though not with the slide format
1 parent 5fd907d commit 7f508fb

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Gemfile

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
# bundle install
33
source 'https://rubygems.org'
44
gem 'asciidoctor', '~>1.5.1'
5-
#gem 'haml', '~>4.0.0'
6-
#gem 'tilt', '~>2.0.0'
5+
gem 'haml', '~>4.0.0'
6+
gem 'tilt', '~>2.0.0'
77
gem 'slim', '~>2.0.0'
8-
gem 'thread_safe', '~> 0.1.3'
8+
#gem 'thread_safe', '~> 0.1.3'
9+
gem 'asciidoctor-pdf', '~>1.5.0.alpha.6'
10+
#gem 'asciidoctor-pdf', :git => '[email protected]:asciidoctor/asciidoctor-pdf.git'
11+
gem 'coderay', '1.1.0'
12+
##gem 'thread-safe', '0.2.0'
913

1014
# guarding
1115
gem 'guard'

Rakefile

+6
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ task :guard do
5858
system "bundle exec guard"
5959
end
6060

61+
task :pdf do
62+
cmd = "bundle exec asciidoctor-pdf presentation.adoc"
63+
msg cmd
64+
system cmd or raise "ERROR: Running Asciidoctor PDF failed."
65+
end
66+
6167
# Execute Asciidoctor
6268
def run_asciidoctor(args)
6369
cmd = "bundle exec asciidoctor #{args}"

0 commit comments

Comments
 (0)