Skip to content

Commit 5eaa607

Browse files
committed
use strings as sphinx_gallery configuration options
Enables pickling the environment for reusability
1 parent 4513bec commit 5eaa607

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from datetime import datetime
1818
from packaging.version import parse
1919
import discretize
20-
from sphinx_gallery.sorting import FileNameSortKey
2120
import shutil
2221
from importlib.metadata import version
2322

@@ -499,13 +498,12 @@ def linkcode_resolve(domain, info):
499498
"tutorials/inner_products",
500499
"tutorials/pde",
501500
],
502-
"within_subsection_order": FileNameSortKey,
501+
"within_subsection_order": "FileNameSortKey",
503502
"filename_pattern": "\\.py",
504503
"backreferences_dir": "api/generated/backreferences",
505504
"doc_module": "discretize",
506-
# 'reference_url': {'discretize': None},
505+
"image_scrapers": ("pyvista", "matplotlib"),
507506
}
508-
sphinx_gallery_conf["image_scrapers"] = (pyvista.Scraper(), "matplotlib")
509507

510508

511509
# Documents to append as an appendix to all manuals.

0 commit comments

Comments
 (0)