AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Helpndoc does not process links11/29/2023 ![]() ![]() You simply need to change the REPLACE_FROM and REPLACE_TO constants to make sure HelpNDoc finds and replaces the correct values, then hit “Run script” and let HelpNDoc do the hard work for you: in a few seconds, your whole library will be updated to use your new path. Save it HndLibraryItems.SetItemUrlFile(aList.id, sFilePath) Yes we do: update the path sFilePath := StringReplace(sFilePath, REPLACE_FROM, REPLACE_TO, ) ![]() Do we need to replace this one ? if ((sFilePath '') and (Pos(UpperCase(REPLACE_FROM), UpperCase(sFilePath)) > 0)) then Get its file location sFilePath := HndLibraryItems.GetItemUrlFile(aList.id) Go through each of them for nCnt := 0 to Length(aList) - 1 do begin Get all items in the library aList := HndLibraryItems.GetItemList() HelpNDoc’s script editor to the rescueĪll editions of HelpNDoc include the script editor: you can use it to write instructions from the HelpNDoc API to automate repetitive tasks. Let’s see how we can leverage it to quickly update the whole library in a few seconds. As this can be a very long, tedious and error-prone task, this is great use case for HelpNDoc’s powerful script editor. However, a problem might occur if those items need to be moved on your hard drive or networked path: to make sure HelpNDoc can still find your media elements, you’ll need to manually update all of them one by one. This is very useful to be able to handle those items from outside of HelpNDoc, share them with a third party software… Using the second option, you provide a path for your media items so that HelpNDoc can find and include them when needed. You can choose how your library items (pictures, movies, documents…) are handled by HelpNDoc: they can be included within your project, or they can be dynamically included at generation time, when you choose to build your final documentation files.
0 Comments
Read More
Leave a Reply. |