diff options
author | Russ Cox <rsc@golang.org> | 2010-04-26 22:35:12 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-26 22:35:12 -0700 |
commit | 57333596d7791df394bae8e3f50b1923e63c92cb (patch) | |
tree | 49a83511e935ba296672089fc7b5a6f1c374eed2 /lib | |
parent | 95e18c29897387f28e3e73cd164474977ff56582 (diff) | |
download | golang-57333596d7791df394bae8e3f50b1923e63c92cb.tar.gz |
godoc: add codewalk support
R=adg, gri
CC=golang-dev, r
http://codereview.appspot.com/1008042
Diffstat (limited to 'lib')
-rw-r--r-- | lib/godoc/codewalk.html | 58 | ||||
-rw-r--r-- | lib/godoc/codewalkdir.html | 15 |
2 files changed, 73 insertions, 0 deletions
diff --git a/lib/godoc/codewalk.html b/lib/godoc/codewalk.html new file mode 100644 index 000000000..1ce6393ec --- /dev/null +++ b/lib/godoc/codewalk.html @@ -0,0 +1,58 @@ +<!-- + Copyright 2010 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>google.load("jquery", "1.3.2");</script> +<style type='text/css'>@import "/doc/codewalk/codewalk.css";</style> +<script type="text/javascript" src="/doc/codewalk/codewalk.js"></script> + +<div id="codewalk-main"> + <div class="left" id="code-column"> + <div id='sizer'></div> + <div id="code-area"> + <div id="code-header" align="center"> + <a id="code-popout-link" href="" target="_blank"> + <img title="View code in new window" alt="Pop Out Code" src="popout.png" style="display: block; float: right;"/> + </a> + <select id="code-selector"> + {.repeated section File} + <option value="/doc/codewalk/?fileprint=/{@|html-esc}">{@|html-esc}</option> + {.end} + </select> + </div> + <div id="code"> + <iframe class="code-display" name="code-display" id="code-display"></iframe> + </div> + </div> + <div id="code-options" class="setting"> + <span>code on <a id="set-code-left" class="selected" href="#">left</a> • <a id="set-code-right" href="#">right</a></span> + <span>code width <span id="code-column-width">70%</span></span> + <span>filepaths <a id="show-filepaths" class="selected" href="#">shown</a> • <a id="hide-filepaths" href="#">hidden</a></span> + </div> + </div> + <div class="right" id="comment-column"> + <div id="comment-area"> + {.repeated section Step} + <div class="comment first last"> + <a class="comment-link" href="/doc/codewalk/?fileprint=/{File|html-esc}&lo={Lo|html-esc}&hi={Hi|html-esc}#mark" target="code-display"></a> + <div class="comment-title">{Title|html-esc}</div> + <div class="comment-text"> + {.section Err} + ERROR LOADING FILE: {Err|html-esc}<br/><br/> + {.end} + {XML} + </div> + <div class="comment-text file-name"><span class="path-file">{@|html-esc}</span></div> + </div> + {.end} + </div> + <div id="comment-options" class="setting"> + <a id="prev-comment" href="#"><span class="hotkey">p</span>revious step</a> + • + <a id="next-comment" href="#"><span class="hotkey">n</span>ext step</a> + </div> + </div> +</div> diff --git a/lib/godoc/codewalkdir.html b/lib/godoc/codewalkdir.html new file mode 100644 index 000000000..61a9a8b3b --- /dev/null +++ b/lib/godoc/codewalkdir.html @@ -0,0 +1,15 @@ +<!-- + Copyright 2010 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. +--> + +<table class="layout"> +{.repeated section @} +<tr> + <td><a href="{Name|html-esc}">{Name|html-esc}</a></td> + <td width="25"> </td> + <td>{Title|html-esc}</td> +</tr> +{.end} +</table> |