Utilities that help in the process of building theme modules for documentation.js.
Helper used to automatically link items to global JS documentation or to internal documentation.
Parameters
text
String text to potentially linkgetHref
[function] a function that tries to find a URL to point a named link todescription
Examples
link('string').url // => 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String'
Helper used to format JSDoc-style type definitions into HTML or Markdown.
Parameters
node
Object type object in doctrine stylegetHref
function a function that tries to find a URL to point a named link to
Examples
formatType({ type: 'NameExpression', name: 'String' })[0].url // => 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String'