From 9110c857381d63c1666124c080a75a5b94d4356d Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 7 Mar 2025 21:01:29 +0100 Subject: [PATCH 1/2] Do not require 'coverage_report_json_directory' in SphinxDocumentation.yml. --- .github/workflows/SphinxDocumentation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/SphinxDocumentation.yml b/.github/workflows/SphinxDocumentation.yml index 6a0ee10..c3d2781 100644 --- a/.github/workflows/SphinxDocumentation.yml +++ b/.github/workflows/SphinxDocumentation.yml @@ -46,7 +46,7 @@ on: type: string coverage_report_json_directory: description: '' - required: true + required: false type: string coverage_json_artifact: description: 'Name of the coverage JSON artifact.' From 9b7032a5857147caf89a30d32b9f8b4fc7f31bd4 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 7 Mar 2025 21:02:00 +0100 Subject: [PATCH 2/2] 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