Skip to content

Commit

Permalink
Exclude .ipynb and .py files generated by sphinx-gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Aug 6, 2024
1 parent d0059c9 commit fba97ba
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@

# Sphinx project configuration
templates_path = ["_templates"]
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
exclude_patterns = [
"_build",
"**.ipynb_checkpoints",
# Workaround from https://github.com/executablebooks/MyST-NB/issues/363 to prevent
# myst-nb from parsing the .ipynb and .py files generated by sphinx-gallery.
"**/*.ipynb",
"**/*.py",
]
source_suffix = ".rst"
needs_sphinx = "1.8"
# The encoding of source files.
Expand Down

0 comments on commit fba97ba

Please sign in to comment.