4
$\begingroup$

I am developing a package in Workbench and for documentation I want to make a menu of options such as the Mathematica documentation center. I could only make templates for guides, tutorials, etc; but I can not find a way to emulate the documentation center. It's possible? Could you guide me on how to solve it? It's possible?

$\endgroup$
4
  • 2
    $\begingroup$ Writing the interface will be annoying, but you can set that up using Grid and Panel or Button and friends. Maybe stick in some nine-patch Appearance arguments to Button if you're feeling really fancy. Next you need to add that notebook to the "Documentation" subfolder of your paclet. Then you need to add some "Metadata" rules to the TaggingRules on your notebook so that the documentation system will open it in the first place. Finally, add the path to the notebook as the "MainPage" in the "Documentation" element of the "Extensions" in the PacletInfo.m file. Easy, right? $\endgroup$
    – b3m2a1
    Mar 9, 2020 at 2:00
  • $\begingroup$ Thank you. I'll try. $\endgroup$
    – tvalencia
    Mar 9, 2020 at 17:01
  • 2
    $\begingroup$ Can a menu like this be built, not for documentation purposes, without Workbench? For example, click on a Grid of ActionMenus populated with functions, select one, and then the notebook/window changes to a new screen with whatever the function does, and finally be able to exit out of that function and return to the start menu, all in the same notebook? Note: I apologize if this is supposed to go in the comment section (I tried but do not have a high enough reputation yet). $\endgroup$
    – kits
    Dec 13, 2020 at 19:44
  • $\begingroup$ @dynamichedging yup, using DynamicModule with a function that changes the interface based on a stored mode variable or something $\endgroup$
    – b3m2a1
    Dec 13, 2020 at 20:39

1 Answer 1

1
$\begingroup$

There is git project addressing this question making mathematica documentation with mathematica.

This built-in offers a simple start: GalleryView. It is for publishing HTML over CloudDeploy.

The built-in for opening a notebook is NotebookOpen.

This is the explorative gate to information from the Mathematica directories: WolframSystemFileOrganization.

Creating CreatingPalettes is a nice alternative as DynamicModule. Hyperlink is for sure very interesting.

Table[Hyperlink["xxx", None, ImageSize -> {100, 40}, 
  Background -> c], {c, {LightBlue, Purple, Gray, Pink}}]

enter image description here

And Button is great. One step further is PasteButton:

PasteButton /@ CountryData["G8"]

enter image description here

for the use with Wolfram knowledge engine.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.