Skip to content

Commit

Permalink
Configure asciidoctor-gradle-plugin
Browse files Browse the repository at this point in the history
Based on instructions at:

 - https://github.com/asciidoctor/asciidoctor-gradle-plugin#installation

With the following as "hello world" Asciidoc content:

 - https://gist.github.com/mojavelinux/9a8d3f1d32a8f0656a42

Usage:

 - Run `./gradlew asciidoc`
 - Open `build/asciidoc/hello.html`

See #91
  • Loading branch information
cbeams committed Oct 7, 2014
1 parent 2eb5428 commit ae721f8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
buildscript {
repositories {
jcenter()
}

dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.0'
}
}

apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'org.asciidoctor.gradle.asciidoctor'
apply from: 'gradle/javafx.gradle'

version = '0.1.0-SNAPSHOT'
Expand Down
14 changes: 14 additions & 0 deletions src/asciidoc/hello.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
= Hello, AsciiDoc!
Doc Writer <doc@example.com>
:showtitle:

An introduction to http://asciidoc.org[AsciiDoc].

== First Section

* item 1
* item 2

[source,ruby]
puts "Hello, World!"

0 comments on commit ae721f8

Please sign in to comment.