{"action":"created","issue":{"url":"https://api.github.com/repos/takezoe/gitbucket/issues/616","labels_url":"https://api.github.com/repos/takezoe/gitbucket/issues/616/labels{/name}","comments_url":"https://api.github.com/repos/takezoe/gitbucket/issues/616/comments","events_url":"https://api.github.com/repos/takezoe/gitbucket/issues/616/events","html_url":"https://github.com/takezoe/gitbucket/pull/616","id":56137009,"number":616,"title":"(Optional) AsciiDoc Renderer","user":{"login":"lefou","id":1321393,"avatar_url":"https://avatars.githubusercontent.com/u/1321393?v=3","gravatar_id":"","url":"https://api.github.com/users/lefou","html_url":"https://github.com/lefou","followers_url":"https://api.github.com/users/lefou/followers","following_url":"https://api.github.com/users/lefou/following{/other_user}","gists_url":"https://api.github.com/users/lefou/gists{/gist_id}","starred_url":"https://api.github.com/users/lefou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lefou/subscriptions","organizations_url":"https://api.github.com/users/lefou/orgs","repos_url":"https://api.github.com/users/lefou/repos","events_url":"https://api.github.com/users/lefou/events{/privacy}","received_events_url":"https://api.github.com/users/lefou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-01-31T19:55:22Z","updated_at":"2015-06-04T12:02:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/takezoe/gitbucket/pulls/616","html_url":"https://github.com/takezoe/gitbucket/pull/616","diff_url":"https://github.com/takezoe/gitbucket/pull/616.diff","patch_url":"https://github.com/takezoe/gitbucket/pull/616.patch"},"body":"This PR enabled support for the AsciiDoc markup language. The renderer is based on Asciidoctor and the AsciidoctorJ project, which provides a Java API for the Ruby/JRuby based rendering engine. Unfortunately the required jruby runtime add lots of dependencies to the project (only four, but jruby-complete is about 22MB large). As this size is considered too large by @takezoe (see #288), this PR only provides the support but not the dependencies.\r\n\r\nAt runtime (or to be exact at initalization time) the renderer tries to load some required classes. If they are not found, the Asciidoc renderer will be disabled.\r\n\r\nTo enable the renderer, the GitBucket operator need to provided the following dependencies:\r\n\r\n- org.asciidoctor:asciidoctorj:1.5.2\r\n- org.jruby:jruby-complete:1.7.16.1\r\n- org.slf4j:slf4j-api:1.7.7\r\n- net.sourceforge.htmlcleaner:htmlcleaner:2.10\r\n\r\nOther versions may work as well.\r\n\r\nThis PR is based on my Asciidoc branch, which I maintain since the support was removed from GitBucket (see #288). It runs without any hassle on at least two installations. The refactorings to make it optional are fairly new though.\r\n"},"comment":{"url":"https://api.github.com/repos/takezoe/gitbucket/issues/comments/108861327","html_url":"https://github.com/takezoe/gitbucket/pull/616#issuecomment-108861327","issue_url":"https://api.github.com/repos/takezoe/gitbucket/issues/616","id":108861327,"user":{"login":"takezoe","id":1094760,"avatar_url":"https://avatars.githubusercontent.com/u/1094760?v=3","gravatar_id":"","url":"https://api.github.com/users/takezoe","html_url":"https://github.com/takezoe","followers_url":"https://api.github.com/users/takezoe/followers","following_url":"https://api.github.com/users/takezoe/following{/other_user}","gists_url":"https://api.github.com/users/takezoe/gists{/gist_id}","starred_url":"https://api.github.com/users/takezoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takezoe/subscriptions","organizations_url":"https://api.github.com/users/takezoe/orgs","repos_url":"https://api.github.com/users/takezoe/repos","events_url":"https://api.github.com/users/takezoe/events{/privacy}","received_events_url":"https://api.github.com/users/takezoe/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T12:02:21Z","updated_at":"2015-06-04T12:02:21Z","body":"@lefou I started to add new extension point to add markup renders such as Asciidoc. It will be available in the next release. However plug-in system and API is still unstable. We are struggling for it. So I can't say about it clearly now."}}