Skip to main content
oliviert5031601
Inspiring
March 20, 2020
Answered

good habits regarding output directory

  • March 20, 2020
  • 3 replies
  • 708 views

Hello, I'm managing a merged chm project. After every modification in a subproject, I have to manually copy the resulting chm file in the asset directory of the main project

I was just wondering if it was a good idee to use the asset directory of the main project as the output location of the subprojects. In that case I do not have to copy manually the chm files after every compilation.

best regards, Olivier

    This topic has been closed for replies.
    Correct answer Peter Grainge

    Let's say there is a parent and four children, five projects in all.

     

    Whichever way you work, to get the copy CHM that is in Assets you have to generate somewhere.

     

    OPTION 1

    Generate all five projects to different folders. You then have to get all five CHMs into one folder. That requires the additional steps that Vivek has outlined and an additional folder for every project.

     

    OPTION 2

    Generate all five projects to one folder. Job done. Surely that has to be the easiest solution and the one I would describe as smart.

     

    ****************************************

     

    The fact that RoboHelp is creating a copy in Assets is a hangover from how things were done in Classic and was the cause of confusion.

     

    3 replies

    Peter Grainge
    Community Expert
    Peter GraingeCommunity ExpertCorrect answer
    Community Expert
    March 20, 2020

    Let's say there is a parent and four children, five projects in all.

     

    Whichever way you work, to get the copy CHM that is in Assets you have to generate somewhere.

     

    OPTION 1

    Generate all five projects to different folders. You then have to get all five CHMs into one folder. That requires the additional steps that Vivek has outlined and an additional folder for every project.

     

    OPTION 2

    Generate all five projects to one folder. Job done. Surely that has to be the easiest solution and the one I would describe as smart.

     

    ****************************************

     

    The fact that RoboHelp is creating a copy in Assets is a hangover from how things were done in Classic and was the cause of confusion.

     

    Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
    oliviert5031601
    Inspiring
    March 20, 2020

    I think Peter your answer makes sense. use the same output directory for main and subprojects. stupid of me. thank you

    Peter Grainge
    Community Expert
    Community Expert
    March 20, 2020

    Surely it's easiest to just generate all the CHMs to one folder. No further action required. 

     

    Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
    Peter Grainge
    Community Expert
    Community Expert
    March 20, 2020

    I don't think you can set that as the target, I would need to check. However, I have covered what to do in my page on 2019 merging. Create a folder outside all the projects and use that as the target.

     

    Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
    oliviert5031601
    Inspiring
    March 20, 2020

    that is indeed the default way RH is working. I'm curious, as this would spare me some repetitive tasks after every compilation in the subprojects

    Vivek Kumar
    Adobe Employee
    Adobe Employee
    March 20, 2020

    Hi Oliver,

    There are two ways to handle this.

    1. In RH2019 you can specify a post generation script which will run after every compilation. For this you will have to write a small JavaScript file which will copy the files from output directory to another one specified by you.

    2. Another and a better way is to create  Publish profile of "FileSytem" type. In this you can specify where to publish/copy the output. And you can run it whenever you think your output is ready to be copied.

     

    Hope this is helpful.

     

    Thanks,

    Vivek