aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-03-31 15:47:05 +0200
committern-peugnet <n.peugnet@free.fr>2022-03-31 15:47:05 +0200
commitfb88a93466c5dfa4c3a8fb12d048d8478a8fc643 (patch)
tree3b0caa3ad840f38576cd1625a70d8e5390dcb443 /conf.py
parenta7b828e5de24b6496dbfa148f4474f0315ca4b8f (diff)
downloadclub1-docs-n-peugnet-fix-smartquotes.tar.gz
club1-docs-n-peugnet-fix-smartquotes.zip
fix: smart quotes sometimes doubled with md emphasisn-peugnet-fix-smartquotes
disable smartquotes at sphinx level to enable it at MyST level.
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/conf.py b/conf.py
index dac72ad..58df011 100644
--- a/conf.py
+++ b/conf.py
@@ -33,9 +33,15 @@ extensions = [
'sphinx.ext.imgconverter',
]
-# Allow to create implicit reference to headings.
+# Allow to create implicit reference to headings up to level 6.
# See: https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html#implicit-targets
-myst_heading_anchors = 2
+myst_heading_anchors = 6
+
+# Enable Some MyST extensions.
+myst_enable_extensions = [
+ # Enable smart quotes at MyST level.
+ 'smartquotes',
+]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -72,6 +78,9 @@ exclude_patterns = [
# Increase PNG image resolution.
image_converter_args = ['-density', '400', '-resize', '200%']
+# Disable smart quotes at Sphinx level, as it is done by MyST.
+smartquotes = False
+
# -- Options for HTML output -------------------------------------------------