commands: Adjust docs path
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 14 Jun 2017 08:37:58 +0000 (10:37 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 14 Jun 2017 08:37:58 +0000 (10:37 +0200)
commands/gendocshelper.go

index ca781242ee7bec1d6a0e73765ef74869c674b7a3..6e59d99eb17ffca82557476f6db05fb7d8608741 100644 (file)
@@ -41,7 +41,9 @@ func createGenDocsHelper() *genDocsHelper {
                return g.generate()
        }
 
-       g.cmd.PersistentFlags().StringVarP(&g.target, "dir", "", "docs/data", "data dir")
+       // Note that ./docs is a submodule, and writing to that would be suboptimal.
+       // Let us assume that the default is a sibling project.
+       g.cmd.PersistentFlags().StringVarP(&g.target, "dir", "", "../hugoDocs/data", "data dir")
 
        return g
 }