https://github.com/rnk updated https://github.com/llvm/llvm-project/pull/222508
>From dccbcb71c25caca73f3f6ec9c1534d38efe92e89 Mon Sep 17 00:00:00 2001 From: Reid Kleckner <[email protected]> Date: Wed, 9 Sep 2026 23:10:00 +0000 Subject: [PATCH] [docs] Enable absolute documentation link checks Configure the LLVM documentation URL prefixes so the Sphinx build rejects absolute links to documents in the same project. Clang is already configured. Part of #214861 --- llvm/docs/conf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/llvm/docs/conf.py b/llvm/docs/conf.py index f14582ac274d36..d5c4d21dd755b1 100644 --- a/llvm/docs/conf.py +++ b/llvm/docs/conf.py @@ -22,7 +22,17 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions += ["sphinx.ext.intersphinx", "sphinx.ext.todo", "llvm_sphinx.ext.checks"] +extensions += [ + "sphinx.ext.intersphinx", + "sphinx.ext.todo", + "llvm_sphinx.ext.absolute_links", + "llvm_sphinx.ext.checks", +] + +llvm_sphinx_doc_url_prefixes = ( + "https://llvm.org/docs/", + "https://www.llvm.org/docs/", +) myst_enable_extensions += ["deflist"] myst_url_schemes = { _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
