asciidoctor breaks rendering deck.js backend

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

asciidoctor breaks rendering deck.js backend

bill turner
I've posted this on StackOverflow but have not received any love over there. http://stackoverflow.com/questions/29904527/asciidoctor-breaks-rendering-deck-js-backend

---

I am attempting to use the deck.js backend with asciidoctor. I followed the instructions at http://asciidoctor.org/docs/install-and-use-deckjs-backend/. I get the following error:

$ asciidoctor --trace -T asciidoctor-backends/haml deckjs-example.asciidoc 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- asciidoctor/stylesheets (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/worldwidewilly/Dropbox/presentations/adoc-deck/asciidoctor-backends/haml/deckjs/helpers.rb:1:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/renderer.rb:121:in `block in initialize'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/renderer.rb:69:in `each'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/renderer.rb:69:in `initialize'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/document.rb:743:in `new'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/document.rb:743:in `renderer'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/document.rb:752:in `render'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor.rb:915:in `render'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/cli/invoker.rb:86:in `block in invoke!'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/cli/invoker.rb:79:in `each'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/cli/invoker.rb:79:in `invoke!'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/bin/asciidoctor:13:in `<top (required)>'
    from /usr/local/bin/asciidoctor:23:in `load'
    from /usr/local/bin/asciidoctor:23:in `<main>'


My document - deckjs-example - looks like:

= Asciidoctor Deckjs Example
Bill Turner
:backend: deckjs
:deckjs_theme: web-2.0
:deckjs_transition: horizontal-slide
:navigation:
:blank:
:goto:
:menu:
:status:
:split:
:toc:

== Title of Slide One
Hello World!

[canvas-image="images/groovy.jpg"]
== Slide Two's Title will not be displayed

[role="canvas-caption", position="center-up"]
This text is displayed on top of the example.jpg image.


My directory contains all the things that I seem to need to have installed:

$ ls
total 32K
22021551 drwxr-xr-x 7 worldwidewilly worldwidewilly 4.0K Apr 27 13:38 asciidoctor-backends
24910534 drwxr-xr-x 8 worldwidewilly worldwidewilly 4.0K Apr 21 20:30 deck.js
  527971 -rw-r--r-- 1 worldwidewilly worldwidewilly  394 Apr 27 14:01 deckjs-example.asciidoc
26740079 drwxr-xr-x 2 worldwidewilly worldwidewilly 4.0K Apr 27 14:00 images

I presume a configuration problem. Searching has yet to reveal a solution - though I did find something here in this discussion group that looked very similar. However, the solutions did not seem to fit my situation.
Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor breaks rendering deck.js backend

LightGuardjp
Looks like you're using a MUCH older version of asciidoctor, 0.1.4. All the backends in that repo I believe have been updated to asciidoctor 1.5.x. The current version of asciidoctor is 1.5.2. Try updating asciidoctor and see if things work better. 

On Monday, April 27, 2015, bill turner [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I've posted this on StackOverflow but have not received any love over there. http://stackoverflow.com/questions/29904527/asciidoctor-breaks-rendering-deck-js-backend

---

I am attempting to use the deck.js backend with asciidoctor. I followed the instructions at http://asciidoctor.org/docs/install-and-use-deckjs-backend/. I get the following error:

$ asciidoctor --trace -T asciidoctor-backends/haml deckjs-example.asciidoc 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- asciidoctor/stylesheets (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /home/worldwidewilly/Dropbox/presentations/adoc-deck/asciidoctor-backends/haml/deckjs/helpers.rb:1:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/renderer.rb:121:in `block in initialize'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/renderer.rb:69:in `each'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/renderer.rb:69:in `initialize'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/document.rb:743:in `new'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/document.rb:743:in `renderer'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/document.rb:752:in `render'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor.rb:915:in `render'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/cli/invoker.rb:86:in `block in invoke!'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/cli/invoker.rb:79:in `each'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/lib/asciidoctor/cli/invoker.rb:79:in `invoke!'
    from /var/lib/gems/1.9.1/gems/asciidoctor-0.1.4/bin/asciidoctor:13:in `<top (required)>'
    from /usr/local/bin/asciidoctor:23:in `load'
    from /usr/local/bin/asciidoctor:23:in `<main>'


My document - deckjs-example - looks like:

= Asciidoctor Deckjs Example
Bill Turner
:backend: deckjs
:deckjs_theme: web-2.0
:deckjs_transition: horizontal-slide
:navigation:
:blank:
:goto:
:menu:
:status:
:split:
:toc:

== Title of Slide One
Hello World!

[canvas-image="images/groovy.jpg"]
== Slide Two's Title will not be displayed

[role="canvas-caption", position="center-up"]
This text is displayed on top of the example.jpg image.


My directory contains all the things that I seem to need to have installed:

$ ls
total 32K
22021551 drwxr-xr-x 7 worldwidewilly worldwidewilly 4.0K Apr 27 13:38 asciidoctor-backends
24910534 drwxr-xr-x 8 worldwidewilly worldwidewilly 4.0K Apr 21 20:30 deck.js
  527971 -rw-r--r-- 1 worldwidewilly worldwidewilly  394 Apr 27 14:01 deckjs-example.asciidoc
26740079 drwxr-xr-x 2 worldwidewilly worldwidewilly 4.0K Apr 27 14:00 images

I presume a configuration problem. Searching has yet to reveal a solution - though I did find something here in this discussion group that looked very similar. However, the solutions did not seem to fit my situation.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-breaks-rendering-deck-js-backend-tp3049.html
To start a new topic under Asciidoctor :: Discussion, email <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;ml-node%2Bs49171n1h37@n6.nabble.com&#39;);" target="_blank">ml-node+s49171n1h37@...
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--

Reply | Threaded
Open this post in threaded view
|

Re: asciidoctor breaks rendering deck.js backend

bill turner
In reply to this post by bill turner
I used the Linux Mint PPA to install asciidoctor. I should have known better. Thanks for the input. I will be offline for the next few days as I travel across the country by train (no wifi on the long haul Amtrak trains), but I did update the version, so I will be able to test it out. If I continue to have problems, I will post again after completing my journey.