diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-20 16:34:53 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-03-20 20:35:57 +0100 |
commit | 7204b354a9f46778f068a4712447d6d4fefbefd8 (patch) | |
tree | a7d58d64fb9266f5c3f28251cb677b245925e728 /markup/markup_config/config.go | |
parent | 574c2959b8d3338764fa1db102a5e0fd6ed322d9 (diff) |
Some minify configuration adjustments
Diffstat (limited to 'markup/markup_config/config.go')
-rw-r--r-- | markup/markup_config/config.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/markup/markup_config/config.go b/markup/markup_config/config.go index 34c8807ac..a94c11f07 100644 --- a/markup/markup_config/config.go +++ b/markup/markup_config/config.go @@ -94,11 +94,8 @@ var Default = Config{ } func init() { - docsProvider := func() map[string]interface{} { - docs := make(map[string]interface{}) - docs["markup"] = parser.LowerCaseCamelJSONMarshaller{Value: Default} - return docs - + docsProvider := func() docshelper.DocProvider { + return docshelper.DocProvider{"config": map[string]interface{}{"markup": parser.LowerCaseCamelJSONMarshaller{Value: Default}}} } - docshelper.AddDocProvider("config", docsProvider) + docshelper.AddDocProviderFunc(docsProvider) } |