From 5c4e56ce9b48a6c8fa520acba45bbbd348560e18 Mon Sep 17 00:00:00 2001
From: rschoene <rene.schoene@tu-dresden.de>
Date: Sun, 27 Jun 2021 15:40:26 +0200
Subject: [PATCH] 0.2.9

- fixed paths used in pages
---
 .gitlab-ci.yml                                               | 2 +-
 pages/docs/index.md                                          | 2 +-
 pages/mkdocs.yml                                             | 3 ++-
 .../preprocessor/testing/doc/DocumentationCreator.java       | 5 ++++-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0852b85..5a4afe8 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 f1cea28..d8ba656 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 fb8ee7d..dc3983f 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 dc3789c..efedd79 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) {
-- 
GitLab