From 34f94f780291a90490440f458922b3b2d2a317d9 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 24 Nov 2023 10:50:44 +0100 Subject: [PATCH] Move numfig configuration to general configuration Signed-off-by: David Runge --- book/source/conf.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/book/source/conf.py b/book/source/conf.py index abacb6f..26f49db 100644 --- a/book/source/conf.py +++ b/book/source/conf.py @@ -24,6 +24,11 @@ source_suffix = ['.md', '.rst'] templates_path = ['_templates'] exclude_patterns = [] +# number code-blocks, figures and tables, if they have a caption +numfig = True +# number figures in flat hierarchy +numfig_secnum_depth = 0 + # -- Options for EPUB output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-epub-output @@ -51,8 +56,3 @@ html_theme_options = { # we want to circumvent obscure warnings about footnotes following a heading: # https://github.com/executablebooks/MyST-Parser/issues/352 myst_footnote_transition = False - -# number code-blocks, figures and tables, if they have a caption -numfig = True -# number figures in flat hierarchy -numfig_secnum_depth = 0