Skip to content

Commit

Permalink
Add a sub-section for the Rake task.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Dec 4, 2023
1 parent fd74b06 commit e605b05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ File.write('man/kramdown-man.1',doc.to_man)
system 'man', 'man/kramdown-man.1'
```

### Rake Task

Define a `man` and file tasks which render all `*.md` files within the
`man/` directory:

Expand All @@ -76,6 +78,12 @@ require 'kramdown/man/task'
Kramdown::Man::Task.new
```

Then you can generate man pages for all `*.md` in the `man/` directory:

```shell
$ rake man
```

## Syntax

### Code
Expand Down

0 comments on commit e605b05

Please sign in to comment.