22
22
23
23
import cf
24
24
25
+
25
26
print ("\n cf environment:" )
26
27
print ("-----------------" )
27
28
cf .environment ()
@@ -90,7 +91,6 @@ def _get_date():
90
91
extensions = [
91
92
"sphinx.ext.autodoc" ,
92
93
"sphinx.ext.autosummary" ,
93
- # 'sphinx.ext.viewcode',
94
94
"sphinx.ext.linkcode" ,
95
95
"sphinx.ext.mathjax" ,
96
96
"sphinx.ext.graphviz" ,
@@ -106,7 +106,7 @@ def _get_date():
106
106
107
107
CF_DOCS_MODE = os .environ .get ("CF_DOCS_MODE" , "none" )
108
108
109
- if CF_DOCS_MODE in ["dev-recipes" , "latest" , "archive" ]:
109
+ if CF_DOCS_MODE in ["dev-recipes" , "dev-recipes-scrub" , " latest" , "archive" ]:
110
110
extensions .append ("sphinx_gallery.gen_gallery" )
111
111
112
112
# Spelling extension configuration: set British English and false positives
@@ -388,9 +388,14 @@ def _get_date():
388
388
"run_stale_examples" : False ,
389
389
"reference_url" : {"cf" : None },
390
390
"backreferences_dir" : "gen_modules/backreferences" ,
391
- "doc_module" : ("cf" ),
391
+ "doc_module" : ("cf" , ),
392
392
"inspect_global_variables" : True ,
393
393
"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" : (),
394
399
}
395
400
396
401
import warnings
0 commit comments