Hi,

currently, if you generate the manpages, the tutorial gets linked in
stg.1 as follows:

1. the tutorial
           [set $man.base.url.for.relative.links]/tutorial.html

With the attached patch this gets fixed to a useful link :).

This patch currently assumes that html-pages are installed together with
the man-pages. If you think this usually is not the case, the
"$(htmldir)" could be changed to point to the stgit-site directly, i.e.
"http://www.procode.org/stgit/doc/";.

- René
--- Documentation/Makefile.old	2012-07-08 23:55:38.958779174 +0200
+++ Documentation/Makefile	2012-07-08 23:56:42.638010483 +0200
@@ -72,7 +72,7 @@
 	$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $<
 
 %.1 : %.xml
-	xmlto -m callouts.xsl man $<
+	xmlto -m callouts.xsl --stringparam man.base.url.for.relative.links=$(htmldir) man $<
 
 %.xml : %.txt
 	$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf $<

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
stgit-users mailing list
[email protected]
https://mail.gna.org/listinfo/stgit-users

Reply via email to