@@ -143,10 +143,41 @@ jobs:
143143 run : pip list
144144
145145 - name : " Build HTML Documentation"
146- shell : cmd /D /E:ON /V:OFF /C "CALL "{0}""
146+ shell : cmd
147147 working-directory : .ci
148148 run : |
149- build_doc.bat > ..\doc\log.txt && type ..\doc\log.txt 2>&1
149+ REM Move to the documentation directory
150+ pushd .
151+ cd ../doc/
152+
153+ REM Redirect command output to a log file
154+ (
155+ REM Clean the previous build
156+ call make clean
157+
158+ REM Build the HTML documentation
159+ call make html -v -v -v -P
160+
161+ REM Display the directory contents for verification
162+ dir
163+
164+ REM Patch pyVista issue with elemental plots by copying necessary images
165+ xcopy source\examples\04-advanced\02-volume_averaged_stress\sphx_glr_02-volume_averaged_stress_001.png build\html\_images\ /y /f
166+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_001.png build\html\_images\ /y /f
167+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_002.png build\html\_images\ /y /f
168+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_003.png build\html\_images\ /y /f
169+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_004.png build\html\_images\ /y /f
170+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_005.png build\html\_images\ /y /f
171+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_006.png build\html\_images\ /y /f
172+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_007.png build\html\_images\ /y /f
173+ xcopy source\examples\12-fluids\02-fluids_results\sphx_glr_02-fluids_results_thumb.png build\html\_images\ /y /f
174+ ) > log.txt
175+
176+ REM Output the log to the GitHub Actions console
177+ type log.txt 2>&1
178+
179+ REM Return to the original directory
180+ popd
150181 timeout-minutes : 60
151182 env :
152183 MEILISEARCH_PUBLIC_API_KEY : ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }}
0 commit comments