Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ember-cli-markdown-to-json

shipshapecode16MIT0.2.1

Convert markdown to JSON for your Ember app.

blog, ember-addon, markdown, markdown-to-html, markdown-to-json, static-site-generator

readme

ember-cli-markdown-to-json

An addon that wraps broccoli-static-site-json, to generate json files from markdown.

Installation

ember install ember-cli-markdown-to-json

Usage

// ember-cli-build.js
'ember-cli-markdown-to-json': [
  {
    attributes: [
      'categories',
      'date',
      'slug',
      'title'
    ],
    collections: [{
      src: 'blog/posts',
      output: 'posts.json'
    }],
    contentFolder: 'post',
    contentTypes: ['description', 'html'],
    folder: 'blog/posts',
    references: ['author'],
    type: 'post'
  },
  { 
    attributes: [
      'name',
      'image',
      'coverImage',
      'coverMeta',
      'bio',
      'website',
      'twitter',
      'facebook',
      'location'
    ],
    contentFolder: 'author',
    collections: [{ 
      src: 'blog/authors',
      output: 'authors.json' 
    }],
    folder: 'blog/authors',
    type: 'author'
  }
]

License

This project is licensed under the MIT License.