Page 1 of 1

Custom rename for index.html in WebHelp?

Posted: Sun Jan 28, 2018 8:05 pm
by mstockman
Hi, is there any way to generate WebHelp Classic output with a different main filename? We'd like index.html to be named something else as an easy (well, easier) way to ensure backward compatibility with a prior help system.

I've found where index appears to be hard-coded in your createMainFiles.xsl files and there doesn't seem to be an easy way to customize this that will work throughout the WebHelp system, but I'm hoping you can provide an alternative.

Thanks.

Re: Custom rename for index.html in WebHelp?

Posted: Mon Jan 29, 2018 11:57 am
by Costin
Hello,

There is no parameter that could be used in the transformation scenario to rename the "index.html" file to something else.
You could most probably achieve this through your own script which you should develop to perform this and which you could then use in a custom Ant build file for the WebHelp Classic transformation scenario.
However, by default, there is no support in the transformation scenario to rename the generated index.html, so you should do that either manually, or by using a build file with your ant script.

Best Regards,
Costin