I am trying to write documentation for a package I made, using Workbench. Let's say I have a function test, first I write a usage message as:
usage::test = "Description of test."
This is located in the .m file, outside of the private context.
Then using workbench I create a documentation page for this symbol.
Having done this, and after building the documentation and deploying the package, this documentation page for test is indeed accessible through the standard documentation menu by searching for test.
However, what I have been unable to do is to get a link to this page when evaluating ?test, as the built-in functions have, something like:
?test
(*Description of test. >> *)
I have also tried with the ApplicationMaker package, where it does work. However, before moving everything there I'd like to know if there's a simple fix for Workbench.
edit: I've tried editing the PacletInfo.m, to read:
Paclet[
Name -> "testPackage",
Version -> "0.0.1",
MathematicaVersion -> "9+",
Extensions -> {
{
"Kernel",
Context->{"testPackage`"}
},
{
"Documentation",
Resources->{"ReferencePages/Symbols/test"},
Language -> "English",
LinkBase->"testPackage"
}
}
]
(Compared to what Workbench creates, I added the "Kernel" extension, the Resources and the LinkBase)
But this doesn't fix the problem.
PacletInfo.mhas proper "Documentation" and "Kernel"Extensions. By default Workbench (at least version 2) createsPacletInfo.mfile that doesn't have sufficientExtensionsfor Mathematica versions 9+. – jkuczm Sep 12 '16 at 11:26<< testPackageit doesn't work, but when I load it withNeeds["testPackage`"] it does work, and any subsequent time I load it with<< testPackage` it now does work, even in a new Mathematica session. This is in Mathematica 11, OSX. Anyway it does work now, so thanks :) – Jansen Sep 12 '16 at 14:58>>worked, but not i-in-circle) initially, when I set upPacletInfo.musing the Eclipse text editor. However, seeing that it only half worked, & did not sync correctly with Workbench's Paclet Info Editor, I cleaned it out and tried to recreate it with the Pactlet Info Editor. That would not let me addKernel -> Context. So I went back to the text editor. Now it does not work at all. :( Presumably there is some corrupt Eclipse state somewhere I need to clean out. Mod that, and mod the i-in-circle, this seems to be the solution. – billc Jun 22 '17 at 04:32Context->{}must end with a back-tic. This gets me reliably back to the state where the>>link works. Unfortunately, this does not seem to fix the i-in-a-circle icon from the function's hover box. That link still does not work. :/ – billc Jun 22 '17 at 04:56