From 6816cdae37fdb94e1a1987652cd42d67732596b9 Mon Sep 17 00:00:00 2001 From: Wendell Piez Date: Tue, 4 Jun 2019 15:57:26 -0400 Subject: [PATCH] Repaired broken path logic in docs generation (#4) --- build/ci-cd/generate-model-documentation.sh | 3 ++- build/metaschema/xml/produce-and-run-either-documentor.xsl | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/ci-cd/generate-model-documentation.sh b/build/ci-cd/generate-model-documentation.sh index 6c4dbf7ee8..bebe27443b 100644 --- a/build/ci-cd/generate-model-documentation.sh +++ b/build/ci-cd/generate-model-documentation.sh @@ -41,7 +41,8 @@ while IFS="|" read path gen_schema gen_converter gen_docs || [[ -n "$path" ]]; d base="${filename/_metaschema/}" converter="$working_dir/json/convert/${base}_xml-to-json-converter.xsl" metaschema_path=$(realpath --relative-to="$working_dir" "$metaschema") - converter_path=$(realpath --relative-to="$working_dir" "$converter") + stylesheet_dir=$(dirname "$stylesheet") + converter_path=$(realpath --relative-to="$stylesheet_dir" "$converter") #split on commas IFS=, read -a formats <<< "$gen_docs" diff --git a/build/metaschema/xml/produce-and-run-either-documentor.xsl b/build/metaschema/xml/produce-and-run-either-documentor.xsl index 03fe77769b..c0a4452713 100644 --- a/build/metaschema/xml/produce-and-run-either-documentor.xsl +++ b/build/metaschema/xml/produce-and-run-either-documentor.xsl @@ -55,7 +55,6 @@ -