webriq-roots-markdown-to-json

1.0.17 • Public • Published

Webriq Roots Markdown to JSON

Note: This markdown to JSON was meant for static searchbar Tipuesearch

Installation

  • make sure you're in your roots project directory
  • npm install webriq-roots-markdown-to-json --save
  • modify your app.coffee file to include the extension
roots_markdown_to_json = require 'webriq-roots-markdown-to-json'
 
module.exports =
  extensions: [roots_markdown_to_json(options)]

Example

roots_markdown_to_json(
  jsonoutput: "data/search_content.json",
  folder:['posts/**.md', 'page/**.md']
)

Options

  • jsonoutput - output destination folder
  • folder - the directory location with .md files you would like to include, see example
  • sort - date, name and etc

Readme

Keywords

Package Sidebar

Install

npm i webriq-roots-markdown-to-json

Weekly Downloads

1

Version

1.0.17

License

ISC

Unpacked Size

6.66 kB

Total Files

3

Last publish

Collaborators

  • allen.support