aboutsummaryrefslogtreecommitdiffhomepage
path: root/media/docshelper.go
diff options
context:
space:
mode:
Diffstat (limited to 'media/docshelper.go')
-rw-r--r--media/docshelper.go10
1 files changed, 3 insertions, 7 deletions
diff --git a/media/docshelper.go b/media/docshelper.go
index f5afb52f0..de9dbe599 100644
--- a/media/docshelper.go
+++ b/media/docshelper.go
@@ -6,12 +6,8 @@ import (
// 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
+ docsProvider := func() docshelper.DocProvider {
+ return docshelper.DocProvider{"media": map[string]interface{}{"types": DefaultTypes}}
}
-
- docshelper.AddDocProvider("media", docsProvider)
+ docshelper.AddDocProviderFunc(docsProvider)
}