
[英]How to delete the build cache while building documents using WebSupport.Build in sphinx?
[英]Using sphinx WebSupport: Is it possible to disable commenting for specific content?
我正在使用Sphinx API将Sphinx文档集成到Web应用程序中。
我希望用户能够为文档做出贡献,所以我使用Sphinx WebSupport内置的注释/投票框架。
在大多数情况下,这很好用:可以对文档的每个段落进行注释。
在文档中的两个地方,我都使用表格。 Sphinx为表中的每个单元格创建注释图标。 有没有办法禁用表中的注释图标?
我可以通过修改websupport.js
来做到这websupport.js
。
在$(document).ready
事件处理程序中,更改:
$('.sphinx-has-comment').comment();
至:
$('.sphinx-has-comment:not(table p)').comment();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.