diff options
author | Robert Griesemer <gri@golang.org> | 2010-03-16 14:17:42 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-03-16 14:17:42 -0700 |
commit | 9460e8b0f8eb51248726193c2807b9229c4f269f (patch) | |
tree | 2e6ec839e0e9c2fcff7cb747a0b2eb90143d752b /lib | |
parent | 513f3dcaccce742a4e8cf3a6c6642f24bd61183c (diff) | |
download | golang-9460e8b0f8eb51248726193c2807b9229c4f269f.tar.gz |
godoc: initial support for showing popup information
for identifiers in Go source code
- at the moment just show identifier kind (var, func, etc.) and name
(eventually should show declaration, type, etc.)
- JavaScript parts by adg
R=rsc
CC=adg, golang-dev
http://codereview.appspot.com/578042
Diffstat (limited to 'lib')
-rw-r--r-- | lib/godoc/source.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/godoc/source.html b/lib/godoc/source.html new file mode 100644 index 000000000..645517012 --- /dev/null +++ b/lib/godoc/source.html @@ -0,0 +1,23 @@ +<!-- + Copyright 2009 The Go Authors. All rights reserved. + Use of this source code is governed by a BSD-style + license that can be found in the LICENSE file. +--> + +<script src="http://www.google.com/jsapi"></script> +<script src="/doc/popups.js"></script> +<script> +var popup_data = [ +{.repeated section Data} + '{@|popupInfo}', +{.end} +] + +google.load("jquery", "1"); +google.setOnLoadCallback(function() {.meta-left} + godocs_bindPopups(popup_data); +{.meta-right}); +</script> + +{# Source is HTML-escaped elsewhere} +<pre>{Source}</pre> |