2222
2323import cf
2424
25+
2526print ("\n cf environment:" )
2627print ("-----------------" )
2728cf .environment ()
@@ -90,7 +91,6 @@ def _get_date():
9091extensions = [
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
107107CF_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
396401import warnings
0 commit comments