diff options
Diffstat (limited to 'output/docshelper.go')
-rw-r--r-- | output/docshelper.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/output/docshelper.go b/output/docshelper.go index f08b20b01..13291ce9a 100644 --- a/output/docshelper.go +++ b/output/docshelper.go @@ -10,15 +10,16 @@ import ( // 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["formats"] = DefaultFormats - docs["layouts"] = createLayoutExamples() - return docs + docsProvider := func() docshelper.DocProvider { + return docshelper.DocProvider{ + "output": map[string]interface{}{ + "formats": DefaultFormats, + "layouts": createLayoutExamples(), + }, + } } - docshelper.AddDocProvider("output", docsProvider) + docshelper.AddDocProviderFunc(docsProvider) } func createLayoutExamples() interface{} { |