diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3fc5044f9d82b10bef6663768bf5e5a937be2cbf..0b87157d54614c916cdde4ffe1980f3bf2c7f2f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,11 +6,28 @@ workflow: - if: $CI_COMMIT_BRANCH stages: + - markdown_test - preflight - compile - lint - build +# ----------------------------------------------------------- +# Markdown + +markdown: + stage: markdown_test + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + interruptible: true + script: + - cd 104196 + - ./publish.sh 001 ts_spec_template.docx 104196 ts_cover_skeleton.docx TS + artifacts: + paths: + - "104196/baseline/*.docx" + name: $CI_MERGE_REQUEST_TITLE + expire_in: 30 days # ----------------------------------------------------------- # Preflight diff --git a/104196/104196.md b/104196/TS_104196.md similarity index 99% rename from 104196/104196.md rename to 104196/TS_104196.md index 6ce41db002e40fd93d7ab65cad60ae45d0bd0914..331f0d8f4f39a2d9ffcd8ff95a06b0b2d77a11c4 100644 --- a/104196/104196.md +++ b/104196/TS_104196.md @@ -255,7 +255,3 @@ No additional comments on this topic are made in the present document. |December 2025 | 0.6.0 | Version uploaded for discussion on 2025-12-16 | |December 2025 | 0.6.1 | Version at end of discussion on 2025-12-16 | | | | | - - - - diff --git a/104196/publish.sh b/104196/publish.sh index 16e92e7f9d430897d83827ff7760aa761a4fb1d4..5344b40dd7f4eaca895d0ae036462a1001211638 100755 --- a/104196/publish.sh +++ b/104196/publish.sh @@ -63,7 +63,7 @@ done for i in *.md ; do if [ $i != 'README.md' ]; then if [[ $i =~ (GS|GR|TS|TR|EN|EG).*\.md ]] ; then - echo "\n------ Processing MD file to combine all clauses (::include) -------" + echo "\n------ Processing $i to combine all clauses (::include) -------" docker run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) -w "/tmp" "$MARKDOWN_TOOLS_DOCKER_IMAGE" processMDSpec -fmo "$i" -fmf frontmatter.md docker run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) -w "/tmp" "$MARKDOWN_TOOLS_DOCKER_IMAGE" processMDSpec "$i" > combined.md cat combined.md > $i @@ -72,7 +72,7 @@ for i in *.md ; do echo "\n------ Preparing spec --------" docker run --rm -v $(pwd):/tmp/ -u $(id -u):$(id -g) "$GENERATE_BASELINE_DOCKER_IMAGE" pandocFilter -ts -fp -o "/tmp/" "/tmp/$i" echo "\n------ Publishing spec --------" - mkdir baseline + [ -d baseline ] || mkdir baseline # Word output docker run --rm -v $(pwd):/data -u $(id -u):$(id -g) -w "/data" "$PANDOC_DOCKER_IMAGE" "/data/$i" --toc --metadata toc-title="Contents" -F mermaid-filter -f markdown+escaped_line_breaks -t docx --reference-doc "/data/${SPEC_TEMPLATE}" -o "baseline/${SPEC_NAME}_${TAG_NAME}.docx" #echo 'docker run --rm -v $(pwd):/data -u $(id -u):$(id -g) "$DOCKER_IMAGE" "/data/$i" -F mermaid-filter -f markdown+escaped_line_breaks -t pdf -o "${4}_${2}.pdf"'