diff --git a/tools/buildlang.sh b/tools/buildlang.sh index c94862a1..8aeebf32 100755 --- a/tools/buildlang.sh +++ b/tools/buildlang.sh @@ -24,6 +24,9 @@ else NUMBER_OF_CORES=2 fi +# This marker is needed for infra publishing +MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID" + # upstream-training contains the HTML and slides contents # build upstream-training slides @@ -73,6 +76,7 @@ for locale in `find ${DIRECTORY}/source/locale/ -maxdepth 1 -type d` ; do # move built guide to publish directory mkdir -p publish-docs/${language}/${DOCNAME}/ rsync -a ${DIRECTORY}/build/slides/ publish-docs/${language}/${DOCNAME}/ + echo $MARKER_TEXT > publish-docs/${language}/${DOCNAME}/.root-marker # remove newly created files git clean -f -q ${DIRECTORY}/source/locale/${language}/LC_MESSAGES/*.po diff --git a/tox.ini b/tox.ini index 04a91a25..369f1a0a 100644 --- a/tox.ini +++ b/tox.ini @@ -51,12 +51,16 @@ commands = sphinx-build -b slides -d doc/training-guides/build/slides.doctrees/associate-guide doc/training-guides/associate-guide/ doc/training-guides/build/slides/associate-guide # Build training-guides landing page sphinx-build -b html -d doc/training-guides/build/slides.doctrees doc/training-guides doc/training-guides/build/slides doc/training-guides/index.rst + # This marker is needed for infra publishing + MARKER_TEXT="Project: $ZUUL_PROJECT Ref: $ZUUL_REFNAME Build: $ZUUL_UUID" # Publish as draft mkdir -p publish-docs/draft/training-guides rsync -av doc/training-guides/build/slides/ publish-docs/draft/training-guides/ + echo $MARKER_TEXT > publish-docs/draft/training-guides/.root-marker # Publish mkdir -p publish-docs/upstream-training rsync -av doc/upstream-training/build/slides/ publish-docs/upstream-training/ + echo $MARKER_TEXT > publish-docs/upstream-training/.root-marker # Publish translated guides {toxinidir}/tools/buildlang.sh