Fix the docs helper tool

This commit is contained in:
Bjørn Erik Pedersen 2017-09-23 10:20:11 +02:00
parent 9436f0b0c3
commit c31e083ead

View file

@ -17,13 +17,14 @@ import (
"github.com/gohugoio/hugo/deps" "github.com/gohugoio/hugo/deps"
"github.com/gohugoio/hugo/docshelper" "github.com/gohugoio/hugo/docshelper"
"github.com/gohugoio/hugo/tpl/internal" "github.com/gohugoio/hugo/tpl/internal"
"github.com/spf13/viper"
) )
// This file provides documentation support and is randomly put into this package. // This file provides documentation support and is randomly put into this package.
func init() { func init() {
docsProvider := func() map[string]interface{} { docsProvider := func() map[string]interface{} {
docs := make(map[string]interface{}) docs := make(map[string]interface{})
d := &deps.Deps{} d := &deps.Deps{Cfg: viper.New()}
var namespaces internal.TemplateFuncsNamespaces var namespaces internal.TemplateFuncsNamespaces