From a9edf403da9921ec2defecb40d826b83c33d2957 Mon Sep 17 00:00:00 2001 From: moe-ad Date: Sat, 14 Dec 2024 13:49:19 +0100 Subject: [PATCH] fix: check if modifying action file fixes doc-build error --- .github/workflows/docs.yml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2ba37ecbe1..d4a38572b5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -143,10 +143,41 @@ jobs: run: pip list - name: "Build HTML Documentation" - shell: cmd /D /E:ON /V:OFF /C "CALL "{0}"" + shell: cmd working-directory: .ci run: | - build_doc.bat > ..\doc\log.txt && type ..\doc\log.txt 2>&1 + REM Move to the documentation directory + pushd . + cd ../doc/ + + REM Redirect command output to a log file + ( + REM Clean the previous build + call make clean + + REM Build the HTML documentation + call make html -v -v -v -P + + REM Display the directory contents for verification + dir + + REM Patch pyVista issue with elemental plots by copying necessary images + xcopy source\examples\04-advanced\02-volume_averaged_stress\sphx_glr_02-volume_averaged_stress_001.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_001.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_002.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_003.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_004.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_005.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_006.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_007.png build\html\_images\ /y /f + xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_thumb.png build\html\_images\ /y /f + ) > log.txt + + REM Output the log to the GitHub Actions console + type log.txt 2>&1 + + REM Return to the original directory + popd timeout-minutes: 60 env: MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}