add documentation and clean folder before update

This commit is contained in:
Henrique Dias
2016-02-14 10:14:28 +00:00
parent 6c0abf9fd6
commit 4a6c53a12b
2 changed files with 15 additions and 3 deletions

View File

@@ -165,6 +165,8 @@ func ParseComponents(r *http.Request) []string {
// Run is used to run the static website generator
func Run(c *config.Config) {
os.RemoveAll(c.Path + "public")
commands.MainSite = nil
c.Args = append([]string{"--source", c.Path}, c.Args...)
commands.HugoCmd.ParseFlags(c.Args)