diff options
Diffstat (limited to 'media/docshelper.go')
-rw-r--r-- | media/docshelper.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/media/docshelper.go b/media/docshelper.go new file mode 100644 index 000000000..9a84d5c7f --- /dev/null +++ b/media/docshelper.go @@ -0,0 +1,17 @@ +package media + +import ( + "github.com/spf13/hugo/docshelper" +) + +// This is is just some helpers used to create some JSON used in the Hugo docs. +func init() { + docsProvider := func() map[string]interface{} { + docs := make(map[string]interface{}) + + docs["types"] = DefaultTypes + return docs + } + + docshelper.AddDocProvider("media", docsProvider) +} |