Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Sep 14, 2016
1 parent edd057b commit ad24115
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ Guillaume Grossetie <https://github.com/mogztter[@mogztter]>
In this example we are using the https://github.com/asciidoctor/asciidoctor-reveal.js[Reveal.js backend]:

```
npm install asciidoctor.js
npm install asciidoctor-reveal.js
```

```
IMPORTANT: `asciidoctor-reveal.js` and `asciidoctor-template.js` are not yet available on npmjs.com

```javascript
var asciidoctor = require('asciidoctor.js')();
var Asciidoctor = asciidoctor.Asciidoctor();
var Opal = asciidoctor.Opal;
Opal.load('nodejs');
Opal.load('pathname');
require('asciidoctor-reveal.js');
require('asciidoctor-template.js');

var options = Opal.hash({'safe': 'safe',
'template_dir': 'node_modules/asciidoctor-reveal.js/dist/templates',
'template_dir': 'node_modules/asciidoctor-reveal.js/templates',
'backend': 'revealjs'});

var content = '= Title\n\n' +
Expand Down

0 comments on commit ad24115

Please sign in to comment.