add documentation and clean folder before update
This commit is contained in:
1 parent
6c0abf9fd6
commit
4a6c53a12b
2 files changed
+15
-3
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user