dscrb00804 2014-10-07 12:56
浏览 8
已采纳

Godoc样式表和JavaScript

I know Godoc -html generates HTML only without stylesheets and javascript, but once generated where can I get those from?

I got css and js from godoc.org but it seems the js doesn't work with the html markup that is generated by godoc

I just want to try this out without using godoc server

Example markup:

<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>
  • 写回答

1条回答 默认 最新

  • doutou6803 2014-10-07 13:23
    关注

    You can try and have a look in tools#hg/godoc/static

    You will find a godoc/static/godocs.js which might help.

    It is used by godoc/static/godoc.html anyway.
    godoc.html also uses:

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?