shithub: hugo

ref: 3e0f1ad7f529a584c6726fdff7adecec720ebb3a
dir: /media/docshelper.go/

View raw version
package media

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

// This is is just some helpers used to create some JSON used in the Hugo docs.
func init() {
	docsProvider := func() map[string]interface{} {
		docs := make(map[string]interface{})

		docs["types"] = DefaultTypes
		return docs
	}

	docshelper.AddDocProvider("media", docsProvider)
}