From 79b4c4ce1f7420e299a6f1e66d64b64cb94f6932 Mon Sep 17 00:00:00 2001 From: Julien Debon Date: Fri, 31 Dec 2021 09:31:34 +0100 Subject: [PATCH] doc: Enable relative links with anchors Fix links like `[foo](../bar.md#baz)` incorrectly linking to `../bar.md#baz` instead of `../bar.html#baz`. --- docs/conf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 638b1c22fd..9378a874b9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -83,3 +83,7 @@ # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ['_static'] + +# Enable linking to an anchor of a relative page +# See https://github.com/executablebooks/MyST-Parser/issues/443 +myst_heading_anchors = 2