Skip to content

Commit

Permalink
Do not run tutorial code if gallery generation is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
padix-key committed Jun 14, 2024
1 parent 7b4d35e commit f2aac47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@
# Execution times are not reported to the user
"sg_execution_times.rst",
]
# Do not run tutorial code if gallery generation is disabled
if "plot_gallery=0" in sys.argv:
exclude_patterns.append("tutorial/**/*.rst")

pygments_style = "sphinx"

Expand Down
2 changes: 1 addition & 1 deletion doc/contribution/documentation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ would be a better name than

Building the example gallery for the first time may take a while, as all
scripts are executed.
To build the documentation without the gallery, run
To build the documentation without the gallery and the tutorial, run

.. code-block:: console
Expand Down

0 comments on commit f2aac47

Please sign in to comment.