github.com/dominikszabo/hugo-ds-clean@v0.47.1/media/docshelper.go (about) 1 package media 2 3 import ( 4 "github.com/gohugoio/hugo/docshelper" 5 ) 6 7 // This is is just some helpers used to create some JSON used in the Hugo docs. 8 func init() { 9 docsProvider := func() map[string]interface{} { 10 docs := make(map[string]interface{}) 11 12 docs["types"] = DefaultTypes 13 return docs 14 } 15 16 docshelper.AddDocProvider("media", docsProvider) 17 }