Installing Package into $UserBaseDirectory or $BaseDirectory means automatic loading of the documentation (after calling the Package).

However, when I installed a Package into different directory (the directory is add to the \$Path) the documentation is not loaded after calling the Package using Needs.

Any idea how to solve this issue?

• Add documentation extension to paclet.m file, should work. And the directory // PacletDirectoryAdd. – Kuba Mar 24 '17 at 15:45
• @CarlWoll yes it does. – Algohi Mar 24 '17 at 15:55
• @Kuba, can't get your idea. more explanation is needed :) – Algohi Mar 24 '17 at 15:56
• Analogously to mathematica.stackexchange.com/a/120976/5478 for more info search pacletinfo.m documentation project here. – Kuba Mar 24 '17 at 15:59
• @Kuba, I see. I am using Workbench but I will look at your link and work on the pacletinfo.m itself. Thanks – Algohi Mar 24 '17 at 16:02

PacletDirectoryAdd["/dir/to/my/pack"]

assuming that PacletInfo.m is contained within /dir/to/my/pack/PackageName.
• One could put this in init.m if permanence is wanted, no? – J. M. will be back soon Mar 24 '17 at 16:59
• @J.M. That would be the thing to try, but I do not know if: (1) there's a better way (2) PacletDirectoryAdd is safe to use during initialization. – Szabolcs Mar 24 '17 at 18:55