Skip to content

Commit 00ca9d1

Browse files
Update Sphinx configuration for working recipe processing
1 parent 51b445c commit 00ca9d1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/source/conf.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import cf
2424

25+
2526
print("\ncf environment:")
2627
print("-----------------")
2728
cf.environment()
@@ -90,7 +91,6 @@ def _get_date():
9091
extensions = [
9192
"sphinx.ext.autodoc",
9293
"sphinx.ext.autosummary",
93-
# 'sphinx.ext.viewcode',
9494
"sphinx.ext.linkcode",
9595
"sphinx.ext.mathjax",
9696
"sphinx.ext.graphviz",
@@ -106,7 +106,7 @@ def _get_date():
106106

107107
CF_DOCS_MODE = os.environ.get("CF_DOCS_MODE", "none")
108108

109-
if CF_DOCS_MODE in ["dev-recipes", "latest", "archive"]:
109+
if CF_DOCS_MODE in ["dev-recipes", "dev-recipes-scrub", "latest", "archive"]:
110110
extensions.append("sphinx_gallery.gen_gallery")
111111

112112
# Spelling extension configuration: set British English and false positives
@@ -388,9 +388,14 @@ def _get_date():
388388
"run_stale_examples": False,
389389
"reference_url": {"cf": None},
390390
"backreferences_dir": "gen_modules/backreferences",
391-
"doc_module": ("cf"),
391+
"doc_module": ("cf",),
392392
"inspect_global_variables": True,
393393
"within_subsection_order": FileNameSortKey,
394+
"default_thumb_file": "_static/logo.svg",
395+
"image_scrapers": ("matplotlib",), # Ensures Matplotlib images are captured
396+
"plot_gallery": "True", # Enables plot rendering
397+
"reset_modules": ("matplotlib",), # Helps with memory management
398+
"capture_repr": (),
394399
}
395400

396401
import warnings

0 commit comments

Comments
 (0)