Commit 5424faa6 authored by George Adrian Stoica's avatar George Adrian Stoica
Browse files
parents 7e297f12 9e2d6ed7
Pipeline #138388 passed with stages
in 1 minute and 52 seconds
plugins {
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'org.asciidoctor.jvm.revealjs' version '3.3.2'
}
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
maven {
url 'http://rubygems-proxy.torquebox.org/releases'
}
}
dependencies {
asciidoctorGems 'rubygems:asciidoctor-revealjs:4.1.0' // asciidoctorGems 'rubygems:asciidoctor-revealjs:2.0.0'
}
asciidoctor {
sourceDir 'asciidoc'
sources {
include '*.adoc'
}
outputDir file('build/docs')
resources {
from('asciidoc') {
include '**/*.png'
}
into '.'
}
logDocuments = true
outputOptions {
backends 'html5'
}
}
asciidoctorj {
version = '2.4.3'
modules {
// diagram.use()
diagram.version '1.5.16'
}
// useIntermediateWorkDir = true
attributes toc: 'left', toclevels: 3,
'source-highlighter': 'highlightjs'
/*
extensions {
block_macro (name: 'tweet') { parent, target, attributes ->
String content = """<div class="tweet" data-src="https://twitter.com/${target}/status/${attributes.get('1')}"></div>"""
config.remove 'content_model'
createBlock(parent, "pass", [content], [:], config)
}
}
*/
}
asciidoctorRevealJs {
sourceDir 'revealjs'
sources {
include '*.adoc'
}
outputDir file('build/docs/slides')
resources {
from('revealjs') {
include 'images/**'
include '**/*.css'
}
into '.'
}
attributes 'sourceDir': 'revealjs',
'imagesDir': 'revealjs',
'icons':'font',
'iconfont-name': 'fontawesome-4.5.0'
revealjsOptions {
controls = true
slideNumber = true
progressBar = true
pushToHistory = true
overviewMode = true
touchMode = true
backgroundTransition = 'convex' //none , fade, slide, convex, concave, zoom
theme = 'white' //'black', 'beige' , 'league', 'night', 'serif', 'simple', 'sky', 'solarized'
}
plugins 'rajgoel/chart/Chart.min.js'
//plugins 'IainAndrew/footer-reveal/footer-reveal.min.js'
}
revealjs {
version '2.0.0' // why not '3.8.0'
templateGitHub {
organisation = 'hakimel'
repository = 'reveal.js'
tag = '3.8.0'
}
}
revealjsPlugins {
github 'rajgoel', {
organisation = 'rajgoel'
repository = 'reveal.js-plugins'
branch = 'master'
}
/*github 'IainAndrew', {
organisation = 'IainAndrew'
repository = 'footer-reveal'
branch = 'master'
}*/
}
build.dependsOn 'asciidoctor'
build.dependsOn 'asciidoctorRevealJs'
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<asciidoctorj.version>2.5.2</asciidoctorj.version> <asciidoctorj.version>2.5.2</asciidoctorj.version>
<asciidoctorj.diagram.version>2.2.0</asciidoctorj.diagram.version>
<jruby.version>9.2.9.0</jruby.version> <jruby.version>9.2.9.0</jruby.version>
<revealjs.version>3.9.2</revealjs.version> <revealjs.version>3.9.2</revealjs.version>
<!-- Use 'master' as version and remove the 'v' prefixing the download url to use the current snapshot version --> <!-- Use 'master' as version and remove the 'v' prefixing the download url to use the current snapshot version -->
...@@ -107,7 +108,30 @@ ...@@ -107,7 +108,30 @@
<artifactId>asciidoctorj</artifactId> <artifactId>asciidoctorj</artifactId>
<version>${asciidoctorj.version}</version> <version>${asciidoctorj.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram</artifactId>
<version>${asciidoctorj.diagram.version}</version>
</dependency>
<!-- Since asciidoctorj-diagram v2.2.0, uncomment to use specific version of plantuml or ditaa -->
<!--
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram-plantuml</artifactId>
<version>1.2021.8</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram-ditaamini</artifactId>
<version>1.0.0</version>
</dependency>
-->
</dependencies> </dependencies>
<configuration>
<requires>
<require>asciidoctor-diagram</require>
</requires>
</configuration>
<executions> <executions>
<execution> <execution>
<id>convert-to-html</id> <id>convert-to-html</id>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment