From ec6aebb573d6ab8ce8d61e9d51e9610add536cd9 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Wed, 27 Mar 2024 16:14:49 -0300 Subject: [PATCH] Temporary fix for staging-docs build 'pulp-docs build' can't be called from inside a folder called pulpcore, regardless of it being the pulpcore repostiory or an arbitrary folder. [noissue] --- .github/workflows/scripts/build_all_docs.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/build_all_docs.sh b/.github/workflows/scripts/build_all_docs.sh index 8600d71d7a..9aa8d3bd29 100755 --- a/.github/workflows/scripts/build_all_docs.sh +++ b/.github/workflows/scripts/build_all_docs.sh @@ -1,4 +1,11 @@ # This script builds the documentation site for staging-docs.pulpproject.org + +# TODO: this chdir move is a tmp workaround. Remove when no longer needed. +# see: https://github.com/mkdocstrings/python/issues/145 +mkdir ../build_dir && pushd ../build_dir + pip install git+https://github.com/pulp/pulp-docs.git pulp-docs build -tar cvf staging-docs.pulpproject.org.tar ./site +tar cvf ../pulpcore/staging-docs.pulpproject.org.tar site + +popd