From fcaad3127c642c304e5d6f562731b486e26f8b2d Mon Sep 17 00:00:00 2001 From: "kujiu (@rincevent)" Date: Wed, 2 Jun 2021 15:34:45 +0200 Subject: [PATCH] Use sphinx-galleria instead of sphinxcontrib-images --- docs/requirements.txt | 2 +- docs/source/conf.py | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/requirements.txt b/docs/requirements.txt index 7da85b3..a3578a9 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ sphinxcontrib-bibtex -sphinxcontrib-images +sphinx-galleria pybtex-apa-style sphinxcontrib-actdiag sphinxcontrib-blockdiag diff --git a/docs/source/conf.py b/docs/source/conf.py index f12dd21..ec0901f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -47,7 +47,7 @@ extensions = [ 'sphinxcontrib.blockdiag', 'sphinxcontrib.nwdiag', 'sphinxcontrib.seqdiag', - 'sphinxcontrib.images', + 'sphinx_galleria', 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', @@ -64,12 +64,6 @@ if use_bibtex: locale_dirs = ['locale/'] -images_config = { - "default_show_title": True, - "override_image_directive": True, - "show_caption": True, -} - templates_path = ['_templates'] source_suffix = '.rst'