https://github.com/shipshapecode/ember-cli-markdown-to-json
Convert markdown to JSON for your Ember app.
https://github.com/shipshapecode/ember-cli-markdown-to-json
ember-addon emberjs markdown markdown-to-html markdown-to-json static-site-generator
Last synced: 11 months ago
JSON representation
Convert markdown to JSON for your Ember app.
- Host: GitHub
- URL: https://github.com/shipshapecode/ember-cli-markdown-to-json
- Owner: shipshapecode
- License: mit
- Created: 2018-05-29T21:39:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-17T03:36:57.000Z (over 6 years ago)
- Last Synced: 2025-02-16T12:30:03.387Z (11 months ago)
- Topics: ember-addon, emberjs, markdown, markdown-to-html, markdown-to-json, static-site-generator
- Language: JavaScript
- Homepage:
- Size: 245 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-cli-markdown-to-json
==============================================================================
An addon that wraps broccoli-static-site-json, to generate json files from markdown.
Compatibility
------------------------------------------------------------------------------
* Ember.js v3.4 or above
* Ember CLI v2.13 or above
* Node.js v8 or above
Installation
------------------------------------------------------------------------------
```
ember install ember-cli-markdown-to-json
```
Usage
------------------------------------------------------------------------------
```javascript
// 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'
}
]
```
Contributing
------------------------------------------------------------------------------
See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).