Create a help file for topic mypkg/myfunc. The text of the help file is currently in myfunc.txt. Store the resulting help/mypkg/text/myfunc object in library mylib.
>

$\mathrm{makehelp}\left(\'\mathrm{`mypkg/myfunc`}\'\,''myfunc.txt''\,''mylib''\right)\:$

Or you can use .mws files to create a help file.
>

$\mathrm{makehelp}\left(\'\mathrm{`mypkg/myfunc`}\'\,''myfunc.mws''\,''mylib''\right)\:$

The following example assumes you want to replace the Maple help file for diff with your own help file. In order for this example to work, you must have placed your own library directory as the first component of libname, ahead of the Maple library. Your library directory must exist and be writable for the example to work.
>

$\mathrm{makehelp}\left(\mathrm{diff}\,''newdiff.txt''\,\mathrm{libname}\[1\]\,\mathrm{aliases}\=\left[''Diff''\,''differentiate''\,''differentiation''\,''derivative''\right]\,\mathrm{browser}\=\left[''Mathematics/Calculus/Differential\; Calculus/Diff''\,''Mathematics/Calculus/Differential\; Calculus/diff''\,''Mathematics/Inert\; Functions/Diff''\right]\right)\:$
