1.1.1 • Published 7 years ago

batch-showdown v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

batch-showdown

A small node.js script that takes a folder path to markdown files and then generate html files using showdown.

See configuration on how to include css and js into the generated files.

When done, all markdown files will be at the destination as .html files and a reference can be found at tree.json (in both source and destination folders)

Install

npm install batch-showdown -g

Usage

batch-showdown <source_folder> <destination_folder> [configuration.js] [verbose?]

# Example
batch-showdown src/docs public/docs

In another project?

Install and add it to dependencies

npm install batch-showdown --save

Make a script in package.json

"scripts":{
  "docs": "batch-showdown src/docs public/docs"
}

Run script from project folder

npm run docs

Configure (optional)

Pass a configuration (.js) file as third argument. Configuration looks like this:

module.exports = {
  css: ["path/to/some/style.css"],
  js: ["path/to/some/script.js"],
  onload: "runScript();"
}
1.1.1

7 years ago

1.1.0

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago