Skip to content

Commit 6047518

Browse files
peffgitster
authored andcommitted
docs: always define git-relative-html-prefix attribute
Commit fe77b41 introduced a new attribute to let the linkgit macro create cross-directory HTML references from the technical/ and howto/ subdirectories back to the main documentation. We define that attribute to "../" on the command-line when building inside those subdirectories, and otherwise leave it unset under the assumption that it would default to being blank. Instead, asciidoc omits the link entirely, leading to broken documentation. Fix this by defining git-relative-html-prefix to blank in asciidoc.conf (and an instance on the command-line, when present, will override it). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d284367 commit 6047518

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/asciidoc.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ endif::backend-docbook[]
9090
endif::doctype-manpage[]
9191

9292
ifdef::backend-xhtml11[]
93+
[attributes]
94+
git-relative-html-prefix=
9395
[linkgit-inlinemacro]
9496
<a href="{git-relative-html-prefix}{target}.html">{target}{0?({0})}</a>
9597
endif::backend-xhtml11[]

0 commit comments

Comments
 (0)