Output folder structre

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
Shokre
Jr. Propeller Head
Posts: 9
Joined: Tue Nov 22, 2016 8:22 am

Output folder structre

Post by Shokre »

Hello,

This have probably been asked many times before, but it seems that in Flare 2018 there is still no way to custom define what goes where.
We're importing from a Word .doc file (Import is called doc), so the html files will always go to the /doc folder.

When we put docs to the web, the site structure looks like this.

docs.myweb.com/product1/doc/Anyhelppage.html
docs.myweb.com/product2/doc/Anyhelppage.html

We want to get rid of this /doc/ folder, but with importing (from a Word) into doc this seems impossible.

Any sugestions?

Thank you.

Kresimir
Shokre
Jr. Propeller Head
Posts: 9
Joined: Tue Nov 22, 2016 8:22 am

Re: Output folder structre

Post by Shokre »

I have figured that we'll have to do that manually is the post build.
Our word doc import goes to the Doc subfolder, so it seems that all works if you:

Replace in .html file (remove "../").
"../" => ""

Move htmls files to the root folder.

Replace in .js files (remove "Doc/").
"Doc/" => ""

With fnr app (http://findandreplace.io), the post build event command would look like this:
"C:\YourProjectPath\finishbuild.bat"

..and finishbuild.bat:
"fnr.exe" --cl --dir "C:\YourOutputPath\Doc" --fileMask "*.htm" --excludeFileMask "*.dll, *.exe" --includeSubDirectories --find "../" --replace ""
"fnr.exe" --cl --dir "C:\YourOutputPath" --fileMask "*.js" --excludeFileMask "*.dll, *.exe" --includeSubDirectories --find "Doc/" --replace ""
move "E:\YourOutputPath\Doc\*.htm" "C:\YourOutputPath"

Hope this helps someone else.

Kresimir
Post Reply