-
Notifications
You must be signed in to change notification settings - Fork 331
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
Broken internal link in French help #1432
Comments
I guess this refers to the on line html help structure. |
@silverailscolo Thanks! We can add code within JMRI help that will provide the default (English) page when a relative reference from a help page isn't found. That'll still resolve back to the local language pages on the next link. But that doesn't help with the help pages on the web. Is there something that could be added to the Header file that would help with that? |
Can I make an alternate suggestion:
There are multiple reasons for this:
The |
I haven't thought through a migration to DocBook yet, so have no opinion on that now. But I'd like to clarify this:
That's intentional, and I don't think it's a problem. JavaHelp has its own navigation & framing. By having the help/ files plain content with SSI for header, sidebar(s) and footer, JavaHelp can display the content as it wants to. The SSI the makes web pages independent of that. It sounds like making every from a single DocBook source would end up with a similar effect. |
The real problem with the way we use SSI is the HTML help content without SSI invariably is structured like:
where the file does not conform to its DocType declaration, because the This may be intentional, but intentionally shipping something broken feels wrong. We also have lots of navigation embedded in some HTML documents not in SSI, so its wholly inconsistent. |
Perhaps I’m misreading the above. Are you pointing at the close for mBody without the open for mBody? That’s a problem in those files that should be fixed, but it’s (a) not solely due to SSI nor (b) invariably present. The included Header file (from the website repository) doesn’t define that either, so just removing the SSI won’t fix it in files without Sidebar included. I did a quick sample across help/en and it looks to me like about half the files are OK and half aren't. If that’s correct, there are about 350 files to update in help/en. (There are probably a lot more in the website folder itself, as the files in the “manual” family seem to miss this particularly often) If this is worth fixing (and I’m not sure that it is if we’re going to be migrating the help files & web site at some point), then the first step would be to find some tools to validate HTML and start running them for a total report in Jenkins. That’ll start bringing the total down as people learn how to fix things. But I don’t think it’s worth devoting lots of hours, even incidental hours, to converting help files to “good HTML 4” if that’s not going to be their long term residence. |
Yes, I am.
It’s defined in the Sidebar.
I don’t want it fixed—I’m pointing this out as a reason to move away from directly editing HTML and using SSI. There are lots of editors that validate HTML (Eclipse, NetBeans, IntelliJ, BBEdit, etc), but given the built in errors from using SSI, errors those editors point out have to be ignored, and once you begin ignoring some errors, its easy to miss errors you shouldn’t ignore. |
I’m pointing out that it’s a single, replicated error. If it’s really a problem, it’s straightforward to fix. If it’s not a problem, it’s not a reason to move to another approach besides SSI + HTML/JavaHelp. There may well be reasons to rewrite 1000+ files, but I don’t think that’s one. |
The missing “mbody” open statement problem discussed above has been fixed (some time in 2019-2020). It now appears in all shtml files and was taken out of all Sidebar.shtml files. As to the broken link in the French help, or the broader discussion, perhaps someone can re-open these if still relevant. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. JMRI is governed by a small group of maintainers which means not all opened issues may receive direct feedback. |
This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the maintainers may elect to reopen this issue at a later date if deemed necessary. |
From JMRIusers:
To recreate:
The link being followed is:
help/fr//html/apps/DecoderPro/index.shtml:<a href="../../../manual/index.shtml">Manuel Complet de DecoderPro</a>
That file doesn't exist in help/fr, but does exist in help/en. The fallback access code doesn't know to try help/en if help/ fails.
The text was updated successfully, but these errors were encountered: