Skip to content

Commit

Permalink
Merge pull request #223 from jotelha/docs-build-without-fenics
Browse files Browse the repository at this point in the history
DOC: conditionally exclude fenics-dependent notebooks when building the documenation ...
  • Loading branch information
pastewka authored Jan 15, 2024
2 parents c79e1d8 + 29d01cc commit 69dd31e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
# conditionally exclude fenics-dependent jupyter notebook if fenics not available
try:
import fenics
except ModuleNotFoundError:
exclude_patterns.extend(["applications/electrochemistry_2.py"])

# The reST default role (used for this markup: `text`) to use for all
# documents.
Expand Down

0 comments on commit 69dd31e

Please sign in to comment.