0.2.3 • Published 11 years ago

grunt-pandoc v0.2.3

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

grunt-pandoc

The best Grunt plugin ever.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-pandoc --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-pandoc');

The "pandoc" task

Overview

In your project's Gruntfile, add a section named pandoc to the data object passed into grunt.initConfig().

grunt.initConfig({
  default_options: { // OUTPUT file name
    configs: {
      "publish"   : 'EPUB',                 // Publish File Format.
      "title"     : "My EPUB Title",    // EPUB Title
      "metadata"  : "include/metadata.xml", // EPUB include META data File Path.
      "stylesheet": "include/style.css"     // EPUB include StyleSheet File Path.
    },
    files: {
      "chapters": [
        "chapters/header.md", // Require Header File.
        "chapters/content.md" // Chapter Files.
        ...
      ]
    }
  }
})

Release History

(Nothing yet)

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago