Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix doc build #23514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,25 +172,28 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,


sphinx_gallery_conf = {
'backreferences_dir': Path('api') / Path('_as_gen'),
# Compression is a significant effort that we skip for local and CI builds.
'compress_images': ('thumbnails', 'images') if is_release_build else (),
'doc_module': ('matplotlib', 'mpl_toolkits'),
'examples_dirs': ['../examples', '../tutorials', '../plot_types'],
'filename_pattern': '^((?!sgskip).)*$',
'gallery_dirs': ['gallery', 'tutorials', 'plot_types'],
'doc_module': ('matplotlib', 'mpl_toolkits'),
'reference_url': {
'matplotlib': None,
},
'backreferences_dir': Path('api') / Path('_as_gen'),
'subsection_order': gallery_order.sectionorder,
'within_subsection_order': gallery_order.subsectionorder,
'remove_config_comments': True,
'min_reported_time': 1,
'thumbnail_size': (320, 224),
'image_scrapers': (matplotlib_reduced_latex_scraper, ),
# Compression is a significant effort that we skip for local and CI builds.
'compress_images': ('thumbnails', 'images') if is_release_build else (),
'matplotlib_animations': True,
'image_srcset': ["2x"],
'junit': '../test-results/sphinx-gallery/junit.xml' if CIRCLECI else '',
'matplotlib_animations': True,
'min_reported_time': 1,
'reference_url': {'matplotlib': None},
'remove_config_comments': True,
'reset_modules': (
'matplotlib',
# clear basic_units module to re-register with unit registry on import
lambda gallery_conf, fname: sys.modules.pop('basic_units', None)
),
'subsection_order': gallery_order.sectionorder,
'thumbnail_size': (320, 224),
'within_subsection_order': gallery_order.subsectionorder,
}

mathmpl_fontsize = 11.0
Expand Down