Welcome to mirror list, hosted at ThFree Co, Russian Federation.

docshelper.go « media - github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5afb52f0c39ec9f3f238f43f301f6bcec476787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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() map[string]interface{} {
		docs := make(map[string]interface{})

		docs["types"] = DefaultTypes
		return docs
	}

	docshelper.AddDocProvider("media", docsProvider)
}