1.0.6 • Published 9 years ago

markdown-doc v1.0.6

Weekly downloads
88
License
ISC
Repository
github
Last release
9 years ago

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)]
1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago