-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the *.chm document browser use IE? I get the following warning at the top. #169
Comments
Please consider making the docs a linked pdf. |
for *.chm you should download and install download WinHelp from Microsoft. But the content is available online under http://www.ruby-lang.org/en/documentation/ |
I'm guessing this is the result of clicking on the "The RubyInstaller Wiki" in the Help Viewer itself. The documentation itself is available in several different forms all over the internet. A As for fixing your problem, there is actually no work around. Even though the Since it is an HTML viewer at heart it does have limited HTML capabilities. Although it seems that it can't handle Github's new fancy search box, which is why you're getting that message. @luislavena The easy way to fix this it to remove all external links in the <script>
function openbrowser(url) {
window.open(url);
};
</script>
<a href="#"
data-url="http://wiki.github.com/oneclick/rubyinstaller"
onclick="openbrowser(data-url)"
>
Test
</a> But right now it's being parsed as So the options I can see are to remove all the external links, use Whatever you want to do in this case let me know and I'll do it. |
A slightly better way to open the links: <script type="text/javascript">
function inBrowser(a){ window.open(a.href); return false }
</script>
<a href="http://wiki.github.com/oneclick/rubyinstaller" onclick="return inBrowser(this)">…</a> This allows the link to still function in CHM readers where JavaScript is disabled. |
I think it did, I can't really remember. If you can give me till tomorrow I can double check. I think the problem was I didn't know how to write plain HTML in RDoc markup. |
It works, @Phrogz solution opens up a new window in a system's default browser. |
@Azolo being these links in |
@luislavena Hmmm, well then it seems that this is something that should be handled in rdoc_chm. Changing all external links to use that format seems reasonable. That being said, I found out that if we put the javascript and links as plain html instead of RDoc format they will get parsed literally and produce the desired results. But then the help only becomes useful when the end result is a html like format (granted that is nearly all the time). I'm a little busy at the moment, but I can look at rdoc_chm and see what I can do next week. If it looks like too much then I would say just write it as raw javascript and html. |
Been busy lately, anyway it's like 90% there. I had to update and tweak rdoc_chm a couple of ways to get the templates and links changing correctly. The problem is, I can't get the new window JavaScript to work correctly in IE and consequently the chm JavaScript isn't working. I think I may get the rdoc_chm update (which will allow http links to be processed differently) ready and hopefully let someone smarter than me figure out how to get the JavaScript working. |
Please note that GitHub no longer supports Internet Explorer versions 7 or 8.
We recommend upgrading to the latest Internet Explorer, Google Chrome, or Firefox.
If you are using IE 9 or later, make sure you turn off "Compatibility View".
.
I have no choice on Windows XP.
Newer IE is not an option
Can *.chm be used use other browsers?
The text was updated successfully, but these errors were encountered: