@@ -642,50 +642,21 @@ jobs:
642
642
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL : 0
643
643
run : |
644
644
. /env/bin/activate
645
- # Make html or pdf doc
646
- make_doc() {
647
- # $1 is the type of file we are creating (html or pdf)
648
- output_file=doc_$1_output.txt
649
- if [ "${{ needs.container-stability-check.outputs.container_stable_exit }}" = "true" ]; then
650
- xvfb-run mechanical-env make -C doc $1
651
- else
652
- xvfb-run -terminate mechanical-env make -C doc $1 > $output_file 2>&1 || true
653
- cat $output_file
654
- echo done running make
655
- validate_output $output_file
656
- fi
657
- }
658
-
659
- # Validate that the html or pdf build succeeded
660
- validate_output() {
661
- echo "validating output of build"
662
- # $1 is the file we are checking
663
- # cat $1
664
- #
665
- # Check if "build succeeded" string is present in doc_build_output.txt
666
- #
667
- if grep -q "build succeeded" $1; then
645
+ if [ "${{ needs.container-stability-check.outputs.container_stable_exit }}" = "true" ]; then
646
+ xvfb-run mechanical-env make -C doc html
647
+ else
648
+ xvfb-run mechanical-env make -C doc html > output.txt 2>&1 || true
649
+ cat output.txt
650
+ if grep -q "build succeeded" output.txt; then
668
651
echo "Documentation building succeeded"
669
652
else
670
653
echo "Documentation building failed"
671
654
exit 1
672
655
fi
673
- }
674
-
675
- # Install libjbig-dev so quarto doesn't fail its PDF build on v242
676
- apt update
677
- apt install -y libjbig-dev
678
- # Add the /usr/lib/x86_64-linux-gnu/ path to the LD_LIBRARY_PATH (where libjbig-dev .so files are)
679
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/
680
-
681
- # Make the html doc & validate results
682
- make_doc html
683
-
684
- # Make the pdf doc & validate results
685
- make_doc pdf
686
-
687
- # Make the pdf doc & validate results
688
- make_doc linkcheck
656
+ - name : Check links
657
+ run : |
658
+ . /env/bin/activate
659
+ make -C doc linkcheck
689
660
690
661
- name : Upload HTML Documentation
691
662
uses : actions/upload-artifact@v4
0 commit comments