hugo/media/docshelper.go

14 lines
339 B
Go
Raw Normal View History

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() {
2020-03-20 11:34:53 -04:00
docsProvider := func() docshelper.DocProvider {
return docshelper.DocProvider{"media": map[string]any{"types": DefaultTypes}}
}
2020-03-20 11:34:53 -04:00
docshelper.AddDocProviderFunc(docsProvider)
}