markdown-doc

1.0.6 • Public • Published

Roots markdown doc

Roots markdown doc is a generator for makrdown files to build a doc。

Installation

  • make sure you are in your roots project directory
npm install markdown-doc --save
  • modify your app.coffee file to include the extension, for example:
  	markdown       = require "markdown-doc"

    module.exports =
    	extensions: [markdown(layout: 'template/_content.jade', files: 'docs/**/*.md')]
    

Options

files

String or array of strings (minimatch supported) pointing to one or more file paths to be built.

placeholder

A markdown placeholder in jade template to be replace.

template.jade:

div.container
        div#page
            //- {{markdown}}

docs/helloworld.md

# markdown

hello world

should be compile to docs/helloworld.html

<div class="container">
	<div id="page">
		<h1>markdown</h1>
		<p>hello world</p>
	</div>
</div>
jade

Options to be passed into the jade.

    markdown        = require "markdown-doc"

    module.exports =
    	extensions: [markdown(layout: 'template/_content.jade', files: 'docs/**/*.md', jade 
    	pretty: true)]

Readme

Keywords

Package Sidebar

Install

npm i markdown-doc

Weekly Downloads

8

Version

1.0.6

License

ISC

Last publish

Collaborators

  • jifeng