-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmd2html.go
56 lines (52 loc) · 1.11 KB
/
md2html.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package main // import "github.com/cnam/md2html"
import (
"github.com/codegangsta/cli"
"os"
"github.com/cnam/md2html/generator"
)
const APP_VER = "0.2.4"
func main() {
app := cli.NewApp()
app.Name = "md2html"
app.Email = "[email protected]"
app.Usage = "Github generator html pages from markdown wiki"
app.Version = APP_VER
app.Action = generator.GenerateDoc
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "input, i",
Usage: "Directory with markdown files",
},
cli.StringFlag{
Name: "output, o",
Value: "documentation",
Usage: "Directory for output files",
},
cli.StringFlag{
Name: "template, t",
Value: "templates/documentation.tpl",
Usage: "Template for generated documentation",
},
cli.StringFlag{
Name: "path, p",
Value: "/docs",
Usage: "Path eg site example ",
},
cli.StringFlag{
Name: "sidebar, s",
Value: "_Sidebar.md",
Usage: "Path to sidebar file",
},
}
app.Authors = []cli.Author{
cli.Author{
Name: "V",
Email: "[email protected]",
},
cli.Author{
Name: "cnam",
Email: "[email protected]",
},
}
app.Run(os.Args)
}