From 514bb02d3d23d6b366d9519ae87ba0219ba09dc3 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 20 Nov 2023 16:21:57 +0100 Subject: [PATCH] Configure sphinx to render numbering for figures in flat hierarchy Signed-off-by: David Runge --- book/source/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/book/source/conf.py b/book/source/conf.py index db227e5..96f5eb4 100644 --- a/book/source/conf.py +++ b/book/source/conf.py @@ -46,3 +46,8 @@ 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