mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-30 20:20:49 +00:00
3c405f5172
This commit also adds a new command, docshelper, with some utility funcs that adds a JSON datafiles to /docs/data that would be a pain to create and maintain by hand. Fixes #3242
17 lines
347 B
Go
17 lines
347 B
Go
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)
|
|
}
|