Skip to content

Commit

Permalink
Update the readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpfs committed Mar 20, 2016
1 parent d912c1b commit e8f880b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For the command line interface install [mkdoc][] globally (`npm i -g mkdoc`).

## Usage

Create a task file like this one ([source file](https://github.com/mkdoc/mktask/blob/master/mkdoc.js)):
Create a `mkdoc.js` task file like this one ([source file](https://github.com/mkdoc/mktask/blob/master/mkdoc.js)):

```javascript
var mk = require('mktask');
Expand All @@ -38,18 +38,24 @@ function readme(cb) {
mk.task(readme);
```

And build README.md using:
Then you can build all tasks using:

```shell
mk
```

Or more explicitly:
Or specific tasks:

```shell
mk readme
```

To see a list of the tasks use:

```shell
mk --tasks
```

## Guide

This guides assumes you are using the `mk` program to run tasks, install it with `npm i -g mkdoc`.
Expand Down
12 changes: 9 additions & 3 deletions doc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,28 @@ Runs named task functions that return streams, arrays of deferred task functions

## Usage

Create a task file like this one ([source file](/mkdoc.js)):
Create a `mkdoc.js` task file like this one ([source file](/mkdoc.js)):

<? @source {javascript=s/\.\/index/mktask/gm} ../mkdoc.js ?>

And build README.md using:
Then you can build all tasks using:

```shell
mk
```

Or more explicitly:
Or specific tasks:

```shell
mk readme
```

To see a list of the tasks use:

```shell
mk --tasks
```

<? @include {=readme} guide.md ?>

<? @exec mkapi *.js --title=API --level=2 ?>
Expand Down

0 comments on commit e8f880b

Please sign in to comment.