From df7a7b7efde76c4b73062286325f0c137281acea Mon Sep 17 00:00:00 2001 From: Nikos Date: Mon, 13 Jan 2025 18:35:44 +0100 Subject: [PATCH] docs: auto-generate anchors Checks were failing when referencing anchors from different files --- docs/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 95244f794..3328fe7d5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -134,7 +134,7 @@ # NOTE: If set, links for viewing the documentation source files # and creating GitHub issues are added at the bottom of each page. "github_url": "https://github.com/ubuntu/authd", - # + # # Add a feedback button 'github_issues': 'enabled', # Docs branch in the repo; used in links for viewing the source files @@ -199,7 +199,6 @@ linkcheck_anchors_ignore_for_url = [r"https://github\.com/.*"] - ######################## # Configuration extras # ######################## @@ -213,6 +212,10 @@ # myst_enable_extensions = set() +# Auto-generate header anchors +myst_heading_anchors = 3 + + # Custom Sphinx extensions; see # https://www.sphinx-doc.org/en/master/usage/extensions/index.html