Skip to content

Commit 3ee0ff7

Browse files
committed
remove pdf option add linkcheck seperately
1 parent 7ad509d commit 3ee0ff7

File tree

1 file changed

+10
-39
lines changed

1 file changed

+10
-39
lines changed

.github/workflows/ci_cd.yml

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -642,50 +642,21 @@ jobs:
642642
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0
643643
run: |
644644
. /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
668651
echo "Documentation building succeeded"
669652
else
670653
echo "Documentation building failed"
671654
exit 1
672655
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
689660
690661
- name: Upload HTML Documentation
691662
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)