diff --git a/.gitignore b/.gitignore index 4edadc375520a2450d1b1e68059b8c4964aad058..fd3b3b874e30a8e9e615b62f852a485cbf273049 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ /build/ combined.bib -src/docs/asciidoc/*.adoc diff --git a/build.gradle b/build.gradle index 58a31a95fcec488fa28f84ef25b192a2775ef473..f5272243394ece8c404ce9f51c10a243679426ec 100644 --- a/build.gradle +++ b/build.gradle @@ -1,18 +1,3 @@ -import freemarker.template.Configuration - -import org.yaml.snakeyaml.Yaml - -buildscript { - repositories { - mavenCentral() - } - - dependencies { - classpath 'org.freemarker:freemarker:2.3.31' - classpath 'org.yaml:snakeyaml:1.29' - } -} - plugins { id "org.asciidoctor.jvm.convert" version "3.3.2" id "org.asciidoctor.jvm.gems" version "3.3.2" @@ -23,8 +8,6 @@ wrapper { gradleVersion = "7.4.2" } -def cfg = new Configuration() - repositories { mavenCentral() ruby.gems() @@ -52,35 +35,8 @@ task bibtex() { } } -task buildMaindocs() { - def templateFileName = "src/docs/templates/handbook.ftlh" - def configFile = file("config.yaml") - def chapterDir = file("src/docs/chapter") - def outputDir = file("src/docs/asciidoc") - - inputs.files(templateFileName, configFile) - inputs.dir(chapterDir) - outputs.dir(outputDir) - - doLast { - def template = cfg.getTemplate(templateFileName) - def parser = new Yaml() - def books = parser.loadAll(configFile.text) - books.each {book -> - def includes = [] - book.content.each {dir -> - includes << fileTree(new File(chapterDir, dir)).collect().sort() - } - book.directories = includes - new File(outputDir, book.file).withWriter("UTF-8") {w -> - template.process(book, w) - } - } - } -} - asciidoctor { - dependsOn = [bibtex, asciidoctorGemsPrepare, buildMaindocs] + dependsOn = [bibtex, asciidoctorGemsPrepare] options doctype: 'book' @@ -119,9 +75,6 @@ asciidoctor { } clean { - delete(fileTree('src/docs/asciidoc') { - include '*.adoc' - }) delete('src/docs/asciidoc/combined.bib') } diff --git a/config.yaml b/config.yaml deleted file mode 100644 index d7facdd64712ab3d4b4812d49965236a77d79191..0000000000000000000000000000000000000000 --- a/config.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -file: prob_handbook.adoc -title: ProB Handbook -authors: - - Jens Bendisposto - - Joy Clark - - Michael Leuschel -content: - - user diff --git a/src/docs/asciidoc/DO_NOT_SAVE_ADOC_FILES_IN_THIS_FOLDER b/src/docs/asciidoc/DO_NOT_SAVE_ADOC_FILES_IN_THIS_FOLDER deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/src/docs/asciidoc/prob_handbook.adoc b/src/docs/asciidoc/prob_handbook.adoc new file mode 100644 index 0000000000000000000000000000000000000000..afba978a5823149d088a67d2ef8eef532104c9b9 --- /dev/null +++ b/src/docs/asciidoc/prob_handbook.adoc @@ -0,0 +1,41 @@ += ProB Handbook +Jens Bendisposto;Joy Clark;Michael Leuschel + +:xrefstyle: short +:toc: + +:leveloffset: +1 + +include::../chapter/user/00_introduction.adoc[] + +include::../chapter/user/65_Java_2-0_API/00_section_header.adoc[] + +include::../chapter/user/65_Java_2-0_API/01_introduction.adoc[] + +include::../chapter/user/65_Java_2-0_API/02_architecture.adoc[] + +include::../chapter/user/65_Java_2-0_API/03_installation.adoc[] + +include::../chapter/user/65_Java_2-0_API/04_lowlevelapi.adoc[] + +include::../chapter/user/65_Java_2-0_API/05_probcore.adoc[] + +include::../chapter/user/65_Java_2-0_API/06_animation.adoc[] + +include::../chapter/user/65_Java_2-0_API/07_evaluation.adoc[] + +include::../chapter/user/65_Java_2-0_API/08_cosimulation.adoc[] + +include::../chapter/user/65_Java_2-0_API/09_dependencyinjection.adoc[] + +include::../chapter/user/65_Java_2-0_API/10_program_synthesis.adoc[] + +include::../chapter/user/65_Java_2-0_API/ZZ_section_footer.adoc[] + +include::../chapter/user/ZZ_Appendix/00_section_header.adoc[] + +include::../chapter/user/ZZ_Appendix/A_literature.adoc[] + +include::../chapter/user/ZZ_Appendix/ZZ_section_footer.adoc[] + +:leveloffset: -1 diff --git a/src/docs/templates/handbook.ftlh b/src/docs/templates/handbook.ftlh deleted file mode 100644 index 30d4ca0319f3b2dbc1145e6c67444e898461f50a..0000000000000000000000000000000000000000 --- a/src/docs/templates/handbook.ftlh +++ /dev/null @@ -1,15 +0,0 @@ -= ${title} -${authors?join(";", "")} - -:xrefstyle: short -:toc: - -<#list directories as directory> -:leveloffset: +1 - -<#list directory as file> -include::${file}[] - -</#list> -:leveloffset: -1 -</#list>