From d7d34d49406b31246617a24c0a71cb1202b0028c Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 24 Nov 2023 10:52:18 +0100 Subject: [PATCH] Move MyST-parser configuration to its own section Signed-off-by: David Runge --- book/source/conf.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/book/source/conf.py b/book/source/conf.py index 26f49db..63b6dcd 100644 --- a/book/source/conf.py +++ b/book/source/conf.py @@ -29,6 +29,13 @@ numfig = True # number figures in flat hierarchy numfig_secnum_depth = 0 +# -- Options for MyST-parser ------------------------------------------------- +# https://myst-parser.readthedocs.io/en/latest/configuration.html + +# we want to circumvent obscure warnings about footnotes following a heading: +# https://github.com/executablebooks/MyST-Parser/issues/352 +myst_footnote_transition = False + # -- Options for EPUB output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-epub-output @@ -52,7 +59,3 @@ html_theme_options = { 'show_relbars': 'yes', 'show_powered_by': False, } - -# we want to circumvent obscure warnings about footnotes following a heading: -# https://github.com/executablebooks/MyST-Parser/issues/352 -myst_footnote_transition = False