PDF filename has double file extension when HTML URL extension style is indexify
If the HTML URL extension style is indexify, the PDF filename ends up with a double file extension (.html.pdf). This happens because the filename logic uses out.path instead of split it up and reassembling the filename.
This was an inadvertent change as a result of adding support for the symbolic latest version.
In the produceAggregateDocument function, the following line:
const path_ = `${templateFile.out.path}.adoc`
needs to be replaced with:
const { dir: outDirname, name: outDocname } = path.parse(templateFile.out.path)
const path_ = path.join(outDirname, outDocname + '.adoc')
The current code is naively adding .adoc to the out path, which will already have a .html extension.