diff --git a/HACKING.adoc b/HACKING.adoc index 2d195a0a..76b32ba0 100644 --- a/HACKING.adoc +++ b/HACKING.adoc @@ -207,14 +207,13 @@ In order to test the Node package, you need to create a test project adjacent to Now, install the dependencies: - $ npm i --save asciidoctor.js@1.5.5-3 + $ npm i --save asciidoctor.js@1.5.6-preview.3 $ npm i --save ../asciidoctor-reveal.js NOTE: The relative portion of the last command is where you are installing the local `asciidoctor-reveal.js` version from. Then proceed as documented in the `README.adoc`. - == Release process . Update the version in `lib/asciidoctor-revealjs/version.rb` and `package.json` diff --git a/README.adoc b/README.adoc index 0d11b056..ccfb004b 100644 --- a/README.adoc +++ b/README.adoc @@ -133,14 +133,12 @@ Here we are converting a file named `presentation.adoc` into a reveal.js present ---- // Load asciidoctor.js and asciidoctor-reveal.js var asciidoctor = require('asciidoctor.js')(); -var Asciidoctor = asciidoctor.Asciidoctor(); - require('asciidoctor-reveal.js'); // Convert the document 'presentation.adoc' using the reveal.js converter -var attributes = 'revealjsdir=node_modules/reveal.js@'; +var attributes = {'revealjsdir': 'node_modules/reveal.js@'}; var options = {safe: 'safe', backend: 'revealjs', attributes: attributes}; -Asciidoctor.convertFile('presentation.adoc', options); // <1> +asciidoctor.convertFile('presentation.adoc', options); // <1> ---- <1> Creates a file named `presentation.html` (in the directory where command is run) @@ -162,7 +160,7 @@ Asciidoctor.convertFile('presentation.adoc', options); // <1> To render the slides, run: - node asciidoctor-reveal.js + node asciidoctor-revealjs.js You can open the `presentation.html` file in your browser and enjoy!