Skip to content

documentationjs/documentation-theme-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

documentation-theme-utils

Greenkeeper badge

Circle CI Coverage Status

Utilities that help in the process of building theme modules for documentation.js.

API

link

Helper used to automatically link items to global JS documentation or to internal documentation.

Parameters

  • text String text to potentially link
  • getHref [function] a function that tries to find a URL to point a named link to
  • description

Examples

link('string').url // => 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String'

Returns Object mdast node

formatType

Helper used to format JSDoc-style type definitions into HTML or Markdown.

Parameters

  • node Object type object in doctrine style
  • getHref 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'

Returns Array<Object> array of mdast syntax trees

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy