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?
1 Answer
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}}]
And Button
is great. One step further is PasteButton
:
PasteButton /@ CountryData["G8"]
for the use with Wolfram knowledge engine.
Grid
andPanel
orButton
and friends. Maybe stick in some nine-patchAppearance
arguments toButton
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 theTaggingRules
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$Grid
ofActionMenu
s 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$DynamicModule
with a function that changes the interface based on a storedmode
variable or something $\endgroup$