Skip to main content
Inspiring
August 2, 2022
Answered

Warning when generating Responsive HTML5 output from RH2020

  • August 2, 2022
  • 10 replies
  • 1000 views

I am getting the error message copied below when generating a Responsive HTML5 output from RH2020. Nothing is immediately obvious as broken/not working in the generated output. I'm at a loss for where to look to resolve this warning. Has anyone else run into this?

I'll note that this help system started its life in AuthorIt. I have imported topics from the generated AIT help into RH to convert, so this is most likely something tagging along from that.

Error message: Warning: Skipped copying external file "C:/Users/amie.fountain/Documents/My RoboHelp Projects/outputs/searchhighlights.js"

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

    Please note this is based on guesswork so backup your project first.

     

    I just searched a sample project and found no searchlight.js file. I am guessing it is something brought in from you Authorit code that can be deleted.

     

    I would try deleting all those lines. Maybe create a new project first and just copy one of the topics into it. If you generate that without the warning, with the backup in place I would trash the lines from all topics.

     

    Hopefully that will fix the issue but if not, you have the backup so nothing to lose.

     

    BTW If you use RoboHelp's option to create backup files, you then end up with a mass of files you likely don't want. I work without using that but create backups before I start, at least when I will be duplicating large numbers of files.

     

    Let us know how you get on.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    10 replies

    Peter Grainge
    Community Expert
    Community Expert
    August 3, 2022

    Glad it has all worked out.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Peter GraingeCommunity ExpertCorrect answer
    Community Expert
    August 3, 2022

    Please note this is based on guesswork so backup your project first.

     

    I just searched a sample project and found no searchlight.js file. I am guessing it is something brought in from you Authorit code that can be deleted.

     

    I would try deleting all those lines. Maybe create a new project first and just copy one of the topics into it. If you generate that without the warning, with the backup in place I would trash the lines from all topics.

     

    Hopefully that will fix the issue but if not, you have the backup so nothing to lose.

     

    BTW If you use RoboHelp's option to create backup files, you then end up with a mass of files you likely don't want. I work without using that but create backups before I start, at least when I will be duplicating large numbers of files.

     

    Let us know how you get on.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    amie68Author
    Inspiring
    August 3, 2022

    Created a new project, imported one of the impacted topics, and generated to confirm that I would get the error message. I did.

    Deleted the line referencing searchhighlight.js, generated again with no warnings. 

    That seems to be the answer.

    I am going to work my way through those topics now in the actual help system deleting that line. I did make a backup, thanks for the reminder.

    amie68Author
    Inspiring
    August 3, 2022

    Final update ... when I entered the entire line from the source code (<script language="javascript" type="text/javascript" src="../searchhighlight.js"></script>), the Find/Replace function did locate it in all topics. So, I was able to edit all topics with this function, replacing that line with nothing. 

    I have generated successfully now with no warning message. Thanks to all for helping me work through this!

    Community Expert
    August 3, 2022

    Oh well, that second screenshot tells you what files to look in for the code which will be easier than the json file. 🙂

    amie68Author
    Inspiring
    August 3, 2022

    I'm off to try to locate in the impacted files. Hopefully this is the last messy bit to clean up after the conversion of this file from AIT. Thanks for your help!

    Community Expert
    August 3, 2022

    You don't want to modify the json file as it's a behind-the-scenes file that's updated automatically by RH.

     

    I think the code is saying that first line is somewhere in a file named 19421.htm. The second line I can't tell because I can't see the code. The third line in a file named 19425.htm. Hopefully that helps you work out what to look for.

    Peter Grainge
    Community Expert
    Community Expert
    August 3, 2022

    Have you found the link?

     

    I am trying to write up something that will help in circumstances such as this. Can you share the project? If you can, then see the Contact page on my site and send the project as instructed there. Do make sure you include a link to this thread and please do not email the project direct.

     

    I will be happy to try and find it. 

     

    It is there, somewhere.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    amie68Author
    Inspiring
    August 3, 2022

    I did find it. Used Dreamweaver's Find function for a more in depth look at the files in this help file's directory. Here's a snip of the results. Having found it, however, not sure what to do to correct. Any ideas?

     

    Jeff_Coatsworth
    Community Expert
    Community Expert
    August 3, 2022

    Were you searching in the output files or the RH source files?

    Community Expert
    August 3, 2022

    Perhaps try using a third party tool like Notepad++ to search in all files in the project, as I don't think all files are searched by the RH feature. (I did a quick test and some text in a js file did not return in the search results, for example.)

    amie68Author
    Inspiring
    August 3, 2022

    Thanks for this suggestion. Prompted me to use Dreamweaver's find function for a more in depth search, and I found the reference.

    Peter Grainge
    Community Expert
    Community Expert
    August 2, 2022

    Did you set the F&R to source code?

     

    Also you are not searching that directory. You are searching for a link that points to that file. The link may not be as reported. Search on the filename in any topic in the project.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    amie68Author
    Inspiring
    August 2, 2022

    Search parameters I used:

    Peter Grainge
    Community Expert
    Community Expert
    August 2, 2022

    You searched on the wrong filename. Highlight should be plural, highlights.

    ________________________________________________________
    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Jeff_Coatsworth
    Community Expert
    Community Expert
    August 2, 2022

    Did you look for "searchhighlights.js" inside other files (especially other .js files)?

    Jeff_Coatsworth
    Community Expert
    Community Expert
    August 2, 2022
    quote

    I'll note that this help system started its life in AuthorIt. I have imported topics from the generated AIT help into RH to convert, so this is most likely something tagging along from that.

     

    I'd be afraid that a bunch of cruft came into your RH source files if you used output from another system as the source for the RH project. 

    Peter Grainge
    Community Expert
    Community Expert
    August 2, 2022

    It means a topic a topic is pointing to a file that is not in the project. Use Find & Replace to track it down.

    ________________________________________________________
    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    amie68Author
    Inspiring
    August 2, 2022

    Tried that @Peter Grainge - no matches found. Even tried searching that directory on my PC just to track it down - no luck.