hugo/output/docshelper.go

24 lines
494 B
Go
Raw Normal View History

package output
import (
// "fmt"
"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 16:34:53 +01:00
docsProvider := func() docshelper.DocProvider {
return docshelper.DocProvider{
"output": map[string]any{
// TODO(bep), maybe revisit this later, but I hope this isn't needed.
// "layouts": createLayoutExamples(),
"layouts": map[string]any{},
2020-03-20 16:34:53 +01:00
},
}
}
2020-03-20 16:34:53 +01:00
docshelper.AddDocProviderFunc(docsProvider)
}