From 9b7032a5857147caf89a30d32b9f8b4fc7f31bd4 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 7 Mar 2025 21:02:00 +0100 Subject: [PATCH] Use doc_directory instead of hard-coded paths for workarounds. --- .github/workflows/SphinxDocumentation.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/SphinxDocumentation.yml b/.github/workflows/SphinxDocumentation.yml index c3d2781..d5dfb5f 100644 --- a/.github/workflows/SphinxDocumentation.yml +++ b/.github/workflows/SphinxDocumentation.yml @@ -183,8 +183,8 @@ jobs: - name: Workaround I - https://github.com/sphinx-doc/sphinx/issues/13190 if: inputs.latex_artifact != '' run: | - printf "Changing directory to 'doc/_build/latex' ...\n" - cd doc/_build/latex + printf "Changing directory to '${{ inputs.doc_directory || '.' }}/_build/latex' ...\n" + cd ${{ inputs.doc_directory || '.' }}/_build/latex MIMETYPE_EXTENSIONS=( "image/png:png" @@ -232,8 +232,8 @@ jobs: - name: Workaround II - https://github.com/sphinx-doc/sphinx/issues/13189 if: inputs.latex_artifact != '' run: | - printf "Changing directory to 'doc/_build/latex' ...\n" - cd doc/_build/latex + printf "Changing directory to '${{ inputs.doc_directory || '.' }}/_build/latex' ...\n" + cd ${{ inputs.doc_directory || '.' }}/_build/latex printf "Searching for downloaded images, that need normalization ...\n" for imageExt in png svg jpg jpeg; do