Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,3 @@ repos:
rev: 0.26.3
hooks:
- id: check-github-workflows

11 changes: 1 addition & 10 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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"]

Expand Down