add documentation and clean folder before update

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

No files matched your search

+2
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)