Skip to content

Commit 7bc2c52

Browse files
committed
include pv gallery building
1 parent 1983d76 commit 7bc2c52

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import warnings
1414

1515
from ansys_sphinx_theme import ansys_favicon, get_version_match
16+
import pyvista
1617
from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
1718
from sphinx_gallery.sorting import FileNameSortKey
1819

@@ -22,6 +23,13 @@
2223
# necessary when building the sphinx gallery
2324
pymechanical.BUILDING_GALLERY = True
2425

26+
# Ensure that offscreen rendering is used for docs generation
27+
pyvista.OFF_SCREEN = True
28+
29+
# necessary when building the sphinx gallery
30+
pyvista.BUILDING_GALLERY = True
31+
32+
2533
# Whether or not to build the cheatsheet
2634
BUILD_CHEATSHEET = False
2735

0 commit comments

Comments
 (0)