From 4eff811485a620f035601633d2c0db37d05f4989 Mon Sep 17 00:00:00 2001 From: Luca Toniolo <10792599+grandixximo@users.noreply.github.com> Date: Thu, 18 Jun 2026 10:11:42 +0800 Subject: [PATCH] docs(build): fix English HTML stylesheet path one level too shallow English renders from build/adoc/en with a stem that omits the en/ prefix, so the cssrel rule emits ../ instead of ../../ and the pages load a nonexistent en/asciidoctor.css and render unstyled. Add an en-specific rule with the +1. Translated languages and man pages were already correct. --- docs/src/Submakefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/Submakefile b/docs/src/Submakefile index d3102f8ecd5..1e6cc85b64f 100644 --- a/docs/src/Submakefile +++ b/docs/src/Submakefile @@ -1223,6 +1223,10 @@ endif # is one greater than the topic-relative slash count. $(DOC_SRCDIR)/%.html: LCNC_CSSREL=$(shell python3 -c "print('../' * (1 + '$*'.count('/')))") $(DOC_OUT_ADOC)/%.html: LCNC_CSSREL=$(shell python3 -c "print('../' * '$*'.count('/'))") +# English renders under $(DOC_OUT_ADOC)/en with a stem that omits the en/ +# prefix (DOC_SRCS_EN paths carry no lang dir), so its slash count is one short +# of the output depth. Add the +1 here, matching the $(DOC_SRCDIR) rule above. +$(DOC_OUT_ADOC)/en/%.html: LCNC_CSSREL=$(shell python3 -c "print('../' * (1 + '$*'.count('/')))") # asciidoctor HTML rule used for every language. # $1 lang tag (en, de, ...)