path: root/gitweb/README
diff options
authorJakub Narebski <>2009-08-04 15:54:32 (GMT)
committerJunio C Hamano <>2009-08-05 19:36:38 (GMT)
commit46068383aa825dfe9026f9255cea07da07e06253 (patch)
tree6d9d22d3cb98b5074a4c28dee2339290efc4d985 /gitweb/README
parent85738ba3df8ae7e01091b479be7f67383ce250b6 (diff)
gitweb/README: Document $base_url
Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'gitweb/README')
1 files changed, 6 insertions, 0 deletions
diff --git a/gitweb/README b/gitweb/README
index 9056d1e..66c6a93 100644
--- a/gitweb/README
+++ b/gitweb/README
@@ -165,6 +165,12 @@ not include variables usually directly set during build):
Full URL and absolute URL of gitweb script;
in earlier versions of gitweb you might have need to set those
variables, now there should be no need to do it.
+ * $base_url
+ Base URL for relative URLs in pages generated by gitweb,
+ (e.g. $logo, $favicon, @stylesheets if they are relative URLs),
+ needed and used only for URLs with nonempty PATH_INFO via
+ <base href="$base_url>. Usually gitweb sets its value correctly,
+ and there is no need to set this variable, e.g. to $my_uri or "/".
* $home_link
Target of the home link on top of all pages (the first part of view
"breadcrumbs"). By default set to absolute URI of a page ($my_uri).