summaryrefslogtreecommitdiff
path: root/lib/godoc/package.html
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-02-16 11:20:55 -0800
committerRobert Griesemer <gri@golang.org>2010-02-16 11:20:55 -0800
commiteaa18cf6078b210a8683fdf7c0533f1908f33d2b (patch)
tree696089ccc47c9bd9a84290641b86a6a72db76016 /lib/godoc/package.html
parentf96c03e483aca8036176d436669ea99d25386e4a (diff)
downloadgolang-eaa18cf6078b210a8683fdf7c0533f1908f33d2b.tar.gz
godoc support for directories outside $GOROOT
Example use: godoc -path=/home/user1:/home/build/foo -http=:6666 will start a local godoc that maps urls starting with /pkg/user1 or /pkg/foo to the respective roots specified in the path. Missing: Handling of overlapping package directories, multiple packages per directory. R=rsc CC=golang-dev http://codereview.appspot.com/206078
Diffstat (limited to 'lib/godoc/package.html')
-rw-r--r--lib/godoc/package.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 6a799c2fd..2113e46bd 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -16,7 +16,7 @@
<h4>Package files</h4>
<span style="font-size:90%">
{.repeated section @}
- <a href="/{FilePath|html-esc}/{@|html-esc}">{@|html}</a>
+ <a href="{@|url-src}">{@|localname}</a>
{.end}
</span>
</p>
@@ -38,14 +38,14 @@
{.end}
{.section Funcs}
{.repeated section @}
- <h2 id="{Name|html-esc}">func <a href="{Decl|link}">{Name|html}</a></h2>
+ <h2 id="{Name|html-esc}">func <a href="{Decl|url-pos}">{Name|html}</a></h2>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
{.end}
{.section Types}
{.repeated section @}
- <h2 id="{Type.Name|html-esc}">type <a href="{Decl|link}">{Type.Name|html}</a></h2>
+ <h2 id="{Type.Name|html-esc}">type <a href="{Decl|url-pos}">{Type.Name|html}</a></h2>
{Doc|html-comment}
<p><pre>{Decl|html}</pre></p>
{.repeated section Consts}
@@ -57,12 +57,12 @@
<pre>{Decl|html}</pre>
{.end}
{.repeated section Factories}
- <h3 id="{Type.Name|html-esc}.{Name|html-esc}">func <a href="{Decl|link}">{Name|html}</a></h3>
+ <h3 id="{Type.Name|html-esc}.{Name|html-esc}">func <a href="{Decl|url-pos}">{Name|html}</a></h3>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
{.repeated section Methods}
- <h3 id="{Type.Name|html-esc}.{Name|html-esc}">func ({Recv|html}) <a href="{Decl|link}">{Name|html}</a></h3>
+ <h3 id="{Type.Name|html-esc}.{Name|html-esc}">func ({Recv|html}) <a href="{Decl|url-pos}">{Name|html}</a></h3>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}