7
$\begingroup$

I am experimenting with the Documentation Tools for the first time, to integrate my package's doc pages into the Documentation Center. Doc pages are generated from a "source notebook" that the Workbench sets up. It looks like as below, after filling out only a few sections.

It looks like the top section contains fields for entering metadata. Where is this metadata used? What can I do with it? Does it show up in the Documentation Center in any way or does it interact with my package?

I am interested in the following in particular: New in, Modified in, Keywords, Syntax Templates.

enter image description here

$\endgroup$
2
  • $\begingroup$ Possibly related: my question $\endgroup$
    – QuantumDot
    Commented Nov 6, 2016 at 19:11
  • $\begingroup$ @QuantumDot Thanks! I didn't find that one. $\endgroup$
    – Szabolcs
    Commented Nov 6, 2016 at 19:20

1 Answer 1

2
$\begingroup$

This is a partial answer. The documentation tools palette has a button at the top which opens a sample function page:

enter image description here

This sample page has some notes about what these sections are for:

enter image description here

The Keywords section can be list of words. Each must appear in a separate cell. Searching for these words in the Documentation Center will find the page, even if the words don't otherwise appear in the page.

I do not know if any of the other sections have any practical effect when compiling the documentation, though it's clear that they can hold information that is useful when working in a large team.


Some of the metadata will be written into the built documentation notebook as TaggingRules, and can be retrived with this command, evaluated in that notebook:

CurrentValue[EvaluationNotebook[], {TaggingRules, "Metadata"}]

Try this on any documentation page. E.g. on the Dataset page it returns

{"built" -> "{2016, 9, 21, 21, 21, 30.299152}", 
 "history" -> {"10", "", "", ""}, "context" -> "System`", 
 "keywords" -> {"data set", "database", "SQL", "noSQL", "MongoDB", 
   "hierarchical data", "big data", "ORM", "object relational model", 
   "dataframe", "data frame", "pandas", "data model", "data query", 
   "select from", "data cube", "OLAP cube", "data tensor", 
   "data container", "structured data"}, "specialkeywords" -> {}, 
 "tutorialcollectionlinks" -> {}, "index" -> True, 
 "label" -> "Built-in Wolfram Language Symbol", "language" -> "en", 
 "paclet" -> "Mathematica", "status" -> "None", 
 "summary" -> 
  "Dataset[data] represents a structured dataset based on a hierarchy of lists and associations.", "synonyms" -> {}, "tabletags" -> {}, 
 "title" -> "Dataset", "titlemodifier" -> "", 
 "windowtitle" -> "Dataset", "type" -> "Symbol", 
 "uri" -> "ref/Dataset"}
$\endgroup$
1
  • 1
    $\begingroup$ It's also used in the HTML build process in ExportWebPage (coming from the "Metadata" tagging rule). $\endgroup$
    – b3m2a1
    Commented Jun 27, 2017 at 2:40

Your Answer

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

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