summaryrefslogtreecommitdiffhomepage
path: root/markup/markup_config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup/markup_config/config.go')
-rw-r--r--markup/markup_config/config.go9
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)
}