简体   繁体   English

如何设置 onlytopic.in.map 以防止从共享内容生成 HTML 文件?

[英]How do I set onlytopic.in.map to prevent HTML files from being generated from shared content?

I'm using DITA OT 3.7.1 with a custom plugin to generate HTML5 documentation.我使用带有自定义插件的 DITA OT 3.7.1 来生成 HTML5 文档。 When we used DITA OT 3.2.1 with the same plugin, HTML files were not generated for topics that were only used for content references and are not linked in the map. When we upgraded to DITA OT 3.6.1, HTML files were generated for these topics, and users were able to find them in our output.当我们使用带有相同插件的 DITA OT 3.2.1 时,HTML 文件没有为仅用于内容参考且未在 map 中链接的主题生成。当我们升级到 DITA OT 3.6.1 时,为 HTML 文件生成了这些主题,用户可以在我们的 output 中找到它们。

I've been looking for a way to change our custom plugin to prevent those topics from being generated as HTML files.我一直在寻找一种方法来更改我们的自定义插件,以防止将这些主题生成为 HTML 文件。 The closest solution is to set onlytopic.in.map to true.最接近的解决方案是将 onlytopic.in.map 设置为 true。 The problem is making this setting stick.问题是让这个设置坚持下去。 Even if I change it in orgs.dita.base\build_init.xml, the HTML files are still generated for the topics that are not in the map. Of course, I would rather override it in our plugin and not change the core DITA OT.即使我在 orgs.dita.base\build_init.xml 中更改它,HTML 文件仍然为不在 map 中的主题生成。当然,我宁愿在我们的插件中覆盖它而不更改核心 DITA OT . FYI, we're using map-first preprocessing with the preprocess2 target.仅供参考,我们正在对 preprocess2 目标使用 map-first 预处理。

(Yes, I know we can add the topics to the map and set them to resource-only and toc=no. Some of our help systems have dozens of conref-only topics, and we're trying to avoid changing source files.) (是的,我知道我们可以将主题添加到 map 并将它们设置为 resource-only 和 toc=no。我们的一些帮助系统有几十个 conref-only 主题,我们正在努力避免更改源文件。)

Any suggestions on fixing this are greatly appreciated.非常感谢有关解决此问题的任何建议。 Thanks in advance for your help.在此先感谢您的帮助。

Take care,小心,
Matt Stern马特·斯特恩
Sr. Principal Technical Writer高级首席技术作家
Kofax科法克斯

It is difficult to guess what's the problem, without looking at the code.如果不查看代码,很难猜出问题出在哪里。 You should read through the migration guides .您应该通读迁移指南 I guess it is related to XSLT pipelines or the new <ditafileset> technique.我猜它与 XSLT 管道或新的<ditafileset>技术有关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我已经将标题设置为“ Content-type:text / plain”时,如何防止电子邮件被视为HTML - How to prevent the email from being considered HTML, when I've already set the headers as “Content-type: text/plain” 如何防止 HTML 按钮被双击? - How do I prevent HTML button from being double clicked? 如何防止javascript编写的内容存储在Firefox的wyciwyg缓存中? - How do I prevent javascript written content from being stored in Firefox's wyciwyg cache? 如何通过编辑html代码防止文件被盗? - How to prevent files from being stolen by editing html code? 使用jQuery将html附加到div时如何阻止内容从屏幕外推送 - How do I stop content from being pushed outside of the screen when appending html to a div with jquery 如何防止它在html中换行? - How do I prevent it from newlining in html? 如何在拖动元素时阻止html元素被按下? - How do I prevent html element from being pushed down when dragging an element over? 如何防止将热键 ` 添加到 html 表单输入中? - How do I prevent the hotkey ` from being added to a html form input? 在避免GUID的同时如何防止HTML被利用? - How do I prevent my HTML from being exploitable while avoiding GUIDs? 如何防止更改预设的INPUT值? - How do I prevent a pre-set INPUT value from being changed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM