1. Stefan Saasen
  2. git


Jeff King  committed 6047518

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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits d284367
  • Branches master

Comments (0)

Files changed (1)

File Documentation/asciidoc.conf

View file
  • Ignore whitespace
 <a href="{git-relative-html-prefix}{target}.html">{target}{0?({0})}</a>