Skip to content

Instantly share code, notes, and snippets.

@fwilhe
Created November 11, 2015 10:39
Show Gist options
  • Save fwilhe/241e17f7789be93e61da to your computer and use it in GitHub Desktop.
Save fwilhe/241e17f7789be93e61da to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.2'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.8'
}
}
plugins {
id 'org.asciidoctor.convert' version '1.5.2'
}
apply plugin: 'org.asciidoctor.convert'
defaultTasks 'asciidoctor'
asciidoctor {
backends 'pdf', 'html5'
attributes 'build-gradle': file('build.gradle'),
'endpoint-url': 'http://example.org',
'source-highlighter' : 'coderay',
'toc':'left',
'icons': 'font',
'setanchors':'true',
'idprefix':'',
'idseparator':'-',
'docinfo1':'true'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment