shithub: hugo

ref: 08e4f9ff9cc448d5fea9b8a62a23aed8aad0d047
dir: /media/docshelper.go/

View raw version
package media

import (
	"github.com/gohugoio/hugo/docshelper"
)

// This is is just some helpers used to create some JSON used in the Hugo docs.
func init() {
	docsProvider := func() docshelper.DocProvider {
		return docshelper.DocProvider{"media": map[string]interface{}{"types": DefaultTypes}}
	}
	docshelper.AddDocProviderFunc(docsProvider)
}