Skip to content

Commit 75b9a57

Browse files
committed
add asciidoctor pusg to gh-pages branch
1 parent f691c10 commit 75b9a57

12 files changed

Lines changed: 216 additions & 2024 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ before_install:
2222
script:
2323
# docs
2424
- export parent=$(pwd)
25-
- bash gradlew clean build docs
25+
- bash gradlew clean build asciidoctor #docs
2626
# kotlin-kafka
2727
- cd ${parent}/kotlin-kafka
2828
- wget -O kafka.jar https://github.com/daggerok/embedded-kafka/raw/mvn-repo/daggerok/embedded-kafka/0.0.1/embedded-kafka-0.0.1.jar

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ link:https://daggerok.github.io/java-ee-examples[Documentation]
88

99
. link:./kotlin-kafka/[Kafka EE]
1010
. link:./kotlin-swarm/[Kotlin Wildfly Swarm]
11-
. link:https://github.com/daggerok/axon-examples/tree/master/java-ee[Axon Framework + JavaEE]
11+
. link:https://github.com/daggerok/java-ee-examples/tree/master/java-ee[Axon Framework + JavaEE]
1212
. link:https://github.com/daggerok/event-driven-examples/tree/master/java-ee[JavaEE event-driven]
1313
. link:./java-kube-ee[deploy java-ee on kubernetes]
1414
. link:./java-ee-7-docker-jboss-eap-6.4-quickstart[java ee 7 docker jboss-eap-6.4 boilerplate]

docs/README.adoc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
= problem solving
2+
3+
.if your build is failed, like so:
4+
----
5+
./gradlew clean docs
6+
7+
FAILURE: Build failed with an exception.
8+
9+
* What went wrong:
10+
Execution failed for task ':docs:gitPublishCommit'.
11+
> Exception caught during execution of add command
12+
13+
* Try:
14+
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
15+
16+
* Get more help at https://help.gradle.org
17+
18+
BUILD FAILED
19+
----
20+
21+
.just run build command again:
22+
----
23+
bash ./gradlew clean docs
24+
----

docs/build.gradle

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
buildscript {
2+
ext {
3+
asciidocBuildDir = "$buildDir/asciidoc"
4+
}
5+
}
6+
7+
plugins {
8+
id "base"
9+
id "org.asciidoctor.convert" version "1.5.6"
10+
id "org.ajoberstar.git-publish" version "0.2.2"
11+
}
12+
13+
version "0.0.1"
14+
group "daggerok"
15+
16+
asciidoctorj {
17+
version = "1.5.5"
18+
}
19+
20+
asciidoctor {
21+
sourceDir = project.file("src")
22+
sources {
23+
include "index.adoc"
24+
}
25+
outputDir = project.file("$asciidocBuildDir")
26+
attributes toc: "left",
27+
idprefix: "",
28+
docinfo1: "",
29+
icons: "font",
30+
idseparator: "-",
31+
setanchors: "true",
32+
"source-highlighter": "coderay",
33+
"toc-title": "Table of Contents",
34+
"build-gradle": file("build.gradle"),
35+
"endpoint-url": "https://daggerok.github.io/java-ee-examples"
36+
}
37+
38+
gitPublish {
39+
40+
repoUri = "git@github.com:daggerok/java-ee-examples.git"
41+
branch = "gh-pages"
42+
43+
contents {
44+
from("$asciidocBuildDir/html5")
45+
from("$projectDir/src/static") {
46+
into "."
47+
}
48+
}
49+
50+
commitMessage = "Documentation for ${project.group}:${project.name}:$project.version"
51+
}
52+
53+
gitPublishPush.dependsOn asciidoctor
54+
gitPublishPush.shouldRunAfter clean, asciidoctor, build
55+
56+
task docs(dependsOn: gitPublishPush)
57+
58+
task wrapper(type: Wrapper) {
59+
gradleVersion = "4.0"
60+
distributionType = "BIN"
61+
}

docs/index.html

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

docs/src/docinfo.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<style>
2+
body {
3+
font-size: 1.25em;
4+
}
5+
</style>
6+
7+
<meta name="keywords" content="java, javaee, java-ee, wildfly-swarm, microprofile, documentation">
8+
<meta name="description" content="Spring and spring-boot playground projects documentation.">
9+
10+
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.js"></script>-->
11+
12+
<!-- see https://codepo8.github.io/css-fork-on-github-ribbon/ -->
13+
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
14+
<div>
15+
<a href="https://github.com/daggerok/java-ee-examples">
16+
<img style="position: absolute; top: 0; right: 0; border: 0;"
17+
src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"
18+
alt="Don't fork me!">
19+
</a>
20+
</div>
21+
22+
<style>
23+
#content {
24+
max-width: 95%;
25+
}
26+
</style>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This documentation contains some help to
2+
link:{github_url}[examples from java-ee-examples repository].
3+
It's contains some JavaEE Micro-profile playground projects

