Skip to content

Commit

Permalink
First cut at asciidoc based guide
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Jun 19, 2014
1 parent 0b0a3cd commit d235178
Show file tree
Hide file tree
Showing 14 changed files with 1,899 additions and 1 deletion.
29 changes: 29 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,20 @@ apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'org.asciidoctor.gradle.asciidoctor'

sourceCompatibility = 1.6
targetCompatibility = 1.6

buildscript {
repositories {
jcenter()
}

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

final javafxHome = System.env['JAVAFX_HOME']
if (javafxHome) {
project.ext.javafxJar = "${javafxHome}/rt/lib/jfxrt.jar"
Expand Down Expand Up @@ -112,3 +121,23 @@ idea {
}
}
}

asciidoctor {
baseDir = project.file('src/asciidoc')
options = [
attributes: [
toc : 'left',
doctype : 'book',
icons : 'font',
encoding : 'utf-8',
sectlink : true,
sectanchors : true,
numbered : true,
linkattrs : true,
stylesheet : 'src/asciidoc-resources/css/style.css',
'source-highlighter' : 'coderay',
'groovyfx-version' : project.version
]
]
sourceDocumentName = project.file('src/asciidoc/index.adoc')
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ group = org.codehaus.groovyfx
archivesBaseName = groovyfx
version = 0.4.1-SNAPSHOT
groovyfx_requiredJavaFxVersion = 2.2*|8.0.*
groovyfx_groovyVersion = 2.3.2
groovyfx_groovyVersion = 2.3.3
groovyfx_asmVersion = 5.0.3
groovyfx_junitVersion = 4.11
Loading

0 comments on commit d235178

Please sign in to comment.