diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 409c3ed7..e778e786 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -101,13 +101,14 @@ jobs: ANSYSLMD_LICENSE_FILE: 1055@${{ secrets.LICENSE_SERVER }} ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL: 0 run: | - xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_output.txt 2>&1 + sed -i '/eval \$@/i export LD_PRELOAD' /install/ansys_inc/v232/aisol/.workbench_lite + cat /install/ansys_inc/v232/aisol/.workbench_lite + xvfb-run /install/ansys_inc/v232/aisol/.workbench_lite make -C doc html > doc_build_output.txt 2>&1 || true cat doc_build_output.txt # - # Check if Error occurred + # Check if "build succeeded" string is present in doc_build_output.txt # - output=$(grep -c ".*make:.*Error.*" doc_build_output.txt || true) - if [ $output -eq 0 ]; then + if grep -q "build succeeded" doc_build_output.txt; then echo "Documentation building succeeded" exit 0 else diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8704496f..eb88887b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -44,4 +44,3 @@ repos: rev: 0.26.3 hooks: - id: check-github-workflows - diff --git a/doc/source/conf.py b/doc/source/conf.py index 069075db..87873a53 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -2,7 +2,6 @@ from datetime import datetime import os -import ansys.mechanical.core from ansys_sphinx_theme import ansys_favicon from ansys_sphinx_theme import pyansys_logo_black as logo import numpy as np @@ -72,7 +71,7 @@ # directory where function granular galleries are stored "backreferences_dir": None, # Modules for which function level galleries are created. In - "doc_module": "ansys-mapdl-core", + "doc_module": "ansys.mechanical.core", "image_scrapers": ("pyvista", "matplotlib"), "ignore_pattern": "flycheck*", "thumbnail_size": (350, 350), @@ -127,14 +126,6 @@ if not os.path.exists(pyvista.FIGURE_PATH): os.makedirs(pyvista.FIGURE_PATH) -# configure pymechanical for embedding -ansys.mechanical.core.BUILDING_GALLERY = True -app = ansys.mechanical.core.App(version=232) -if "PYMECHANICAL_BUILDING_GALLERY_GITHUB" in os.environ: - config = app.ExtAPI.Application.SolveConfigurations["My Computer"] - config.SolveProcessSettings.MaxNumberOfCores = 1 - config.SolveProcessSettings.DistributeSolution = False - # static path html_static_path = ["_static"]