如何在不更改默认安装文件的情况下修改 Sandcastle 演示风格
我的项目使用 Sandcastle 和 Sandcastle Help File Builder 来生成文档。
我们使用的是 script_manifold.js 的自定义版本,它可以跨页面保留用户的语言首选项(默认版本会重置每个页面的语言首选项)。
目前,该脚本位于 Sandcastle\presentation\VS2005\scripts 文件夹中。
有没有办法用自定义版本覆盖此脚本,而不必弄乱 Sandcastle 安装?也就是说,我是否可以拥有一个与我的源代码一起签入源代码管理的文件,并以某种方式让 SHFB 使用该文件而不是默认的 Sandcastle 文件?
My project uses Sandcastle and Sandcastle Help File Builder to generate documentation.
We're using a customized version of script_manifold.js that persists the user's language preference across pages (the default version resets the language preference with each page).
Currently, the script is located in the Sandcastle\presentation\VS2005\scripts folder.
Is there a way to override this script with a custom version, without having to mess with the Sandcastle installation? That is, can I have a file that is checked into source control along with my source code, and somehow have that file used by SHFB instead of the default Sandcastle one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,我找到了答案!
在 SHFB 项目资源管理器窗口中,您只需创建一个与您想要覆盖的演示样式内容同名的文件夹。这适用于任何库存内容,例如 HTML、CSS 或 JS 文件。因此,在我的情况下,我需要覆盖 VS2005 演示文稿样式的 Scripts 文件夹中的 script_manifold.js 文件。
因此,我需要在 SHFB 项目中创建一个名为 Scripts 的文件夹,然后将 script_manifold.js 放入该文件夹中。
一切都很完美。出色的!
Never mind, I found the answer!
In the SHFB project explorer window, you can just create a folder with the same name as the presentation style content you wish to override. This works with any stock content, such as HTML, CSS or JS files. So in my situation, I needed to override the script_manifold.js file which lives in the Scripts folder of the VS2005 presentation style.
So I needed to create a folder called Scripts in my SHFB project, then put my script_manifold.js in that folder.
It all works perfectly. Excellent!