diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0852b85d1e6131761af24927b90db74c240f0b66..5a4afe8f3713d4d4d5957fe1e5a6417e267644c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,7 @@ createDoc: - "./gradlew :run" artifacts: paths: - - "pages/doc/config.md" + - "pages/docs/config.md" publish: image: openjdk:11 diff --git a/pages/docs/index.md b/pages/docs/index.md index f1cea28f98e7132947b34d7ec93d313975778419..d8ba65651af03f2d476936d49768c4b7e87de6c8 100644 --- a/pages/docs/index.md +++ b/pages/docs/index.md @@ -53,7 +53,7 @@ task compileTreeIncremental(type: RagConnectTest) { } ``` -Available options are listed at [configuration](/config). +Available options are listed at [configuration](config). Notably, all options passed to JastAdd are also passed to the preprocessors, and generated files are handled correctly, e.g., generated aspects are passed to JastAdd automatically. The compilers to be used can be configured as follows: diff --git a/pages/mkdocs.yml b/pages/mkdocs.yml index fb8ee7ddc24e316fdf11834892224c4d8103cfb0..dc3983fd0e9b273734779ea8095e04b295c8e747 100644 --- a/pages/mkdocs.yml +++ b/pages/mkdocs.yml @@ -12,6 +12,7 @@ plugins: locale: en fallback_to_build_date: True - macros -repo_url: https://git-st.inf.tu-dresden.de/jastadd/preprocessors/coverage-generator +repo_url: https://git-st.inf.tu-dresden.de/jastadd/testing site_dir: ../public site_url: https://jastadd.pages.st.inf.tu-dresden.de/testing +use_directory_urls: true diff --git a/src/main/java/org/jastadd/preprocessor/testing/doc/DocumentationCreator.java b/src/main/java/org/jastadd/preprocessor/testing/doc/DocumentationCreator.java index dc3789cd1b5584a472db437856aa71b884bb023b..efedd7998fb33460507ee3097db1131ad1e29393 100644 --- a/src/main/java/org/jastadd/preprocessor/testing/doc/DocumentationCreator.java +++ b/src/main/java/org/jastadd/preprocessor/testing/doc/DocumentationCreator.java @@ -12,6 +12,7 @@ import java.io.BufferedWriter; import java.io.IOException; import java.lang.reflect.Method; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.util.ArrayList; @@ -45,7 +46,9 @@ public class DocumentationCreator { } return e1[0].compareTo(e2[0]); }); - try(BufferedWriter writer = Files.newBufferedWriter(Paths.get(outputFile), + Path outputPath = Paths.get(outputFile); + System.out.println("Writing to " + outputPath.toAbsolutePath()); + try(BufferedWriter writer = Files.newBufferedWriter(outputPath, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) { writer.write(HEADER); for (Map.Entry<String, Class<?>> entry : entitiesToBeDocumented) {