Skip to content

Commit

Permalink
Merge pull request #3 from FatihBozik/fea/fb/deploy-to-gh-pages
Browse files Browse the repository at this point in the history
Create docs module for deploying adoc files to h-pages
  • Loading branch information
FatihBozik authored Nov 17, 2019
2 parents 5d45a9a + 97a314b commit c2a9da9
Show file tree
Hide file tree
Showing 17 changed files with 88 additions and 15 deletions.
20 changes: 10 additions & 10 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Sole purpose of using & sharing the notes and code here is to get ready for the
// when rendering AsciiDoc lists
++++
<ol>
<li><a href="advanced-class-design/README.adoc">Advanced Class Design</a></li>
<li><a href="design-patterns-and-principles/README.adoc">Design Patterns and Principles</a></li>
<li><a href="generics-and-collections/README.adoc">Generics and Collections</a></li>
<li><a href="functional-programming/README.adoc">Functional Programming</a></li>
<li><a href="dates-strings-and-localization/README.adoc">Dates, Strings, and Localization</a></li>
<li><a href="exceptions-and-assertions/README.adoc">Exceptions and Assertions</a></li>
<li><a href="concurrency/README.adoc">Concurrency</a></li>
<li><a href="io/README.adoc">IO</a></li>
<li><a href="nio-2/README.adoc">NIO.2</a></li>
<li><a href="jdbc/README.adoc">JDBC</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch1-advanced-class-design.adoc">Advanced Class Design</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch2-design-patterns-and-principles.adoc">Design Patterns and Principles</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch3-generics-and-collections.adoc">Generics and Collections</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch4-functional-programming.adoc">Functional Programming</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch5-dates-strings-and-localization.adoc">Dates, Strings, and Localization</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch6-exceptions-and-assertions.adoc">Exceptions and Assertions</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch7-concurrency.adoc">Concurrency</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch8-io.adoc">IO</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch9-nio-2.adoc">NIO.2</a></li>
<li><a href="docs/src/docs/asciidoc/chapters/ch10-jdbc.adoc">JDBC</a></li>
</ol>
++++
2 changes: 1 addition & 1 deletion advanced-class-design/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dependencies {
compile 'org.apache.commons:commons-lang3:3.9'
}
}
4 changes: 1 addition & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ allprojects {

subprojects {
apply plugin: 'java'
apply plugin: 'application'

version = '1.0'
}
}
35 changes: 35 additions & 0 deletions docs/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.6.1'
}
}

plugins {
id 'org.asciidoctor.convert' version '2.3.0'
id 'org.ajoberstar.git-publish' version '2.1.1'
}

version = '0.02'

asciidoctorj {
version = '2.1.0'
}

asciidoctor {
backends 'html5'
sources {
include 'index.adoc'
}
}

gitPublish {
repoUri = '[email protected]:FatihBozik/ocp8-study-guide.git'
branch = 'gh-pages'
contents {
from 'build/asciidoc/html5'
}
commitMessage = 'Publishing a new version'
}
12 changes: 12 additions & 0 deletions docs/src/docs/asciidoc/attributes.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
:encoding: utf-8
:lang: en
:author: Fatih Bozik
:doctitle: Certified Professional: Java SE 8 Programmer II Notes

:toc: left
:toclevels: 3
:sectnums:
:chapter-label:
:revremark: {docdate}

:title-logo-image: image::logo.svg[align=center, pdfwidth=2.5in]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 27 additions & 0 deletions docs/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
include::attributes.adoc[]

= {doctitle}

include::chapters/ch1-advanced-class-design.adoc[Advanced Class Design]

include::chapters/ch2-design-patterns-and-principles.adoc[Design Patterns and Principles]

include::chapters/ch3-generics-and-collections.adoc[Generics and Collections]

include::chapters/ch4-functional-programming.adoc[Functional Programming]

include::chapters/ch5-dates-strings-and-localization.adoc[Dates,Strings,and Localization]

include::chapters/ch6-exceptions-and-assertions.adoc[Exceptions and Assertions]

include::chapters/ch7-concurrency.adoc[Concurrency]

include::chapters/ch8-io.adoc[IO]

include::chapters/ch9-nio-2.adoc[NIO.2]

include::chapters/ch10-jdbc.adoc[JDBC]




3 changes: 2 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ rootProject.name = 'ocp8-study-guide'

include 'advanced-class-design'
include 'design-patterns-and-principles'
include 'docs'
include 'generics-and-collections'
include 'functional-programming'
include 'dates-strings-and-localization'
include 'exceptions-and-assertions'
include 'concurrency'
include 'io'
include 'nio-2'
include 'jdbc'
include 'jdbc'

0 comments on commit c2a9da9

Please sign in to comment.