ref: 889dc47ceba9cf5cbd6e61a9222a5e54cd562332
parent: f720fe56db9e064d10b86d98e7bbd40fb1c8489f
author: Cameron Moore <moorereason@gmail.com>
date: Fri Jun 5 06:48:37 EDT 2020
Add genDocsHelper mage target Expose the functionality of the hidden `hugo gen docshelper` command as a mage target.
--- a/magefile.go
+++ b/magefile.go
@@ -66,6 +66,7 @@
}
}
+// Generate autogen packages
func Generate() error {
generatorPackages := []string{
"tpl/tplimpl/embedded/generate",
@@ -101,6 +102,11 @@
return nil
}
+// Generate docs helper
+func GenDocsHelper() error {
+ return runCmd(flagEnv(), goexe, "run", "-tags", buildTags(), "main.go", "gen", "docshelper")
+}
+
// Build hugo without git info
func HugoNoGitInfo() error {
ldflags = noGitLdflags
@@ -334,5 +340,4 @@
return envtags
}
return "none"
-
}