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:

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

报告相同问题?

悬赏问题

  • ¥50 vue3 + vite + electron打包找不到第三方包?
  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 MATLAB联合adams仿真卡死如何解决(代码模型无问题)
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥50 分布式追踪trace异常问题
  • ¥15 人在外地出差,速帮一点点