Merge branch 'mm/api-credentials-doc'
authorJunio C Hamano <gitster@pobox.com>
Fri, 8 Jun 2012 15:32:19 +0000 (08:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Jun 2012 15:32:20 +0000 (08:32 -0700)
Finishing touches...

* mm/api-credentials-doc:
docs: fix cross-directory linkgit references

Documentation/Makefile
Documentation/asciidoc.conf
Documentation/technical/api-config.txt
Documentation/technical/api-credentials.txt
Documentation/technical/api-merge.txt
index 14286cb65761ae93cb34195c1ce60f85caa510c1..5d76a840781bcd4b48157057bb439bdac691766e 100644 (file)
@@ -280,6 +280,7 @@ technical/api-index.txt: technical/api-index-skel.txt \
        technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
        $(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
 
+technical/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
 $(patsubst %,%.html,$(API_DOCS) technical/api-index): %.html : %.txt
        $(QUIET_ASCIIDOC)$(ASCIIDOC) -b xhtml11 -f asciidoc.conf \
                $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) $*.txt
@@ -333,6 +334,7 @@ $(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
 
 WEBDOC_DEST = /pub/software/scm/git/docs
 
+howto/%.html: ASCIIDOC_EXTRA += -a git-relative-html-prefix=../
 $(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
        $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
        sed -e '1,/^$$/d' $< | $(ASCIIDOC) $(ASCIIDOC_EXTRA) -b xhtml11 - >$@+ && \
index aea8627be088c58ef9ad7fd07f5498da88d9b1fc..6d06271ffe29996fe33e308f887ffc22a2b365ca 100644 (file)
@@ -91,5 +91,5 @@ endif::doctype-manpage[]
 
 ifdef::backend-xhtml11[]
 [linkgit-inlinemacro]
-<a href="{target}.html">{target}{0?({0})}</a>
+<a href="{git-relative-html-prefix}{target}.html">{target}{0?({0})}</a>
 endif::backend-xhtml11[]
index bd4d8b8f4fcffb17b1855dcb4419bfbe685bcc9b..edf8dfb99b0accf1c3cbe870bdc332783a344dc9 100644 (file)
@@ -2,7 +2,7 @@ config API
 ==========
 
 The config API gives callers a way to access git configuration files
-(and files which have the same syntax). See linkgit:../git-config[1] for a
+(and files which have the same syntax). See linkgit:git-config[1] for a
 discussion of the config file syntax.
 
 General Usage
index 199307ca0aa435b998757292a07961105f34983e..4ef1db39abcb5d5980a803e0d615fef590132f81 100644 (file)
@@ -180,7 +180,7 @@ longer than a single git process; e.g., credentials may be stored
 in-memory for a few minutes, or indefinitely on disk).
 
 Each helper is specified by a single string in the configuration
-variable `credential.helper` (and others, see linkgit:../git-config[1]).
+variable `credential.helper` (and others, see linkgit:git-config[1]).
 The string is transformed by git into a command to be executed using
 these rules:
 
@@ -293,6 +293,6 @@ helpers will just ignore the new requests).
 See also
 --------
 
-linkgit:../gitcredentials[7]
+linkgit:gitcredentials[7]
 
-linkgit:../git-config[5] (See configuration variables `credential.*`)
+linkgit:git-config[5] (See configuration variables `credential.*`)
index 25158b8dc8b27c0fe33152fa233f806ec21ab0a7..9dc1bed768a473317dd77c4d1ed93f65b2c4d483 100644 (file)
@@ -36,7 +36,7 @@ the operation of a low-level (single file) merge.  Some options:
        ancestors in a recursive merge.
        If a helper program is specified by the
        `[merge "<driver>"] recursive` configuration, it will
-       be used (see linkgit:../gitattributes[5]).
+       be used (see linkgit:gitattributes[5]).
 
 `variant`::
        Resolve local conflicts automatically in favor