diff options
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/docshelper.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/helpers/docshelper.go b/helpers/docshelper.go index 66cbfa7d3..1397acc59 100644 --- a/helpers/docshelper.go +++ b/helpers/docshelper.go @@ -12,8 +12,7 @@ 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{}) + docsProvider := func() docshelper.DocProvider { var chromaLexers []interface{} @@ -48,11 +47,11 @@ func init() { chromaLexers = append(chromaLexers, lexerEntry) - docs["lexers"] = chromaLexers } - return docs + + return docshelper.DocProvider{"chroma": map[string]interface{}{"lexers": chromaLexers}} } - docshelper.AddDocProvider("chroma", docsProvider) + docshelper.AddDocProviderFunc(docsProvider) } |