tools: Added pandoc_epub for epub files.

This commit is contained in:
Andrew Hamilton 2018-05-31 17:15:53 +10:00
parent c96ed81891
commit 78b0b1b583
2 changed files with 10 additions and 2 deletions

View file

@ -21,7 +21,7 @@ then to run:
# vigil <directory_path> # vigil <directory_path>
### Tools (49 in total) ### Tools (50 in total)
Extensions | Tools Extensions | Tools
---------- | ----- ---------- | -----
@ -45,3 +45,4 @@ Extensions | Tools
.go | [gofmt](https://golang.org) • [go_vet](https://golang.org) • [golint](https://github.com/golang/lint) • [godoc](http://golang.org/x/tools) .go | [gofmt](https://golang.org) • [go_vet](https://golang.org) • [golint](https://github.com/golang/lint) • [godoc](http://golang.org/x/tools)
.yaml .yml | [yamllint](https://github.com/adrienverge/yamllint) .yaml .yml | [yamllint](https://github.com/adrienverge/yamllint)
.md | [pandoc_md](https://pandoc.org/) .md | [pandoc_md](https://pandoc.org/)
.epub | [pandoc_epub](https://pandoc.org/)

View file

@ -22,7 +22,8 @@ tools_for_extensions = [
[["bash", "sh", "dash", "ksh"], ["shellcheck"]], [["bash", "sh", "dash", "ksh"], ["shellcheck"]],
[["go"], ["gofmt", "go_vet", "golint", "godoc"]], [["go"], ["gofmt", "go_vet", "golint", "godoc"]],
[["yaml", "yml"], ["yamllint"]], [["yaml", "yml"], ["yamllint"]],
[["md"], ["pandoc_md"]]] [["md"], ["pandoc_md"]],
[["epub"], ["pandoc_epub"]]]
# Tool template: # Tool template:
@ -146,3 +147,9 @@ tools_for_extensions = [
url = "pandoc" url = "pandoc"
command = "pandoc -f markdown -t plain" command = "pandoc -f markdown -t plain"
success_status = "normal" success_status = "normal"
[pandoc_epub]
dependencies = ["pandoc"]
url = "pandoc"
command = "pandoc -f epub -t plain"
success_status = "normal"