docshelper.go (339B)
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() docshelper.DocProvider { 10 return docshelper.DocProvider{"media": map[string]any{"types": DefaultTypes}} 11 } 12 docshelper.AddDocProviderFunc(docsProvider) 13 }