summaryrefslogtreecommitdiffstats
path: root/markup
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-08-07 10:52:52 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-08-07 13:42:54 +0200
commit851bf3515e61141cda6209fb196f4505c826607c (patch)
tree4c227fb57c849638059836a4f490d0c5c0da0a42 /markup
parentd4a6c16c17b8804c13c9c0a5526be01fc238c67a (diff)
Add all config to docshelper.json
Also consolidate so the mediaTypes and outputFormats are listed once only. Fixes #11328
Diffstat (limited to 'markup')
-rw-r--r--markup/markup_config/config.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/markup/markup_config/config.go b/markup/markup_config/config.go
index 0793669a7..0350a78a2 100644
--- a/markup/markup_config/config.go
+++ b/markup/markup_config/config.go
@@ -16,12 +16,10 @@ package markup_config
import (
"github.com/gohugoio/hugo/common/maps"
"github.com/gohugoio/hugo/config"
- "github.com/gohugoio/hugo/docshelper"
"github.com/gohugoio/hugo/markup/asciidocext/asciidocext_config"
"github.com/gohugoio/hugo/markup/goldmark/goldmark_config"
"github.com/gohugoio/hugo/markup/highlight"
"github.com/gohugoio/hugo/markup/tableofcontents"
- "github.com/gohugoio/hugo/parser"
"github.com/mitchellh/mapstructure"
)
@@ -108,10 +106,3 @@ var Default = Config{
Goldmark: goldmark_config.Default,
AsciidocExt: asciidocext_config.Default,
}
-
-func init() {
- docsProvider := func() docshelper.DocProvider {
- return docshelper.DocProvider{"config": map[string]any{"markup": parser.LowerCaseCamelJSONMarshaller{Value: Default}}}
- }
- docshelper.AddDocProviderFunc(docsProvider)
-}