From 058470e8098ce32d2746561cb33550571873575b Mon Sep 17 00:00:00 2001 From: Yvan Lussaud Date: Wed, 11 Sep 2024 14:40:11 +0200 Subject: [PATCH] Fixed website-build.sh nighlty to tag renames. --- scripts/website-build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/website-build.sh b/scripts/website-build.sh index 573dde040..99f6b80ad 100644 --- a/scripts/website-build.sh +++ b/scripts/website-build.sh @@ -10,10 +10,11 @@ echo "Build gh-pages" mkdir ../plugins/org.obeonetwork.m2doc.doc/doc # download the nighlty documentation echo " - Download nightly documentation" -wget -r --no-parent --no-host-directories --no-verbose -P ../plugins/org.obeonetwork.m2doc.doc/doc/ https://www.m2doc.org/ref-doc/nightly/ +wget -r --no-parent --no-host-directories --no-verbose -P ../plugins/org.obeonetwork.m2doc.doc/doc/ https://www.m2doc.org/ref-doc/ / # replace nigthly by current tag if [ -n "$TAG" ]; then echo " - Replace Nightly to" $TAG + mv ../plugins/org.obeonetwork.m2doc.doc/doc/nightly ../plugins/org.obeonetwork.m2doc.doc/doc/$TAG find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i 's#Nightly#'$TAG'#g' {} \; find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i 's#nightly#'$TAG'#g' {} \; fi @@ -30,5 +31,8 @@ cp -R images ../plugins/org.obeonetwork.m2doc.doc/doc/ cp -R capella ../plugins/org.obeonetwork.m2doc.doc/doc/ cp -R font-awesome ../plugins/org.obeonetwork.m2doc.doc/doc/ cp ref-doc/index-toc.xml ../plugins/org.obeonetwork.m2doc.doc/doc/ref-doc/index-toc.xml +if [ -n "$TAG" ]; then + find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "index-toc.xml" -exec sed -i 's#nightly#'$TAG'#g' {} \; +fi cd -