{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/issues/95","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/issues/95/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/issues/95/events","html_url":"https://github.com/asciidoctor/asciidoctor-reveal.js/pull/95","id":176999113,"number":95,"title":"Adds package.json","user":{"login":"Mogztter","id":333276,"avatar_url":"https://avatars.githubusercontent.com/u/333276?v=3","gravatar_id":"","url":"https://api.github.com/users/Mogztter","html_url":"https://github.com/Mogztter","followers_url":"https://api.github.com/users/Mogztter/followers","following_url":"https://api.github.com/users/Mogztter/following{/other_user}","gists_url":"https://api.github.com/users/Mogztter/gists{/gist_id}","starred_url":"https://api.github.com/users/Mogztter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mogztter/subscriptions","organizations_url":"https://api.github.com/users/Mogztter/orgs","repos_url":"https://api.github.com/users/Mogztter/repos","events_url":"https://api.github.com/users/Mogztter/events{/privacy}","received_events_url":"https://api.github.com/users/Mogztter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/labels/node/jade","name":"node/jade","color":"c2e0c6"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":57,"created_at":"2016-09-14T19:33:05Z","updated_at":"2016-10-01T07:56:11Z","closed_at":"2016-09-28T19:08:43Z","pull_request":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/pulls/95","html_url":"https://github.com/asciidoctor/asciidoctor-reveal.js/pull/95","diff_url":"https://github.com/asciidoctor/asciidoctor-reveal.js/pull/95.diff","patch_url":"https://github.com/asciidoctor/asciidoctor-reveal.js/pull/95.patch"},"body":"The goal is to make this backend easily available on the Node ecosystem.\r\nI've created a simple converter for Jade templates (compiled in JavaScript with Opal) that will be available soon on `npmjs`: https://github.com/Mogztter/asciidoctor-template.js\r\n\r\nWhen both projets will be published on `npmjs`, a user will be able to convert an AsciiDoc document into a Reveal.js presentation as follows:\r\n\r\n```sh\r\nnpm install asciidoctor.js # AFAIK this is only required on npm 2.x\r\nnpm install asciidoctor-reveal.js\r\n```\r\n\r\n```javascript\r\n// Loads Asciidoctor.js + Asciidoctor-template.js\r\nvar asciidoctor = require('asciidoctor.js')();\r\nvar Asciidoctor = asciidoctor.Asciidoctor();\r\nvar Opal = asciidoctor.Opal;\r\nOpal.load('nodejs');\r\nOpal.load('pathname');\r\nrequire('asciidoctor-template.js');\r\n\r\nvar options = Opal.hash({'safe': 'safe',\r\n                         'template_dir': 'node_modules/asciidoctor-reveal.js/templates',\r\n                         'backend': 'revealjs'});\r\n\r\nvar content = '...'; // AsciiDoc content\r\nvar result = Asciidoctor.$convert(content, options); // Congrats you have a Reveal.js presentation !\r\n```\r\n\r\nFeel free to add authors and a better description :smile: \r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/issues/comments/250899129","html_url":"https://github.com/asciidoctor/asciidoctor-reveal.js/pull/95#issuecomment-250899129","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-reveal.js/issues/95","id":250899129,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2016-10-01T07:56:11Z","updated_at":"2016-10-01T07:56:11Z","body":"> I hoped that we could override the README.adoc with some field in packages.json (something similar can be done in Pypi) but didn't find anything\r\n\r\nYes, that is possible. That's what we do for the bespoke plugins. You can see an example here: https://github.com/opendevise/bespoke-multimedia. What I do is transform the AsciiDoc to Markdown (abbreviated) and add it the readme field in package.json. That's one approach.\r\n\r\nThe approach is to use the Markdown compatibility support in Asciidoctor to get a reasonable interpretation of the AsciiDoc. See  http://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#markdown-compatibility.\r\n\r\nUltimately, we need to get npm to support AsciiDoc. Frankly, it's ridiculous that they don't."}}
{"actor":{"display_login":"mojavelinux"}}