0.3.0 • Published 7 years ago

spacedoc-helpers v0.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

spacedoc-helpers

Pug helpers for Spacedoc

Travis npm

Pug helper functions for use with Spacedoc, a documentation generator.

npm install spacedoc-helpers

Contents

Usage

const { highlight, markdown, title } = require('spacedoc-helpers');

API

highlight(code)

Highlight code with Highlight.js.

  • code (String): code to highlight.

Returns a string of HTML.

markdown(text)

Convert Markdown to HTML.

  • text (String): Markdown to convert.

Returns a string of HTML.

title(text)

Make the first letter of a string uppercase.

  • title (String): text to modify.

Returns a string.

groupPages(pages)

Group pages generated by Spacedoc.

  • pages (Array of Objects): pages to group.

Returns an array of groups:

  • name (String): name of group.
  • pages (Array of Objects): pages in group.

License

MIT © Geoff Kimball

0.3.0

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago