github.com/linchen2chris/hugo@v0.0.0-20230307053224-cec209389705/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() docshelper.DocProvider {
    10  		return docshelper.DocProvider{"media": map[string]any{"types": DefaultTypes}}
    11  	}
    12  	docshelper.AddDocProviderFunc(docsProvider)
    13  }