Skip to content

Commit 3443b15

Browse files
committed
Migrate to Gradle
1 parent e88b0cd commit 3443b15

File tree

72 files changed

+518
-1658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+518
-1658
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
insert_final_newline = true
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 2

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Ignore Gradle project-specific cache directory
2+
.gradle
3+
4+
# Ignore Gradle build output directory
5+
build/
6+
7+
/node_modules/
8+
9+
.DS_Store
10+
11+
/.idea/
12+
*.iml

adoc/browser.adoc

Lines changed: 0 additions & 5 deletions
This file was deleted.

adoc/restaurant_recommendation.adoc

Lines changed: 0 additions & 122 deletions
This file was deleted.

build.gradle

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import org.asciidoctor.gradle.jvm.AsciidoctorTask
2+
import org.kordamp.gradle.livereload.LiveReloadTask
3+
4+
plugins {
5+
id 'org.asciidoctor.jvm.gems' version '3.1.0' apply false
6+
id 'org.asciidoctor.jvm.convert' version '3.1.0' apply false
7+
id 'org.kordamp.gradle.livereload' version '0.2.1' apply false
8+
}
9+
10+
subprojects {
11+
12+
apply plugin: 'org.asciidoctor.jvm.gems'
13+
14+
dependencies {
15+
asciidoctorGems 'rubygems:rouge:3.18.0'
16+
}
17+
18+
repositories {
19+
mavenCentral()
20+
jcenter()
21+
ruby {
22+
gems()
23+
}
24+
}
25+
26+
asciidoctorj {
27+
gemPaths "${rootProject.buildDir}/.asciidoctorGems"
28+
attributes 'allow-uri-read': '',
29+
'source-highlighter': 'rouge',
30+
'rouge-style': 'neo.forest',
31+
'presenter': 'Neo Technology',
32+
'twitter': 'neo4j',
33+
'email': '[email protected]',
34+
'currentyear': '2020',
35+
'experimental': ''
36+
}
37+
38+
asciidoctorGemsPrepare.with {
39+
outputDir = "${rootProject.buildDir}/.asciidoctorGems"
40+
}
41+
42+
task convert(type: AsciidoctorTask) {
43+
dependsOn asciidoctorGemsPrepare
44+
45+
inputs.dir "${rootProject.projectDir}/templates"
46+
47+
asciidoctorj {
48+
options template_dirs: ["${rootProject.projectDir}/templates"]
49+
attributes 'imagesdir': "http://localhost:35729/browser-guide/images",
50+
'allow-uri-read': '',
51+
'guides': "http://localhost:35729/browser-guide",
52+
'icons': 'font',
53+
'leveloffset': '+1',
54+
'env-guide': '',
55+
'guide': '',
56+
'sectanchors': ''
57+
}
58+
59+
resources {
60+
from("${projectDir}/images") {
61+
include '**'
62+
into 'images'
63+
}
64+
}
65+
66+
baseDir file("${projectDir}/docs")
67+
sourceDir file("${projectDir}/docs")
68+
outputDir file("${projectDir}/build/browser-guide")
69+
}
70+
71+
task httpServer(type: LiveReloadTask) {
72+
docRoot "${projectDir}/build"
73+
}
74+
}

docs/adoc-guides.adoc

Whitespace-only changes.

docs/html-guides.adoc

Lines changed: 0 additions & 140 deletions
This file was deleted.

docs/index.adoc

Whitespace-only changes.

0 commit comments

Comments
 (0)