diff --git a/README.adoc b/README.adoc index 63b2e48..04ff375 100644 --- a/README.adoc +++ b/README.adoc @@ -17,15 +17,15 @@ Sole purpose of using & sharing the notes and code here is to get ready for the // when rendering AsciiDoc lists ++++
    -
  1. Advanced Class Design
  2. -
  3. Design Patterns and Principles
  4. -
  5. Generics and Collections
  6. -
  7. Functional Programming
  8. -
  9. Dates, Strings, and Localization
  10. -
  11. Exceptions and Assertions
  12. -
  13. Concurrency
  14. -
  15. IO
  16. -
  17. NIO.2
  18. -
  19. JDBC
  20. +
  21. Advanced Class Design
  22. +
  23. Design Patterns and Principles
  24. +
  25. Generics and Collections
  26. +
  27. Functional Programming
  28. +
  29. Dates, Strings, and Localization
  30. +
  31. Exceptions and Assertions
  32. +
  33. Concurrency
  34. +
  35. IO
  36. +
  37. NIO.2
  38. +
  39. JDBC
++++ diff --git a/advanced-class-design/build.gradle b/advanced-class-design/build.gradle index d8c0673..8ba856c 100644 --- a/advanced-class-design/build.gradle +++ b/advanced-class-design/build.gradle @@ -1,3 +1,3 @@ dependencies { compile 'org.apache.commons:commons-lang3:3.9' -} \ No newline at end of file +} diff --git a/build.gradle b/build.gradle index 590e166..a35b288 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,5 @@ allprojects { subprojects { apply plugin: 'java' - apply plugin: 'application' - version = '1.0' -} \ No newline at end of file +} diff --git a/docs/build.gradle b/docs/build.gradle new file mode 100644 index 0000000..991c907 --- /dev/null +++ b/docs/build.gradle @@ -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 = 'git@github.com:FatihBozik/ocp8-study-guide.git' + branch = 'gh-pages' + contents { + from 'build/asciidoc/html5' + } + commitMessage = 'Publishing a new version' +} diff --git a/docs/src/docs/asciidoc/attributes.adoc b/docs/src/docs/asciidoc/attributes.adoc new file mode 100644 index 0000000..34615f5 --- /dev/null +++ b/docs/src/docs/asciidoc/attributes.adoc @@ -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] diff --git a/advanced-class-design/README.adoc b/docs/src/docs/asciidoc/chapters/ch1-advanced-class-design.adoc similarity index 100% rename from advanced-class-design/README.adoc rename to docs/src/docs/asciidoc/chapters/ch1-advanced-class-design.adoc diff --git a/jdbc/README.adoc b/docs/src/docs/asciidoc/chapters/ch10-jdbc.adoc similarity index 100% rename from jdbc/README.adoc rename to docs/src/docs/asciidoc/chapters/ch10-jdbc.adoc diff --git a/design-patterns-and-principles/README.adoc b/docs/src/docs/asciidoc/chapters/ch2-design-patterns-and-principles.adoc similarity index 100% rename from design-patterns-and-principles/README.adoc rename to docs/src/docs/asciidoc/chapters/ch2-design-patterns-and-principles.adoc diff --git a/generics-and-collections/README.adoc b/docs/src/docs/asciidoc/chapters/ch3-generics-and-collections.adoc similarity index 100% rename from generics-and-collections/README.adoc rename to docs/src/docs/asciidoc/chapters/ch3-generics-and-collections.adoc diff --git a/functional-programming/README.adoc b/docs/src/docs/asciidoc/chapters/ch4-functional-programming.adoc similarity index 100% rename from functional-programming/README.adoc rename to docs/src/docs/asciidoc/chapters/ch4-functional-programming.adoc diff --git a/dates-strings-and-localization/README.adoc b/docs/src/docs/asciidoc/chapters/ch5-dates-strings-and-localization.adoc similarity index 100% rename from dates-strings-and-localization/README.adoc rename to docs/src/docs/asciidoc/chapters/ch5-dates-strings-and-localization.adoc diff --git a/exceptions-and-assertions/README.adoc b/docs/src/docs/asciidoc/chapters/ch6-exceptions-and-assertions.adoc similarity index 100% rename from exceptions-and-assertions/README.adoc rename to docs/src/docs/asciidoc/chapters/ch6-exceptions-and-assertions.adoc diff --git a/concurrency/README.adoc b/docs/src/docs/asciidoc/chapters/ch7-concurrency.adoc similarity index 100% rename from concurrency/README.adoc rename to docs/src/docs/asciidoc/chapters/ch7-concurrency.adoc diff --git a/io/README.adoc b/docs/src/docs/asciidoc/chapters/ch8-io.adoc similarity index 100% rename from io/README.adoc rename to docs/src/docs/asciidoc/chapters/ch8-io.adoc diff --git a/nio-2/README.adoc b/docs/src/docs/asciidoc/chapters/ch9-nio-2.adoc similarity index 100% rename from nio-2/README.adoc rename to docs/src/docs/asciidoc/chapters/ch9-nio-2.adoc diff --git a/docs/src/docs/asciidoc/index.adoc b/docs/src/docs/asciidoc/index.adoc new file mode 100644 index 0000000..6d5ce04 --- /dev/null +++ b/docs/src/docs/asciidoc/index.adoc @@ -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] + + + + diff --git a/settings.gradle b/settings.gradle index 24f7a16..3fe0de1 100644 --- a/settings.gradle +++ b/settings.gradle @@ -2,6 +2,7 @@ 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' @@ -9,4 +10,4 @@ include 'exceptions-and-assertions' include 'concurrency' include 'io' include 'nio-2' -include 'jdbc' \ No newline at end of file +include 'jdbc'