Help Viewer 2.0打破了自有品牌内容 [英] Help Viewer 2.0 Breaks Self-Branded Content

查看:53
本文介绍了Help Viewer 2.0打破了自有品牌内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用自带品牌内容时,我在VS 2012中遇到了几个与Help Viewer 2.0有关的问题。  Help Viewer 2.0是否仍支持自有品牌内容? 还有其他人遇到过这些问题吗? 有什么我想念的吗? 
这些是我遇到过的问题。 我正在安装的相同帮助文件在VS 2010附带的Help Viewer 1.0下运行正常。

I've ran into several issues with the Help Viewer 2.0 in VS 2012 when using it with self-branded content.  Does Help Viewer 2.0 still support self-branded content?  Has anyone else ran into these issues?  Is there something I'm missing?  These are the issues I've ran into.  The same help files that I'm installing are working just fine under Help Viewer 1.0 that came with VS 2010.

1。 Help Viewer 2.0坚持为页面使用一些自己的样式。 尽管我的内容有自己的样式表,但与Help Viewer 1.0中的相同内容相比,文本要大得多。 与Visual Studio在Help Viewer 2.0中的内容相比,它还要大得多
。 在页面的源代码中,我注意到它是在页眉中注入了一组样式,而这些样式在Help Viewer 1.0下是不存在的,并且将内容包装在几个与之前不同的
的div中。

1. Help Viewer 2.0 is insisting on using some of its own styles for the page.  Even though my content has its own stylesheet, the text is much larger than it should be when compared to the same content in Help Viewer 1.0.  It's also much larger when compared to Visual Studio's content in Help Viewer 2.0.  In the source for the page I notice it is injecting a set of styles in the page header that are not there under Help Viewer 1.0 and is wrapping the content in a couple of divs that are different than before.

2。 Help Viewer 2.0坚持在每页顶部注入一个包含页面标题的div。 我的内容已有页面标题。 我不希望看到它列出两次。 为什么这样做? 在Help Viewer
1.0中没有这样做。

2. Help Viewer 2.0 is insisting on injecting a div containing the page title right at the top of each page.  My content already has a page title.  I don't want to see it listed twice.  Why is it doing that?  It didn't do it in Help Viewer 1.0.

3。 Help Viewer 2.0坚持要求确保锚标记中本地内容的所有href值均以"ms-xhelp:///"开头。 这没关系,但是这样做的方式是导致链接断开,因为它只是用新的前缀
覆盖了URL的开头而没有尝试正确修复它。 鉴于以下内容:

3. Help Viewer 2.0 is insisting on making sure that all href values for local content in anchor tags start with "ms-xhelp:///".  That's okay but the way it's doing it is causing broken links since it just overlays the start of the URL with the new prefix with no attempt to fix it properly.  Given the following:

< a href =" ms-xhelp?method = page .....">

<a href="ms-xhelp?method=page.....">

< ; a href =" ms-xhelp://?method = page ....">

<a href="ms-xhelp://?method=page....">

你最终得到:

< a href =" ms-xhelp:///?od = page .....">

<a href="ms-xhelp:///?od=page.....">

< a href =" ms-xhelp: ///?ethod = page ....">

<a href="ms-xhelp:///?ethod=page....">

单击内容中的这些链接会自然导致"未找到内容"。 。错误&NBSP;我已经修复了我的代码,以便页面生成完整的前缀来解决问题,但是,Help Viewer 2.0应该正确地纠正链接,而不是
,所以显然会破坏它们。

Clicking these links in the content naturally results in "Content not found" errors.  I've fixed my code so that the pages generate the full prefix to work around the issue but still, Help Viewer 2.0 should be correcting the links properly rather than so obviously breaking them.

4。与#3相关,如果您有一个使用JavaScript的href,Help Viewer 2.0会通过再次使用"ms-xhelp:///"覆盖值的开头来完全断开链接。字首。例如:

4. Related to #3, if you have an href that uses JavaScript, Help Viewer 2.0 completely breaks the link by again overlaying the start of the value with the "ms-xhelp:///" prefix. For example:

< a href =" javascript:SubmitFeedback()">

<a href="javascript:SubmitFeedback()">

变为

< a href =" ms-xhelp:/// ubmitFeedback()">

<a href="ms-xhelp:///ubmitFeedback()">

同样,断开链接并且它不起作用。 我设法通过使用"#"的虚拟href来解决这个问题。并将脚本移动到onclick属性,但我不应该这样做来解决帮助查看器中的明显错误。

Again, broken link and it doesn't work.  I managed to work around this by using a dummy href of "#" and moving the script to an onclick attribute but I shouldn't have to do this to work around an apparent bug in the help viewer.

还有一些链接存在其他问题我的页面顶部有一个弹出菜单,但我还没弄清楚为什么它会被打破。

There are other problems too with a couple of links and a popup menu at the top of my pages but I haven't figure out why it's broken those yet.

当我们讨论这个主题时,Help Viewer 1.0有一个带有文档的SDK &NBSP;是否还有等效的Help Viewer 2.0?

While we're on the subject, Help Viewer 1.0 had an SDK with documentation.  Is there an equivalent for Help Viewer 2.0 yet?

Eric

推荐答案

检查语法。当SelfBranded启用时,您不应该看到VS的东西。

Check your syntax. When SelfBranded is enabled you shouldn't see the VS stuff.



我上传了一个简单的4页示例你试试。


I've uploaded a simple 4 page example for you to try.

http://hv2.helpmvp.com/code/help -example

正如您所见,我的帮助中没有显示VS UI

As you can see my example I have no VS UI showing in my help

如果你真的卡住了,请随意给我一个简短的示例,以便我更好地看到问题。

If you really get stuck, feel free to send me a small cut-down example so I can see the problem better.


这篇关于Help Viewer 2.0打破了自有品牌内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