Class: DocsParser

Defined in: src\components\docs.coffee

Overview

Creates a link to the documentation on the corresponding GitHub Pages page.

Variables Summary

name =
"DocsParser"

Instance Method Summary

Constructor Details

# (void) constructor(options)

Creates a new DocsParser

Parameters:

  • (options) ( Object ) An optional set of options

Options Hash: (options):

  • encoding ( String ) Encoding for reading the file ['utf-8']
  • docFile ( String ) Documentation entry point ['index.html']
  • branch ( String ) The branch to use for the documentation ['master']

Instance Method Details

# (void) run(pkg)

Check whether a documentation exists, it is in /docs and the repo uses github. If all conditions are true, create a link to the documentation via GitHub Pages. @returns [Promise] Documentation information [string]

Parameters:

  • pkg ( Object ) package.json data

    Quickly fuzzy find classes, mixins, methods, file:

    • T Open fuzzy finder dialog

    Control the navigation frame:

    • L Toggle list view
    • C Show class list
    • I Show mixin list
    • F Show file list
    • M Show method list
    • E Show extras list

    You can focus and blur the search input:

    • S Focus search input
    • Esc Blur search input