Skip to content

Commit 4ebf8ad

Browse files
committed
Fix gallery location generation
This creates two separate directories in the 'gallery' subdirectory so that they don't overlap. Previously, a host of warnings and potentially incorrect behaviour happened because the build directory was inside the source directory.
1 parent 0c859e4 commit 4ebf8ad

File tree

8 files changed

+4
-4
lines changed

8 files changed

+4
-4
lines changed

doc/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
_build
1010
_images
11-
gallery/qutip_examples
11+
gallery/build

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,8 @@
294294
# Sphinx Gallery
295295

296296
sphinx_gallery_conf = {
297-
'examples_dirs': 'gallery', # path to your example scripts
298-
'gallery_dirs': 'gallery/qutip_examples', # save generated examples
297+
'examples_dirs': 'gallery/src', # path to your example scripts
298+
'gallery_dirs': 'gallery/build', # save generated examples
299299
'abort_on_example_error': True # abort if exception occurs
300300
}
301301

File renamed without changes.
File renamed without changes.

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ QuTiP: Quantum Toolbox in Python
1515
frontmatter.rst
1616
installation.rst
1717
guide/guide.rst
18-
gallery/qutip_examples/index.rst
18+
gallery/build/index.rst
1919
apidoc/apidoc.rst
2020

2121
:maxdepth: 1

0 commit comments

Comments
 (0)