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