diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-08-07 10:52:52 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-08-07 13:42:54 +0200 |
commit | 851bf3515e61141cda6209fb196f4505c826607c (patch) | |
tree | 4c227fb57c849638059836a4f490d0c5c0da0a42 /minifiers | |
parent | d4a6c16c17b8804c13c9c0a5526be01fc238c67a (diff) | |
download | hugo-851bf3515e61141cda6209fb196f4505c826607c.tar.gz hugo-851bf3515e61141cda6209fb196f4505c826607c.zip |
Add all config to docshelper.json
Also consolidate so the mediaTypes and outputFormats are listed once only.
Fixes #11328
Diffstat (limited to 'minifiers')
-rw-r--r-- | minifiers/config.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/minifiers/config.go b/minifiers/config.go index 58271362d..8ebcaa5c9 100644 --- a/minifiers/config.go +++ b/minifiers/config.go @@ -15,8 +15,6 @@ package minifiers import ( "github.com/gohugoio/hugo/common/maps" - "github.com/gohugoio/hugo/docshelper" - "github.com/gohugoio/hugo/parser" "github.com/spf13/cast" "github.com/mitchellh/mapstructure" @@ -113,10 +111,3 @@ func DecodeConfig(v any) (conf MinifyConfig, err error) { return } - -func init() { - docsProvider := func() docshelper.DocProvider { - return docshelper.DocProvider{"config": map[string]any{"minify": parser.LowerCaseCamelJSONMarshaller{Value: defaultConfig}}} - } - docshelper.AddDocProviderFunc(docsProvider) -} |