Copy link to clipboard
Copied
I'm using FrameMaker 2019 to generate online documentation, as responsive html5. Based on the Azure Blue template.
I need to add a viewport row to the header of each generated htm file.
<meta name="viewport" content="width=device-width">
This is the desired htm result:
I.e. I need to add row 6.
Which Azure Blue template file do I need to edit?
(I know this is the RoboHelp forum, but as I understand it the Azure Blue template is same.)
Copy link to clipboard
Copied
I don't know if there is a way to edit the template files, I doubt it. If no one offers a solution to that, I would use a find and replace tool to find some way to inject it in the output files.
If you were using RoboHelp directly it would be easy enough to inject it in the source topics once only.
________________________________________________________
My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.
Copy link to clipboard
Copied
Is the Robohelp you're using New UI or Classic? If it's Classic you should be able to edit the.two slp files (topic and search results I think?). If it's New UI then you might be able to edit some seed files in the installation directory, but it's not something I'd recommend - the changes would likely be overwritten with any updates, and probably wouldn't transfer for any upgrades.
In RH 2019 New UI, there's a Post-Generation Script field where you can add a script file that can modify the output files as you'd like. But I don't know if that is available through Framemaker. You'd also need to know how to write such a script, which unfortunately I can't help with.
Copy link to clipboard
Copied
Do be careful editing the slp files, and I recommend ONLY opening them in a third party text editor, not through the Robohelp interface. There used to be a bug that corrupted those files when edited using the RH internal text editor, and I don't know if they ever fixed it.
Copy link to clipboard
Copied
@Amebr Using FrameMaker.
________________________________________________________
My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.
Copy link to clipboard
Copied
Yes but I assume it ties in with a particular Robohelp version and I assume the skin setup would be similar to whichever version that is.
Copy link to clipboard
Copied
@Amebr - sort of - the FM ability to "publish" (not generate) HTML5 output directly out of FM (& not go through RH - which is the "older" option) utilizes a headless version of RH Classic "under the hood (or bonnet)" (lol) which doesn't expose as many controls over the process as RH does. Your point about messing about with seed files is totally accurate; updates would blow your changes away.
Copy link to clipboard
Copied
I submitted a bug-report yesterday.
Today I got an e-mail saying:
Issue - tracker.adobe.com/#/view/FRMAKER-12541 status updated from 'Open' to 'Ready for Sprint'
Copy link to clipboard
Copied
I have a perl-script now, to add the viewport row to each htm file.
Another manual step to forget... Sigh.
Copy link to clipboard
Copied
However, with the viewport added to each htm file, https://search.google.com/test/mobile-friendly now says the documentation is fine. I.e. I expect much better Google indexing (which means the users will eventually find our documention.