英文:
Godoc stylesheet and javascript
问题
我知道Godoc -html只生成没有样式表和JavaScript的HTML,但一旦生成了,我从哪里获取这些内容呢?
我从godoc.org获取了CSS和JS,但似乎JS与godoc
生成的HTML标记不兼容。
我只是想尝试一下而不使用godoc server
。
示例标记:
<div id="pkg-overview" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="点击显示概述部分">概述 ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="点击隐藏概述部分">概述 ▾</h2>
<p>Hello World</p>
</div>
</div>
英文:
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
得分: 3
你可以尝试查看tools#hg/godoc/static
。
你会找到一个godoc/static/godocs.js
,可能会有所帮助。
godoc.html
还使用了:
英文:
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:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论