我知道Godoc -html只在没有样式表和javascript的情况下生成,但是一旦生成,我可以从哪里得到这些呢?
我从godoc.org获得了css和js,但似乎js不适用于由godoc生成的html标记。
我只想在不使用godoc server的情况下尝试一下
示例标记:
<div id="pkg-overview" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
<p>Hello World
</p>
</div>
</div>发布于 2014-10-07 13:23:53
你可以试着看看tools#hg/godoc/static
您将找到一个可能有用的godoc/static/godocs.js。
无论如何,godoc/static/godoc.html都会使用它。
godoc.html还使用:
godoc/static/style.cssgodoc/static/jquery.treeview.csshttps://stackoverflow.com/questions/26236557
复制相似问题