docs/src/includes/Links.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
. link:http://asciidoctor.org/docs/user-manual/#builtin-attributes[Asciidoctor attributes]

docs/src/index.adoc

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
= JavaEE examples {project-name} ({project-version}) image:https://travis-ci.org/daggerok/java-ee-examples.svg?branch=master["Build Status", link={github_url}]
2+
Maksim Kostromin <daggerok@gmail.com>
3+
{docdatetime}
4+
:toc:
5+
:revnumber: {project-version}
6+
:example-caption!:
7+
:icons: font
8+
:toc: left
9+
:numbered:
10+
:github_url: https://github.com/daggerok/java-ee-examples
11+
:github_branch_prefix: {github_url}/tree
12+
13+
[discrete]
14+
== Introduction
15+
include::includes/Introduction.adoc[]
16+
17+
._MicroProfile 1.0 (CDI + JAX-RS + JSON-P)_
18+
----
19+
<dependencyManagement>
20+
<dependencies>
21+
<dependency>
22+
<groupId>org.wildfly.swarm</groupId>
23+
<artifactId>bom-all</artifactId>
24+
<version>${version.wildfly.swarm}</version>
25+
<scope>import</scope>
26+
<type>pom</type>
27+
</dependency>
28+
</dependencies>
29+
</dependencyManagement>
30+
----
31+
32+
include::../../kotlin-kafka/README.adoc[tags=content]
33+
include::../../kotlin-swarm/README.adoc[tags=content]
34+
35+
== JavaEE Wildfly-Swarm Micro-Profile using Gradle
36+
include::../../wildfly-swarm-gradle/README.adoc[tags=content]
37+
38+
== JavaEE Wildfly-Swarm Micro-Profile using Maven
39+
include::../../wildfly-swarm-maven/README.adoc[tags=content]
40+
41+
== Kumuluzee MicroProfile 1.0
42+
include::../../kumuluzee-microprofile-1.0/README.adoc[tags=content]
43+
44+
== JavaEE Kubernetes
45+
include::../../java-kube-ee/README.adoc[tags=content]
46+
47+
== JavaEE using Kotlin
48+
include::../../java-kube-ee/README.adoc[tags=content]
49+
include::../../kotlin-plugins-java-ee/README.adoc[tags=content]
50+
include::../../main-swarm-rest-api/README.adoc[tags=content]
51+
include::../../main-swarm-static-content/README.adoc[tags=content]
52+
include::../../kotlin-java-ee-payara-docker/README.adoc[tags=content]
53+
include::../../kotlin-javaee-cdi-h2/README.adoc[tags=content]
54+
55+
_Just JBoss EAP in Docker_
56+
57+
== JBoss EAP in Docker
58+
include::../../jboss-eap-ext.js/README.adoc[tags=content]
59+
include::../../xmlrpc/README.adoc[tags=content]
60+
include::../../ear/README.adoc[tags=content]
61+
include::../../ejb-2/README.adoc[tags=content]
62+
include::../../timer/README.adoc[tags=content]
63+
include::../../timer-async-ejb/README.adoc[tags=content]
64+
include::../../ejb-3-java-ee-7/README.adoc[tags=content]
65+
include::../../ejb-stateful-singleton/README.adoc[tags=content]
66+
include::../../jboss-eap-h2-ejb/README.adoc[tags=content]
67+
include::../../plain-http-servlet/README.adoc[tags=content]
68+
69+
== TomEE in Docker
70+
include::../../tomee-ext.js/README.adoc[tags=content]
71+
72+
== Glassfisg in Docker
73+
include::../../glassfish-ext.js/README.adoc[tags=content]
74+
75+
== JBoss WildFly (mvnw / gradlew) in Docker
76+
include::../../forge-ws/README.adoc[tags=content]
77+
78+
== JBoss forge / WildFly Java EE 6 / JAX-WS
79+
include::../../forge-javaee-6-ws/README.adoc[tags=content]
80+
81+
_MicroProfile 1.1.0 (CDI + JAX-RS + JSON-P)_
82+
83+
TODO
84+
85+
_MicroProfile 1.2 (CDI + JAX-RS + JSON-P)_
86+
87+
== Kumuluzee MicroProfile 2.0 (config.yaml)
88+
include::../../kumuluzee-config/README.adoc[tags=content]
89+
90+
== Kumuluzee MicroProfile 2.0 (JAX-WS)
91+
include::../../kumuluzee-mp-2.0-jax-ws/README.adoc[tags=content]
92+
93+
== links
94+
include::includes/Links.adoc[]
95+
96+
== Enjoy! :)

0 commit comments

Comments
 (0)